diff options
author | Magnus Damm <damm@opensource.se> | 2009-12-04 06:42:35 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-04 16:26:20 +0900 |
commit | 6a5a0b9139b19dd1a107870269a35bc9cf18d2dc (patch) | |
tree | 6212ed4ee2d0cc3f84edd26173bad5c4d6470338 /arch/sh/boot/romimage/Makefile | |
parent | 6e8a0d11a088ed51b1b649d3a1127a7bda3700a0 (diff) | |
download | op-kernel-dev-6a5a0b9139b19dd1a107870269a35bc9cf18d2dc.zip op-kernel-dev-6a5a0b9139b19dd1a107870269a35bc9cf18d2dc.tar.gz |
sh: include empty zero page in romImage
This patch updates the romImage code to include the
empty_zero_page contents from vmlinux. Without this
patch the empty zero page is lef uninitialized.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot/romimage/Makefile')
-rw-r--r-- | arch/sh/boot/romimage/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/sh/boot/romimage/Makefile b/arch/sh/boot/romimage/Makefile index 5806eee..f473a24 100644 --- a/arch/sh/boot/romimage/Makefile +++ b/arch/sh/boot/romimage/Makefile @@ -4,16 +4,22 @@ # create an image suitable for burning to flash from zImage # -targets := vmlinux head.o +targets := vmlinux head.o zeropage.bin piggy.o OBJECTS = $(obj)/head.o -LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart +LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart \ + -T $(obj)/../../kernel/vmlinux.lds $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE $(call if_changed,ld) @: +OBJCOPYFLAGS += -j .empty_zero_page + +$(obj)/zeropage.bin: vmlinux FORCE + $(call if_changed,objcopy) + LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T -$(obj)/piggy.o: $(obj)/vmlinux.scr arch/sh/boot/zImage FORCE +$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/zeropage.bin arch/sh/boot/zImage FORCE $(call if_changed,ld) |