]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/sh/boot/romimage/Makefile
tracing: Fix undeclared ENOSYS in include/linux/tracepoint.h
[karo-tx-linux.git] / arch / sh / boot / romimage / Makefile
1 #
2 # linux/arch/sh/boot/romimage/Makefile
3 #
4 # create an image suitable for burning to flash from zImage
5 #
6
7 targets         := vmlinux head.o zeropage.bin piggy.o
8
9 OBJECTS = $(obj)/head.o
10 LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart \
11                    -T $(obj)/../../kernel/vmlinux.lds
12
13 $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
14         $(call if_changed,ld)
15         @:
16
17 OBJCOPYFLAGS += -j .empty_zero_page
18
19 $(obj)/zeropage.bin: vmlinux FORCE
20         $(call if_changed,objcopy)
21
22 LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
23
24 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE
25         $(call if_changed,ld)