aboutsummaryrefslogtreecommitdiff
path: root/payloads/external/LinuxBoot/Kconfig
diff options
context:
space:
mode:
authorPhilipp Deppenwiese <zaolin@das-labor.org>2018-06-19 20:22:32 +0200
committerPhilipp Deppenwiese <zaolin.daisuki@gmail.com>2018-06-19 18:37:37 +0000
commit0f0e4e6c66b53098404ee00b001819b8b86f8e4b (patch)
treeee25551fd811f1905b0fa791ca8d525ba02a44ba /payloads/external/LinuxBoot/Kconfig
parenta892cde653d40e39d399b1bc4c438e3dc2d00cd6 (diff)
payloads: Add LinuxBoot payload in u-root mode
* Add LinuxBoot support * Add u-root mode * Download kernel and u-root from upstream sources. * Add customization options * Clean kernel only if directory exists Change-Id: I3a25ff6812e046acc688cbbb203cf262ad751659 Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/23071 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/external/LinuxBoot/Kconfig')
-rw-r--r--payloads/external/LinuxBoot/Kconfig113
1 files changed, 113 insertions, 0 deletions
diff --git a/payloads/external/LinuxBoot/Kconfig b/payloads/external/LinuxBoot/Kconfig
new file mode 100644
index 0000000000..74e6c9451c
--- /dev/null
+++ b/payloads/external/LinuxBoot/Kconfig
@@ -0,0 +1,113 @@
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2017 Facebook Inc.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+
+if PAYLOAD_LINUXBOOT
+
+choice
+ prompt "Architecture"
+ default LINUXBOOT_X86_64
+
+config LINUXBOOT_X86_64
+ bool "x86_64"
+ help
+ AMD64 kernel and initramfs
+
+config LINUXBOOT_X86
+ bool "x86"
+ help
+ X86 kernel and initramfs
+endchoice
+
+config LINUXBOOT_ARCH
+ string
+ default "amd64" if LINUXBOOT_X86_64
+ default "386" if LINUXBOOT_X86
+
+choice
+ prompt "Kernel version"
+ default LINUXBOOT_KERNEL_STABLE
+
+config LINUXBOOT_KERNEL_STABLE
+ bool "4.15.3"
+ help
+ Stable kernel version
+endchoice
+
+config LINUXBOOT_KERNEL_VERSION
+ string
+ default "4.15.3" if LINUXBOOT_KERNEL_STABLE
+
+config LINUXBOOT_KERNEL_CONFIGFILE
+ string "Kernel config file"
+ default ""
+ help
+ Add your own kernel configuration file. Otherwise a default
+ minimal defconfig is used.
+
+config LINUXBOOT_KERNEL_COMMANDLINE
+ string "Kernel command-line"
+ default ""
+ help
+ Add your own kernel command-line arguments.
+
+config PAYLOAD_FILE
+ default "payloads/external/LinuxBoot/linuxboot/kernel-image"
+
+choice
+ prompt "Payload Mode"
+ default LINUXBOOT_UROOT
+
+config LINUXBOOT_UROOT
+ bool "u-root"
+ help
+ Enable u-root linuxboot mode.
+ See http://u-root.tk/ for more information.
+endchoice
+
+if LINUXBOOT_UROOT
+
+choice
+ prompt "U-root version"
+ default LINUXBOOT_UROOT_MASTER
+
+config LINUXBOOT_UROOT_MASTER
+ bool "master"
+ help
+ Latest u-root version
+endchoice
+
+config LINUXBOOT_UROOT_VERSION
+ string
+ default "master" if LINUXBOOT_UROOT_MASTER
+
+config LINUXBOOT_UROOT_COMMANDS
+ string "Select u-root commands"
+ default ""
+ help
+ Comma separated list of additional modules to include. Otherwise all modules
+ of u-root are included.
+
+config LINUXBOOT_UROOT_FILES
+ string "Add files to u-root base"
+ default ""
+ help
+ Path to directory containing root structure for embedding into the
+ initramfs.
+
+config PAYLOAD_USERSPACE
+ string ""
+ default "payloads/external/LinuxBoot/linuxboot/initramfs.cpio.xz"
+
+endif
+endif