2009-07-29 23:04:05 +08:00
|
|
|
#
|
|
|
|
# linux/arch/sh/boot/romimage/Makefile
|
|
|
|
#
|
|
|
|
# create an image suitable for burning to flash from zImage
|
|
|
|
#
|
|
|
|
|
2009-12-04 14:42:35 +08:00
|
|
|
targets := vmlinux head.o zeropage.bin piggy.o
|
2009-07-29 23:04:05 +08:00
|
|
|
|
|
|
|
OBJECTS = $(obj)/head.o
|
2009-12-04 14:42:35 +08:00
|
|
|
LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart \
|
|
|
|
-T $(obj)/../../kernel/vmlinux.lds
|
2009-07-29 23:04:05 +08:00
|
|
|
|
|
|
|
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
|
|
|
|
$(call if_changed,ld)
|
|
|
|
@:
|
|
|
|
|
2009-12-04 14:42:35 +08:00
|
|
|
OBJCOPYFLAGS += -j .empty_zero_page
|
|
|
|
|
|
|
|
$(obj)/zeropage.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
|
|
|
|
2009-07-29 23:04:05 +08:00
|
|
|
LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
|
|
|
|
|
2009-12-04 14:42:35 +08:00
|
|
|
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
|
2009-07-29 23:04:05 +08:00
|
|
|
$(call if_changed,ld)
|