diff options
author | Marcello Sylvester Bauer <info@marcellobauer.com> | 2018-11-21 17:45:43 +0100 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-11-28 18:32:41 +0000 |
commit | e102c5d54b79543eee34cf19bdbab7b25ef9417e (patch) | |
tree | d3d31549f4491f04c660ae2f6496f6f7786f3eea /payloads/external/LinuxBoot/Kconfig | |
parent | 78d0256f1d2bb09e4430f2bd56b58df78d54311b (diff) |
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>
Diffstat (limited to 'payloads/external/LinuxBoot/Kconfig')
-rw-r--r-- | payloads/external/LinuxBoot/Kconfig | 91 |
1 files changed, 82 insertions, 9 deletions
diff --git a/payloads/external/LinuxBoot/Kconfig b/payloads/external/LinuxBoot/Kconfig index 046faef287..3b8b70c88f 100644 --- a/payloads/external/LinuxBoot/Kconfig +++ b/payloads/external/LinuxBoot/Kconfig @@ -127,6 +127,7 @@ config LINUXBOOT_UROOT help Enable u-root linuxboot mode. See http://u-root.tk/ for more information. + endchoice if LINUXBOOT_UROOT @@ -135,37 +136,109 @@ choice prompt "U-root version" default LINUXBOOT_UROOT_MASTER +config LINUXBOOT_UROOT_CUSTOM + bool "custom" + help + choose a custom u-root branch + config LINUXBOOT_UROOT_MASTER bool "master" help Latest u-root version + +config LINUXBOOT_UROOT_V3_0_0 + bool "v3.0.0" + +config LINUXBOOT_UROOT_V2_0_0 + bool "v2.0.0" + +config LINUXBOOT_UROOT_V1_0_0 + bool "v1.0.0" + endchoice +config LINUXBOOT_UROOT_CHECKOUT + string "U-root custom branch" + depends on LINUXBOOT_UROOT_CUSTOM + config LINUXBOOT_UROOT_VERSION string + default LINUXBOOT_UROOT_CHECKOUT if LINUXBOOT_UROOT_CUSTOM default "master" if LINUXBOOT_UROOT_MASTER + default "v3.0.0" if LINUXBOOT_UROOT_V3_0_0 + default "v2.0.0" if LINUXBOOT_UROOT_V2_0_0 + default "v1.0.0" if LINUXBOOT_UROOT_V1_0_0 -config LINUXBOOT_UROOT_COMMANDS - string "Select u-root commands" - default "" +choice + prompt "Build format" + default LINUXBOOT_UROOT_BB help - List of additional modules to include, separated by space. Otherwise - all modules of u-root are included. + u-root build format (e.g. bb or source). (default "bb") + +config LINUXBOOT_UROOT_BB + bool "bb" + +config LINUXBOOT_UROOT_SOURCE + bool "source (experimental)" + +endchoice + +config LINUXBOOT_UROOT_FORMAT + string + default "bb" if LINUXBOOT_UROOT_BB + default "source" if LINUXBOOT_UROOT_SOURCE config LINUXBOOT_UROOT_FILES string "Add files to u-root base" - default "" help - Path to directory containing root structure for embedding into the - initramfs. + Additional files, directories, and binaries (with their ldd dependencies) to add to archive. + Can be speficified multiple times. + +config LINUXBOOT_UROOT_INITCMD + string "Init target" + default "init" + help + Symlink target for /init. + Can be an absolute path or a u-root command name. (default "init") + +config LINUXBOOT_UROOT_SHELL + string "default shell" + default "elvish" + help + Default shell. + Can be an absolute path or a u-root command name. (default "elvish") + +config LINUXBOOT_UROOT_COMMANDS + string "U-root commands" + default "coreboot-app" + help + List of additional modules to include, + separated by space. (default "coreboot-app") endif #LINUXBOOT_UROOT endif #LINUXBOOT_BUILD_INITRAMFS +choice LINUXBOOT_INITRAMFS_COMPRESSION + prompt "Initramfs compression format" + default LINUXBOOT_INITRAMFS_COMPRESSION_XZ + +config LINUXBOOT_INITRAMFS_COMPRESSION_NONE + bool "none" + +config LINUXBOOT_INITRAMFS_COMPRESSION_XZ + bool "xz compression" + +endchoice + config LINUX_INITRD string - default "payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio.xz" if LINUXBOOT_UROOT + default "payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio" if LINUXBOOT_UROOT default LINUXBOOT_INITRAMFS_PATH if !LINUXBOOT_BUILD_INITRAMFS +config LINUXBOOT_INITRAMFS_SUFFIX + string + default "" if LINUXBOOT_INITRAMFS_COMPRESSION_NONE + default ".xz" if LINUXBOOT_INITRAMFS_COMPRESSION_XZ + endif #PAYLOAD_LINUXBOOT |