1 # SPDX-License-Identifier: GPL-2.0 2 3 # uImage build relies on mkimage being availab 4 # You will need to build u-boot for ARC, renam 5 # and make sure it's reachable from your PATH 6 7 OBJCOPYFLAGS= -O binary -R .note -R .note.gnu. 8 9 LINUX_START_TEXT = $$($(READELF) -h vmlinux | 10 grep "Entry point addr 11 12 UIMAGE_LOADADDR = $(CONFIG_LINUX_LINK_BASE) 13 UIMAGE_ENTRYADDR = $(LINUX_START_TEXT) 14 15 targets += vmlinux.bin 16 targets += vmlinux.bin.gz 17 targets += vmlinux.bin.lzma 18 targets += uImage.bin 19 targets += uImage.gz 20 targets += uImage.lzma 21 22 $(obj)/vmlinux.bin: vmlinux FORCE 23 $(call if_changed,objcopy) 24 25 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORC 26 $(call if_changed,gzip) 27 28 $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FO 29 $(call if_changed,lzma) 30 31 $(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE 32 $(call if_changed,uimage,none) 33 34 $(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE 35 $(call if_changed,uimage,gzip) 36 37 $(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FO 38 $(call if_changed,uimage,lzma)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.