|
@@ -20,9 +20,11 @@ boot-y := bootstrap.o
|
|
|
|
|
|
OBJS := $(addprefix $(obj)/,$(boot-y))
|
|
OBJS := $(addprefix $(obj)/,$(boot-y))
|
|
|
|
|
|
-Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
|
|
|
|
|
|
+vmlinux.tmp: vmlinux
|
|
$(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
|
|
$(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
|
|
- vmlinux vmlinux.tmp
|
|
|
|
|
|
+ $^ $@
|
|
|
|
+
|
|
|
|
+Image: vmlinux.tmp $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
|
|
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
|
|
$(OBJCOPY) $(OBJCOPY_ARGS) -R .comment \
|
|
--add-section image=vmlinux.tmp \
|
|
--add-section image=vmlinux.tmp \
|
|
--set-section-flags image=contents,alloc,load,load,data \
|
|
--set-section-flags image=contents,alloc,load,load,data \
|
|
@@ -30,7 +32,6 @@ Image: vmlinux $(OBJS) arch/$(ARCH)/boot/boot-elf/boot.lds
|
|
$(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
|
|
$(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
|
|
-T arch/$(ARCH)/boot/boot-elf/boot.lds \
|
|
-T arch/$(ARCH)/boot/boot-elf/boot.lds \
|
|
-o arch/$(ARCH)/boot/$@.elf $@.tmp
|
|
-o arch/$(ARCH)/boot/$@.elf $@.tmp
|
|
- rm -f $@.tmp vmlinux.tmp
|
|
|
|
|
|
|
|
Image.initrd: vmlinux $(OBJS)
|
|
Image.initrd: vmlinux $(OBJS)
|
|
$(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
|
|
$(OBJCOPY) --strip-all -R .comment -R .note.gnu.build-id -O binary \
|
|
@@ -44,7 +45,7 @@ Image.initrd: vmlinux $(OBJS)
|
|
$(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
|
|
$(LD) $(LDFLAGS) $(LDFLAGS_vmlinux) \
|
|
-T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \
|
|
-T $(srctree)/arch/$(ARCH)/boot/boot-elf/boot.ld \
|
|
-o arch/$(ARCH)/boot/$@.elf $@.tmp
|
|
-o arch/$(ARCH)/boot/$@.elf $@.tmp
|
|
- rm -f $@.tmp vmlinux.tmp
|
|
|
|
|
|
+#rm -f $@.tmp vmlinux.tmp
|
|
|
|
|
|
|
|
|
|
zImage: Image
|
|
zImage: Image
|