summaryrefslogtreecommitdiff
path: root/arch/xtensa/boot/boot-redboot
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-07-22 08:20:19 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2020-07-28 10:57:06 +0300
commit65898b375659f2556da9ac22ea5649407f6f6447 (patch)
tree69d9b325463b7f8eca32208607f2a0389b52ed57 /arch/xtensa/boot/boot-redboot
parent10b60595ddd53728e6975e50524841bb8c0339a8 (diff)
downloadlinux-65898b375659f2556da9ac22ea5649407f6f6447.tar.xz
xtensa: move vmlinux.bin[.gz] to boot subdirectory
vmlinux.bin and vmlinux.bin.gz are always rebuilt in the kernel build process. Add them to 'targets' and move them to the boot subdirectory where their rules are. Update make rules that refer to them. Reviewed-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/boot/boot-redboot')
-rw-r--r--arch/xtensa/boot/boot-redboot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/boot/boot-redboot/Makefile b/arch/xtensa/boot/boot-redboot/Makefile
index 8632473ad319..064c4f23581f 100644
--- a/arch/xtensa/boot/boot-redboot/Makefile
+++ b/arch/xtensa/boot/boot-redboot/Makefile
@@ -19,9 +19,9 @@ LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-$(obj)/zImage.o: vmlinux.bin.gz $(OBJS)
+$(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS)
$(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
- --add-section image=vmlinux.bin.gz \
+ --add-section image=$< \
--set-section-flags image=contents,alloc,load,load,data \
$(OBJS) $@