18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_citargets := Image zImage uImage 38c2ecf20Sopenharmony_citargets += $(dtb-y) 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci$(obj)/Image: vmlinux FORCE 68c2ecf20Sopenharmony_ci $(call if_changed,objcopy) 78c2ecf20Sopenharmony_ci @echo ' Kernel: $@ is ready' 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cicompress-$(CONFIG_KERNEL_GZIP) = gzip 108c2ecf20Sopenharmony_cicompress-$(CONFIG_KERNEL_LZO) = lzo 118c2ecf20Sopenharmony_cicompress-$(CONFIG_KERNEL_LZMA) = lzma 128c2ecf20Sopenharmony_cicompress-$(CONFIG_KERNEL_XZ) = xzkern 138c2ecf20Sopenharmony_cicompress-$(CONFIG_KERNEL_LZ4) = lz4 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci$(obj)/zImage: $(obj)/Image FORCE 168c2ecf20Sopenharmony_ci $(call if_changed,$(compress-y)) 178c2ecf20Sopenharmony_ci @echo ' Kernel: $@ is ready' 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciUIMAGE_ARCH = sandbox 208c2ecf20Sopenharmony_ciUIMAGE_COMPRESSION = $(compress-y) 218c2ecf20Sopenharmony_ciUIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}') 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci$(obj)/uImage: $(obj)/zImage 248c2ecf20Sopenharmony_ci $(call if_changed,uimage) 258c2ecf20Sopenharmony_ci @echo 'Image: $@ is ready' 26