77
78
$(obj)/vmlinux.aout: vmlinux FORCE
78
79
$(call if_changed,elftoaout)
79
80
@echo ' kernel: $@ is ready'
83
# The following lines make a readable image for U-Boot.
84
# uImage - Binary file read by U-boot
85
# uImage.o - object file of uImage for loading with a
86
# flash programmer understanding ELF.
88
OBJCOPYFLAGS_image.bin := -S -O binary -R .note -R .comment
89
$(obj)/image.bin: $(obj)/image FORCE
90
$(call if_changed,objcopy)
92
$(obj)/image.gz: $(obj)/image.bin
93
$(call if_changed,gzip)
95
quiet_cmd_uimage = UIMAGE $@
96
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sparc -O linux -T kernel \
97
-C gzip -a $(CONFIG_UBOOT_LOAD_ADDR) \
98
-e $(CONFIG_UBOOT_ENTRY_ADDR) -n 'Linux-$(KERNELRELEASE)' \
101
quiet_cmd_uimage.o = UIMAGE.O $@
102
cmd_uimage.o = $(LD) -Tdata $(CONFIG_UBOOT_FLASH_ADDR) \
103
-r -b binary $@ -o $@.o
106
$(obj)/uImage: $(obj)/image.gz
107
$(call if_changed,uimage)
108
$(call if_changed,uimage.o)
109
@echo ' Image $@ is ready'
82
113
$(obj)/tftpboot.img: $(obj)/image $(obj)/piggyback System.map $(ROOT_IMG) FORCE