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