Back to home page

LXR

 
 

    


0001 #
0002 # linux/arch/sh/boot/romimage/Makefile
0003 #
0004 # create an romImage file suitable for burning to flash/mmc from zImage
0005 #
0006 
0007 targets         := vmlinux head.o zeropage.bin piggy.o
0008 load-y          := 0
0009 
0010 mmcif-load-$(CONFIG_CPU_SUBTYPE_SH7724) := 0xe5200000 # ILRAM
0011 mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724)  := $(obj)/mmcif-sh7724.o
0012 load-$(CONFIG_ROMIMAGE_MMCIF)           := $(mmcif-load-y)
0013 obj-$(CONFIG_ROMIMAGE_MMCIF)            := $(mmcif-obj-y)
0014 
0015 LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \
0016                    -T $(obj)/../../kernel/vmlinux.lds
0017 
0018 $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
0019         $(call if_changed,ld)
0020 
0021 OBJCOPYFLAGS += -j .empty_zero_page
0022 
0023 $(obj)/zeropage.bin: vmlinux FORCE
0024         $(call if_changed,objcopy)
0025 
0026 LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
0027 
0028 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
0029         $(call if_changed,ld)