diff options
author | Marcello Sylvester Bauer <info@marcellobauer.com> | 2018-11-06 12:32:14 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-11-16 10:01:20 +0000 |
commit | a4266691e32d2776ca038a126d1e7b17527ba296 (patch) | |
tree | dd6836ed74fb2804c7a29fc379ef86835506e70d /payloads/external/LinuxBoot | |
parent | 9d917f67fe2460568ad849d2d333b9eec8397921 (diff) |
Linux/Linuxboot: share cmdline and initrd parser
Merge the command-line and initramfs parser from 'a linux payload'
and 'LinuxBoot'.
GOAL: merge 'a Linux payload' and 'LinuxBoot'
Change-Id: I2d2aef5d07453b98e115af6ee06318c690def785
Signed-off-by: Marcello Sylvester Bauer <info@marcellobauer.com>
Reviewed-on: https://review.coreboot.org/29510
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/external/LinuxBoot')
-rw-r--r-- | payloads/external/LinuxBoot/Kconfig | 4 | ||||
-rw-r--r-- | payloads/external/LinuxBoot/Makefile | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/payloads/external/LinuxBoot/Kconfig b/payloads/external/LinuxBoot/Kconfig index a872d49bf8..ba8b5a6d08 100644 --- a/payloads/external/LinuxBoot/Kconfig +++ b/payloads/external/LinuxBoot/Kconfig @@ -73,7 +73,7 @@ config LINUXBOOT_KERNEL_CONFIGFILE Add your own kernel configuration file. Otherwise a default minimal defconfig is used. -config LINUXBOOT_KERNEL_COMMANDLINE +config LINUX_COMMAND_LINE string "Kernel command-line" default "" help @@ -128,7 +128,7 @@ config LINUXBOOT_UROOT_FILES Path to directory containing root structure for embedding into the initramfs. -config PAYLOAD_USERSPACE +config LINUX_INITRD string default "payloads/external/LinuxBoot/linuxboot/initramfs.cpio.xz" diff --git a/payloads/external/LinuxBoot/Makefile b/payloads/external/LinuxBoot/Makefile index 006fb6ee5d..6d852cb2df 100644 --- a/payloads/external/LinuxBoot/Makefile +++ b/payloads/external/LinuxBoot/Makefile @@ -82,20 +82,20 @@ $(project_dir)/target.dtb: $(PWD)/$(CONFIG_LINUXBOOT_DTB_FILE) $(project_dir)/vmlinux.bin.lzma: $(project_dir)/vmlinux.bin xz -c -k -f --format=lzma --lzma1=dict=1MiB,lc=3,lp=0,pb=3 $< > $@ -$(project_dir)/kernel-image: $(project_dir)/vmlinux.bin.lzma $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)/target.dtb $(PWD)/$(CONFIG_PAYLOAD_USERSPACE) +$(project_dir)/kernel-image: $(project_dir)/vmlinux.bin.lzma $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)/target.dtb $(PWD)/$(CONFIG_LINUX_INITRD) cp $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir) mkimage -f $(project_dir)/kernel_fdt_lzma.its $@ endif ifeq ($(CONFIG_LINUXBOOT_UROOT),y) -$(PWD)/$(CONFIG_PAYLOAD_USERSPACE): +$(PWD)/$(CONFIG_LINUX_INITRD): $(MAKE) -f targets/u-root.mk else -$(PWD)/$(CONFIG_PAYLOAD_USERSPACE): +$(PWD)/$(CONFIG_LINUX_INITRD): echo "Building without u-root support" endif -linuxboot: $(project_dir)/kernel-image $(PWD)/$(CONFIG_PAYLOAD_USERSPACE) +linuxboot: $(project_dir)/kernel-image $(PWD)/$(CONFIG_LINUX_INITRD) clean: if [ -d "$(kernel_dir)" ]; then rm -rf $(kernel_dir); fi |