# SPDX-License-Identifier: GPL-2.0-only targets := Image zImage uImage targets += $(dtb-y) $(obj)/Image: vmlinux FORCE $(call if_changed,objcopy) @echo ' Kernel: $@ is ready' compress-$([31mCONFIG_KERNEL_GZIP[0m) = gzip compress-$([31mCONFIG_KERNEL_LZO[0m) = lzo compress-$([31mCONFIG_KERNEL_LZMA[0m) = lzma compress-$([31mCONFIG_KERNEL_XZ[0m) = xzkern compress-$([31mCONFIG_KERNEL_LZ4[0m) = lz4 $(obj)/zImage: $(obj)/Image FORCE $(call if_changed,$(compress-y)) @echo ' Kernel: $@ is ready' UIMAGE_ARCH = sandbox UIMAGE_COMPRESSION = $(compress-y) UIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}') $(obj)/uImage: $(obj)/zImage $(call if_changed,uimage) @echo 'Image: $@ is ready' |