hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/xtensa/boot/boot-redboot/Makefile
....@@ -13,15 +13,16 @@
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
1920
2021 LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
2122
22
-$(obj)/zImage.o: vmlinux.bin.gz $(OBJS)
23
+$(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS)
2324 $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
24
- --add-section image=vmlinux.bin.gz \
25
+ --add-section image=$< \
2526 --set-section-flags image=contents,alloc,load,load,data \
2627 $(OBJS) $@
2728