Skip to content

Commit 8824c1a

Browse files
masahir0yjcmvbkbc
authored andcommitted
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]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 7424d9f commit 8824c1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/xtensa/boot/boot-elf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export CPPFLAGS_boot.lds += -P -C
1515
export KBUILD_AFLAGS += -mtext-section-literals
1616

1717
boot-y := bootstrap.o
18+
targets += $(boot-y) boot.lds
1819

1920
OBJS := $(addprefix $(obj)/,$(boot-y))
2021

arch/xtensa/boot/boot-redboot/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ endif
1313
LD_ARGS = -T $(srctree)/$(obj)/boot.ld
1414

1515
boot-y := bootstrap.o
16+
targets += $(boot-y)
1617

1718
OBJS := $(addprefix $(obj)/,$(boot-y))
1819
LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a

0 commit comments

Comments
 (0)