Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only
0002 targets := Image zImage uImage
0003 
0004 $(obj)/Image: vmlinux FORCE
0005         $(call if_changed,objcopy)
0006         @echo '  Kernel: $@ is ready'
0007 
0008 compress-$(CONFIG_KERNEL_GZIP) = gzip
0009 compress-$(CONFIG_KERNEL_LZO)  = lzo
0010 compress-$(CONFIG_KERNEL_LZMA) = lzma
0011 compress-$(CONFIG_KERNEL_XZ)   = xzkern
0012 compress-$(CONFIG_KERNEL_LZ4)  = lz4
0013 
0014 $(obj)/zImage:  $(obj)/Image FORCE
0015         $(call if_changed,$(compress-y))
0016         @echo '  Kernel: $@ is ready'
0017 
0018 UIMAGE_ARCH             = sandbox
0019 UIMAGE_COMPRESSION      = $(compress-y)
0020 UIMAGE_LOADADDR         = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
0021 
0022 $(obj)/uImage: $(obj)/zImage
0023         $(call if_changed,uimage)
0024         @echo 'Image: $@ is ready'