2009-07-29 09:04:05 -06:00
|
|
|
#
|
|
|
|
# linux/arch/sh/boot/romimage/Makefile
|
|
|
|
#
|
2010-05-18 08:43:15 -06:00
|
|
|
# create an romImage file suitable for burning to flash/mmc from zImage
|
2009-07-29 09:04:05 -06:00
|
|
|
#
|
|
|
|
|
2009-12-03 23:42:35 -07:00
|
|
|
targets := vmlinux head.o zeropage.bin piggy.o
|
2010-05-18 08:43:15 -06:00
|
|
|
load-y := 0
|
2009-07-29 09:04:05 -06:00
|
|
|
|
2010-05-18 08:43:15 -06:00
|
|
|
mmcif-load-$(CONFIG_CPU_SUBTYPE_SH7724) := 0xe5200000 # ILRAM
|
|
|
|
mmcif-obj-$(CONFIG_CPU_SUBTYPE_SH7724) := $(obj)/mmcif-sh7724.o
|
|
|
|
load-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-load-y)
|
|
|
|
obj-$(CONFIG_ROMIMAGE_MMCIF) := $(mmcif-obj-y)
|
|
|
|
|
|
|
|
LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \
|
2009-12-03 23:42:35 -07:00
|
|
|
-T $(obj)/../../kernel/vmlinux.lds
|
2009-07-29 09:04:05 -06:00
|
|
|
|
2010-05-18 08:43:15 -06:00
|
|
|
$(obj)/vmlinux: $(obj)/head.o $(obj-y) $(obj)/piggy.o FORCE
|
2009-07-29 09:04:05 -06:00
|
|
|
$(call if_changed,ld)
|
|
|
|
@:
|
|
|
|
|
2009-12-03 23:42:35 -07:00
|
|
|
OBJCOPYFLAGS += -j .empty_zero_page
|
|
|
|
|
|
|
|
$(obj)/zeropage.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
|
2009-07-29 09:04:05 -06:00
|
|
|
LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
|
|
|
|
|
2009-12-03 23:42:35 -07:00
|
|
|
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
|
2009-07-29 09:04:05 -06:00
|
|
|
$(call if_changed,ld)
|