Linux Audio

Check our new training course

Loading...
v4.10.11
 1targets := 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
 7OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S
 8
 9LINUX_START_TEXT = $$(readelf -h vmlinux | \
10			grep "Entry point address" | grep -o 0x.*)
11
12UIMAGE_LOADADDR    = $(CONFIG_LINUX_LINK_BASE)
13UIMAGE_ENTRYADDR   = $(LINUX_START_TEXT)
14
15suffix-y := bin
16suffix-$(CONFIG_KERNEL_GZIP)	:= gz
17suffix-$(CONFIG_KERNEL_LZMA)	:= lzma
18
19targets += uImage
20targets += uImage.bin
21targets += uImage.gz
22targets += uImage.lzma
23extra-y += vmlinux.bin
24extra-y += vmlinux.bin.gz
25extra-y += vmlinux.bin.lzma
26
27$(obj)/vmlinux.bin: vmlinux FORCE
28	$(call if_changed,objcopy)
29
30$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
31	$(call if_changed,gzip)
32
33$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
34	$(call if_changed,lzma)
35
36$(obj)/uImage.bin: $(obj)/vmlinux.bin FORCE
37	$(call if_changed,uimage,none)
38
39$(obj)/uImage.gz: $(obj)/vmlinux.bin.gz FORCE
40	$(call if_changed,uimage,gzip)
41
42$(obj)/uImage.lzma: $(obj)/vmlinux.bin.lzma FORCE
43	$(call if_changed,uimage,lzma)
44
45$(obj)/uImage: $(obj)/uImage.$(suffix-y)
46	@ln -sf $(notdir $<) $@
47	@echo '  Image $@ is ready'
v6.13.7
 1# SPDX-License-Identifier: GPL-2.0
 2
 3# uImage build relies on mkimage being available 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 reachable from your PATH
 6
 7OBJCOPYFLAGS= -O binary -R .note -R .note.gnu.build-id -R .comment -S
 8
 9LINUX_START_TEXT = $$($(READELF) -h vmlinux | \
10			grep "Entry point address" | grep -o 0x.*)
11
12UIMAGE_LOADADDR    = $(CONFIG_LINUX_LINK_BASE)
13UIMAGE_ENTRYADDR   = $(LINUX_START_TEXT)
14
15targets += vmlinux.bin
16targets += vmlinux.bin.gz
17targets += vmlinux.bin.lzma
 
 
18targets += uImage.bin
19targets += uImage.gz
20targets += uImage.lzma
 
 
 
21
22$(obj)/vmlinux.bin: vmlinux FORCE
23	$(call if_changed,objcopy)
24
25$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
26	$(call if_changed,gzip)
27
28$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
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 FORCE
38	$(call if_changed,uimage,lzma)