LinuxBoot: refactor u-root.mk
Clean the u-root initramfs integration and add essential flags as options. Now u-root automatically fetch updates and rebuilts itself to apply changes. Change-Id: Id978ed2ebeff96c5be4f74ae07df9be76e106a1b Signed-off-by: Marcello Sylvester Bauer <info@marcellobauer.com> Reviewed-on: https://review.coreboot.org/c/29778 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
committed by
Philipp Deppenwiese
parent
78d0256f1d
commit
e102c5d54b
13
payloads/external/LinuxBoot/Makefile
vendored
13
payloads/external/LinuxBoot/Makefile
vendored
@@ -17,7 +17,6 @@ project_dir=linuxboot
|
||||
kernel_dir=$(project_dir)/kernel
|
||||
|
||||
unexport $(COREBOOT_EXPORTS)
|
||||
unexport MAKEFLAGS
|
||||
|
||||
all: linuxboot
|
||||
|
||||
@@ -38,6 +37,11 @@ initramfs:
|
||||
endif
|
||||
endif
|
||||
|
||||
initramfs_compressed: initramfs
|
||||
ifeq ($(CONFIG_LINUXBOOT_INITRAMFS_COMPRESSION_XZ),y)
|
||||
xz --keep --force --lzma2=dict=1MiB $(top)/$(CONFIG_LINUXBOOT_INITRAMFS)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LINUXBOOT_COMPILE_KERNEL),y)
|
||||
ifeq ($(CONFIG_LINUXBOOT_ARCH),arm64)
|
||||
kernel: initramfs
|
||||
@@ -54,13 +58,14 @@ kernel:
|
||||
fi
|
||||
endif
|
||||
|
||||
linuxboot: kernel initramfs
|
||||
linuxboot: kernel initramfs_compressed
|
||||
|
||||
clean:
|
||||
if [ -d "$(kernel_dir)" ]; then rm -rf $(kernel_dir); fi
|
||||
rm -f $(project_dir)/initramfs.cpio.xz
|
||||
rm -f $(project_dir)/u-root
|
||||
rm -f $(project_dir)/initramfs*
|
||||
|
||||
distclean:
|
||||
rm -rf $(project_dir)
|
||||
|
||||
.PHONY: linuxboot kernel initramfs u-root clean distclean
|
||||
.PHONY: linuxboot kernel initramfs_compressed initramfs u-root clean distclean
|
||||
|
Reference in New Issue
Block a user