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