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