mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-05 21:35:04 +08:00
3c928320b2
This patch contains support for the romImage build target V2. The resulting romImage file should be burned to rom or flash and could be used as small boot loader. Board code should keep their setup code in the file romimage.h located in their mach include directory. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
20 lines
441 B
Makefile
20 lines
441 B
Makefile
#
|
|
# linux/arch/sh/boot/romimage/Makefile
|
|
#
|
|
# create an image suitable for burning to flash from zImage
|
|
#
|
|
|
|
targets := vmlinux head.o
|
|
|
|
OBJECTS = $(obj)/head.o
|
|
LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext 0 -e romstart
|
|
|
|
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
|
|
$(call if_changed,ld)
|
|
@:
|
|
|
|
LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
|
|
|
|
$(obj)/piggy.o: $(obj)/vmlinux.scr arch/sh/boot/zImage FORCE
|
|
$(call if_changed,ld)
|