diff --git a/Makefile b/Makefile index d1cb719963..beabbfe9fb 100644 --- a/Makefile +++ b/Makefile @@ -761,12 +761,12 @@ quiet_cmd_create-lnk = LINK $@ $(KERNEL_NAME).lnk: $(call cmd,create-lnk) -linker.cmd: +linker.cmd: $(zephyr-deps) $(Q)$(CC) -x assembler-with-cpp -nostdinc -undef -E -P \ $(LDFLAG_LINKERCMD) $(LD_TOOLCHAIN) -I$(srctree)/include \ -I$(objtree)/include/generated $(KBUILD_LDS) -o $@ -final-linker.cmd: +final-linker.cmd: $(zephyr-deps) $(Q)$(CC) -x assembler-with-cpp -nostdinc -undef -E -P \ $(LDFLAG_LINKERCMD) $(LD_TOOLCHAIN) -DFINAL_LINK -I$(srctree)/include \ -I$(objtree)/include/generated $(KBUILD_LDS) -o $@ diff --git a/Makefile.inc b/Makefile.inc index 127a79da26..2b04c72ca4 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -52,7 +52,7 @@ else S = -s endif -zephyrmake = @$(MAKE) -C $(ZEPHYR_BASE) O=$(1) CFLAGS=$(CFLAGS) \ +zephyrmake = @+$(MAKE) -C $(ZEPHYR_BASE) O=$(1) CFLAGS=$(CFLAGS) \ PROJECT=$(PROJECT_BASE) SOURCE_DIR=$(SOURCE_DIR) $(2) DOTCONFIG = $(O)/.config