70416a9b452ffd11ea2db3add40338b7c8a00181
[deliverable/linux.git] / arch / arc / boot / Makefile
1 targets := vmlinux.bin vmlinux.bin.gz uImage
2
3 # uImage build relies on mkimage being availble on your host for ARC target
4 # You will need to build u-boot for ARC, rename mkimage to arc-elf32-mkimage
5 # and make sure it's reacable from your PATH
6
7 OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S
8
9 LINUX_START_TEXT = $$(readelf -h vmlinux | \
10 grep "Entry point address" | grep -o 0x.*)
11
12 UIMAGE_LOADADDR = $(CONFIG_LINUX_LINK_BASE)
13 UIMAGE_ENTRYADDR = $(LINUX_START_TEXT)
14 UIMAGE_COMPRESSION = gzip
15
16 $(obj)/vmlinux.bin: vmlinux FORCE
17 $(call if_changed,objcopy)
18
19 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
20 $(call if_changed,gzip)
21
22 $(obj)/uImage: $(obj)/vmlinux.bin.gz FORCE
23 $(call if_changed,uimage)
24
This page took 0.030507 seconds and 4 git commands to generate.