xtensa: add boot-elf targets to extra-y
Max Filippov
maintainerPATCH 1/1 xtensa: add boot-elf targets to extra-y
The commit 8fe87a92f262 ("kbuild: always create directories of targets") exposed an issue in the xtensa makefiles that results in the following build error in a clean directory:
scripts/Makefile.build:374: arch/xtensa/boot/boot-elf/boot.lds] Error 1
arch/xtensa/boot/boot-elf/bootstrap.S:21: fatal error:
opening dependency file arch/xtensa/boot/boot-elf/.bootstrap.o.d:
No such file or directory
Intermediate targets in arch/xtensa/boot/boot-elf don't get into 'targets' and build directory is not created for them. Add boot.lds and bootstrap.o to extra-y.
Cc Masahiro Yamada <[email protected]>
Signed-off-by Max Filippov <[email protected]>
--- arch/xtensa/boot/boot-elf/Makefile | 1 + 1 file changed, 1 insertion(+)
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 +extra-y := boot.lds $(boot-y) OBJS := $(addprefix $(obj)/,$(boot-y))
Signature · 1 line
2.20.1