mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
c32e64e852
This patch adds Makefile, Kconfig for build infrastructure. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
25 lines
654 B
Makefile
25 lines
654 B
Makefile
targets := Image zImage uImage
|
|
targets += $(dtb-y)
|
|
|
|
$(obj)/Image: vmlinux FORCE
|
|
$(call if_changed,objcopy)
|
|
@echo ' Kernel: $@ is ready'
|
|
|
|
compress-$(CONFIG_KERNEL_GZIP) = gzip
|
|
compress-$(CONFIG_KERNEL_LZO) = lzo
|
|
compress-$(CONFIG_KERNEL_LZMA) = lzma
|
|
compress-$(CONFIG_KERNEL_XZ) = xzkern
|
|
compress-$(CONFIG_KERNEL_LZ4) = 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'
|