1# 2# linux/arch/sh/boot/romimage/Makefile 3# 4# create an image suitable for burning to flash from zImage 5# 6 7targets := vmlinux head.o 8 9OBJECTS = $(obj)/head.o 10LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart 11 12$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE 13 $(call if_changed,ld) 14 @: 15 16LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T 17 18$(obj)/piggy.o: $(obj)/vmlinux.scr arch/sh/boot/zImage FORCE 19 $(call if_changed,ld) 20