.. | .. |
---|
13 | 13 | LD_ARGS = -T $(srctree)/$(obj)/boot.ld |
---|
14 | 14 | |
---|
15 | 15 | boot-y := bootstrap.o |
---|
| 16 | +targets += $(boot-y) |
---|
16 | 17 | |
---|
17 | 18 | OBJS := $(addprefix $(obj)/,$(boot-y)) |
---|
18 | 19 | LIBS := arch/xtensa/boot/lib/lib.a arch/xtensa/lib/lib.a |
---|
19 | 20 | |
---|
20 | 21 | LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) |
---|
21 | 22 | |
---|
22 | | -$(obj)/zImage.o: vmlinux.bin.gz $(OBJS) |
---|
| 23 | +$(obj)/zImage.o: $(obj)/../vmlinux.bin.gz $(OBJS) |
---|
23 | 24 | $(Q)$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \ |
---|
24 | | - --add-section image=vmlinux.bin.gz \ |
---|
| 25 | + --add-section image=$< \ |
---|
25 | 26 | --set-section-flags image=contents,alloc,load,load,data \ |
---|
26 | 27 | $(OBJS) $@ |
---|
27 | 28 | |
---|