# SPDX-License-Identifier: GPL-2.0 # # linux/arch/sh/boot/romimage/Makefile # # create an romImage file suitable for burning to flash/mmc from zImage # targets := vmlinux head.o zeropage.bin piggy.o load-y := 0 mmcif-load-$([31mCONFIG_CPU_SUBTYPE_SH7724[0m) := 0xe5200000 # ILRAM mmcif-obj-$([31mCONFIG_CPU_SUBTYPE_SH7724[0m) := $(obj)/mmcif-sh7724.o load-$([31mCONFIG_ROMIMAGE_MMCIF[0m) := $(mmcif-load-y) obj-$([31mCONFIG_ROMIMAGE_MMCIF[0m) := $(mmcif-obj-y) LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(load-y) -e romstart \ -T $(obj)/../../kernel/vmlinux.lds $(obj)/vmlinux: $(obj)/head.o $(obj-y) $(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 $(obj)/zeropage.bin arch/sh/boot/zImage FORCE $(call if_changed,ld) |