xtensa: add boot subdirectories build artifacts to 'targets'
PATCH 1/1 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 <[email protected]>
---
arch/xtensa/boot/boot-elf/Makefile | 1 + arch/xtensa/boot/boot-redboot/Makefile | 1 + 2 files changed, 2 insertions(+)
arch/xtensa/boot/boot-elf/Makefile +1 -0
@@ -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))
arch/xtensa/boot/boot-redboot/Makefile +1 -0
@@ -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
Signature · 1 line
2.25.1
Quoted 10 lines · Masahiro Yamada
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.
Quoted 6 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/xtensa/boot/boot-elf/Makefile | 1 + arch/xtensa/boot/boot-redboot/Makefile | 1 + 2 files changed, 2 insertions(+)
Acked-by Max Filippov <[email protected]>
Signature · 2 lines
Thanks. -- Max
Quoted 19 lines · Max Filippov
Quoted 10 lines · Masahiro Yamada
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.Quoted 6 lines
Signed-off-by Masahiro Yamada <[email protected]>---
arch/xtensa/boot/boot-elf/Makefile | 1 + arch/xtensa/boot/boot-redboot/Makefile | 1 + 2 files changed, 2 insertions(+)
Quoted 5 lines
Acked-by Max Filippov <[email protected]>--
Thanks.
-- Max
Applied to linux-kbuild.
Signature · 2 lines
Best Regards Masahiro Yamada