From: Masahiro Yamada Date: Wed, 22 Jul 2020 00:47:07 +0000 (+0900) Subject: xtensa: add boot subdirectories build artifacts to 'targets' X-Git-Tag: v5.9-rc1~131^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8824c1af3af28c7b5c16307c1b8c6d842794e4ed;p=thirdparty%2Fkernel%2Flinux.git xtensa: add boot subdirectories build artifacts to 'targets' Xtensa always rebuilds the following even if nothing in the source code has been changed. Passing V=2 shows the reason. AS arch/xtensa/boot/boot-elf/bootstrap.o - due to bootstrap.o not in $(targets) LDS arch/xtensa/boot/boot-elf/boot.lds - due to boot.lds not in $(targets) They are built by if_changed(_dep). Add them to 'targets' so .*.cmd files are included. Signed-off-by: Masahiro Yamada Message-Id: <20200722004707.779601-1-masahiroy@kernel.org> Signed-off-by: Max Filippov --- diff --git a/arch/xtensa/boot/boot-elf/Makefile b/arch/xtensa/boot/boot-elf/Makefile index ceae02cd5b3ba..0ebc9827f7e57 100644 --- a/arch/xtensa/boot/boot-elf/Makefile +++ b/arch/xtensa/boot/boot-elf/Makefile @@ -15,6 +15,7 @@ export CPPFLAGS_boot.lds += -P -C export KBUILD_AFLAGS += -mtext-section-literals boot-y := bootstrap.o +targets += $(boot-y) boot.lds OBJS := $(addprefix $(obj)/,$(boot-y)) diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile index 064c4f23581f6..07cb24afedc27 100644 --- a/arch/xtensa/boot/boot-redboot/Makefile +++ b/arch/xtensa/boot/boot-redboot/Makefile @@ -13,6 +13,7 @@ endif LD_ARGS = -T $(srctree)/$(obj)/boot.ld boot-y := bootstrap.o +targets += $(boot-y) OBJS := $(addprefix $(obj)/,$(boot-y)) LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a