]> Git Repo - linux.git/commitdiff
xtensa: add boot subdirectories build artifacts to 'targets'
authorMasahiro Yamada <[email protected]>
Wed, 22 Jul 2020 00:47:07 +0000 (09:47 +0900)
committerMax Filippov <[email protected]>
Tue, 28 Jul 2020 07:57:06 +0000 (00:57 -0700)
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: <20200722004707[email protected]>
Signed-off-by: Max Filippov <[email protected]>
arch/xtensa/boot/boot-elf/Makefile
arch/xtensa/boot/boot-redboot/Makefile

index ceae02cd5b3ba8cb606bb8406f9f4ca889ca6ddc..0ebc9827f7e579eafcd061ce1ad7f0650ad07706 100644 (file)
@@ -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))
 
index 064c4f23581f69f4b1ef44e951da6e78ee9b5f1a..07cb24afedc27d564bbd36358d481e256768ea67 100644 (file)
@@ -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
This page took 0.057348 seconds and 4 git commands to generate.