Linux Audio

Check our new training course

Loading...
v6.2
 1# SPDX-License-Identifier: GPL-2.0-only
 2targets := Image zImage uImage
 
 3
 4$(obj)/Image: vmlinux FORCE
 5	$(call if_changed,objcopy)
 6	@echo '  Kernel: $@ is ready'
 7
 8compress-$(CONFIG_KERNEL_GZIP) = gzip
 9compress-$(CONFIG_KERNEL_LZO)  = lzo
10compress-$(CONFIG_KERNEL_LZMA) = lzma
11compress-$(CONFIG_KERNEL_XZ)   = xzkern
12compress-$(CONFIG_KERNEL_LZ4)  = lz4
13
14$(obj)/zImage:  $(obj)/Image FORCE
15	$(call if_changed,$(compress-y))
16	@echo '  Kernel: $@ is ready'
17
18UIMAGE_ARCH		= sandbox
19UIMAGE_COMPRESSION	= $(compress-y)
20UIMAGE_LOADADDR		= $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
21
22$(obj)/uImage: $(obj)/zImage
23	$(call if_changed,uimage)
24	@echo 'Image: $@ is ready'
v5.9
 1# SPDX-License-Identifier: GPL-2.0-only
 2targets := Image zImage uImage
 3targets += $(dtb-y)
 4
 5$(obj)/Image: vmlinux FORCE
 6	$(call if_changed,objcopy)
 7	@echo '  Kernel: $@ is ready'
 8
 9compress-$(CONFIG_KERNEL_GZIP) = gzip
10compress-$(CONFIG_KERNEL_LZO)  = lzo
11compress-$(CONFIG_KERNEL_LZMA) = lzma
12compress-$(CONFIG_KERNEL_XZ)   = xzkern
13compress-$(CONFIG_KERNEL_LZ4)  = lz4
14
15$(obj)/zImage:  $(obj)/Image FORCE
16	$(call if_changed,$(compress-y))
17	@echo '  Kernel: $@ is ready'
18
19UIMAGE_ARCH		= sandbox
20UIMAGE_COMPRESSION	= $(compress-y)
21UIMAGE_LOADADDR		= $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
22
23$(obj)/uImage: $(obj)/zImage
24	$(call if_changed,uimage)
25	@echo 'Image: $@ is ready'