162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_citargets := Image zImage uImage 362306a36Sopenharmony_ci 462306a36Sopenharmony_ci$(obj)/Image: vmlinux FORCE 562306a36Sopenharmony_ci $(call if_changed,objcopy) 662306a36Sopenharmony_ci @echo ' Kernel: $@ is ready' 762306a36Sopenharmony_ci 862306a36Sopenharmony_cicompress-$(CONFIG_KERNEL_GZIP) = gzip 962306a36Sopenharmony_cicompress-$(CONFIG_KERNEL_LZO) = lzo 1062306a36Sopenharmony_cicompress-$(CONFIG_KERNEL_LZMA) = lzma 1162306a36Sopenharmony_cicompress-$(CONFIG_KERNEL_XZ) = xzkern 1262306a36Sopenharmony_cicompress-$(CONFIG_KERNEL_LZ4) = lz4 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci$(obj)/zImage: $(obj)/Image FORCE 1562306a36Sopenharmony_ci $(call if_changed,$(compress-y)) 1662306a36Sopenharmony_ci @echo ' Kernel: $@ is ready' 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciUIMAGE_ARCH = sandbox 1962306a36Sopenharmony_ciUIMAGE_COMPRESSION = $(compress-y) 2062306a36Sopenharmony_ciUIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}') 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ci$(obj)/uImage: $(obj)/zImage 2362306a36Sopenharmony_ci $(call if_changed,uimage) 2462306a36Sopenharmony_ci @echo 'Image: $@ is ready' 25