2 # linux/arch/sh/boot/romimage/Makefile
4 # create an image suitable for burning to flash from zImage
7 targets := vmlinux head.o zeropage.bin piggy.o
9 OBJECTS = $(obj)/head.o
10 LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart \
11 -T $(obj)/../../kernel/vmlinux.lds
13 $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
17 OBJCOPYFLAGS += -j .empty_zero_page
19 $(obj)/zeropage.bin: vmlinux FORCE
20 $(call if_changed,objcopy)
22 LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
24 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE