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