diff options
Diffstat (limited to 'arch/sh/boot/romimage/Makefile')
-rw-r--r-- | arch/sh/boot/romimage/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/sh/boot/romimage/Makefile b/arch/sh/boot/romimage/Makefile new file mode 100644 index 000000000000..5806eee84f6f --- /dev/null +++ b/arch/sh/boot/romimage/Makefile | |||
@@ -0,0 +1,19 @@ | |||
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 | ||
8 | |||
9 | OBJECTS = $(obj)/head.o | ||
10 | LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart | ||
11 | |||
12 | $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE | ||
13 | $(call if_changed,ld) | ||
14 | @: | ||
15 | |||
16 | LDFLAGS_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) | ||