payloads: Replace GPL boilerplate with SPDX headers
Used commands:
perl -i -p0e 's|\/\*[\s*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-only */|' $(cat filelist)
perl -i -p0e 's|\/\*[\s*]*.*is[\s*]*free[\s*]*software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*either[\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License,[\s*]*or[\s*]*.at[\s*]*your[\s*]*option.*[\s*]*any[\s*]*later[\s*]*version.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-2.0-or-later */|' $(cat filelist)
perl -i -p0e 's|\/\*[\s*]*.*is[\s*#]*free[\s*#]*software[;:,][\s*#]*you[\s*#]*can[\s*#]*redistribute[\s*#]*it[\s*#]*and/or[\s*#]*modify[\s*#]*it[\s*#]*under[\s*#]*the[\s*#]*terms[\s*#]*of[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*as[\s*#]*published[\s*#]*by[\s*#]*the[\s*#]*Free[\s*#]*Software[\s*#]*Foundation[;:,][\s*#]*either[\s*#]*version[\s*#]*3[\s*#]*of[\s*#]*the[\s*#]*License[;:,][\s*#]*or[\s*#]*.at[\s*#]*your[\s*#]*option.*[\s*#]*any[\s*#]*later[\s*#]*version.[\s*#]*This[\s*#]*program[\s*#]*is[\s*#]*distributed[\s*#]*in[\s*#]*the[\s*#]*hope[\s*#]*that[\s*#]*it[\s*#]*will[\s*#]*be[\s*#]*useful[;:,][\s*#]*but[\s*#]*WITHOUT[\s*#]*ANY[\s*#]*WARRANTY[;:,][\s*#]*without[\s*#]*even[\s*#]*the[\s*#]*implied[\s*#]*warranty[\s*#]*of[\s*#]*MERCHANTABILITY[\s*#]*or[\s*#]*FITNESS[\s*#]*FOR[\s*#]*A[\s*#]*PARTICULAR[\s*#]*PURPOSE.[\s*#]*See[\s*#]*the[\s*#]*GNU[\s*#]*General[\s*#]*Public[\s*#]*License[\s*#]*for[\s*#]*more[\s*#]*details.[\s*]*\*\/|/* SPDX-License-Identifier: GPL-3.0-or-later */|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w]*.*is free software[:;][\#\s]*you[\#\s]*can[\#\s]*redistribute[\#\s]*it[\#\s]*and\/or[\#\s]*modify[\#\s]*it[\s\#]*under[\s \#]*the[\s\#]*terms[\s\#]*of[\s\#]*the[\s\#]*GNU[\s\#]*General[\s\#]*Public[\s\#]*License[\s\#]*as[\s\#]*published[\s\#]*by[\s\#]*the[\s\#]*Free[\s\#]*Software[\s\#]*Foundation[;,][\s\#]*version[\s\#]*2[\s\#]*of[\s\#]*the[\s\#]*License.*[\s\#]*This[\s\#]*program[\s\#]*is[\s\#]*distributed[\s\#]*in[\s\#]*the[\s\#]*hope[\s\#]*that[\s\#]*it[\s\#]*will[\#\s]*be[\#\s]*useful,[\#\s]*but[\#\s]*WITHOUT[\#\s]*ANY[\#\s]*WARRANTY;[\#\s]*without[\#\s]*even[\#\s]*the[\#\s]*implied[\#\s]*warranty[\#\s]*of[\#\s]*MERCHANTABILITY[\#\s]*or[\#\s]*FITNESS[\#\s]*FOR[\#\s]*A[\#\s]*PARTICULAR[\#\s]*PURPOSE.[\#\s]*See[\#\s]*the[\#\s]*GNU[\#\s]*General[\#\s]*Public[\#\s]*License[\#\s]*for[\#\s]*more[\#\s]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
perl -i -p0e 's|(\#\#*)[\w*]*.*is free software[:;][\s*]*you[\s*]*can[\s*]*redistribute[\s*]*it[\s*]*and\/or[\s*]*modify[\s*]*it[\s*]*under[\s*]*the[\s*]*terms[\s*]*of[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*as[\s*]*published[\s*]*by[\s*]*the[\s*]*Free[\s*]*Software[\s*]*Foundation[;,][\s*]*version[\s*]*2[\s*]*of[\s*]*the[\s*]*License.[\s*]*This[\s*]*program[\s*]*is[\s*]*distributed[\s*]*in[\s*]*the[\s*]*hope[\s*]*that[\s*]*it[\s*]*will[\s*]*be[\s*]*useful,[\s*]*but[\s*]*WITHOUT[\s*]*ANY[\s*]*WARRANTY;[\s*]*without[\s*]*even[\s*]*the[\s*]*implied[\s*]*warranty[\s*]*of[\s*]*MERCHANTABILITY[\s*]*or[\s*]*FITNESS[\s*]*FOR[\s*]*A[\s*]*PARTICULAR[\s*]*PURPOSE.[\s*]*See[\s*]*the[\s*]*GNU[\s*]*General[\s*]*Public[\s*]*License[\s*]*for[\s*]*more[\s*]*details.\s(#* *\n)*|\1 SPDX-License-Identifier: GPL-2.0-only\n\n|' $(cat filelist)
Change-Id: I9f74ed19257bc4234465b8f912deff1b485173f9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41179
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-08 22:50:46 +02:00
|
|
|
## SPDX-License-Identifier: GPL-2.0-only
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
if PAYLOAD_LINUXBOOT
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Architecture"
|
2018-11-11 18:03:26 +01:00
|
|
|
depends on LINUXBOOT_COMPILE_KERNEL || LINUXBOOT_BUILD_INITRAMFS
|
2018-06-19 20:22:32 +02:00
|
|
|
default LINUXBOOT_X86_64
|
|
|
|
|
|
|
|
config LINUXBOOT_X86_64
|
|
|
|
bool "x86_64"
|
2018-03-13 11:22:26 +01:00
|
|
|
depends on ARCH_X86
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
|
|
|
AMD64 kernel and initramfs
|
|
|
|
|
|
|
|
config LINUXBOOT_X86
|
|
|
|
bool "x86"
|
2018-03-13 11:22:26 +01:00
|
|
|
depends on ARCH_X86
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
|
|
|
X86 kernel and initramfs
|
2018-03-13 11:22:26 +01:00
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
config LINUXBOOT_ARM
|
|
|
|
bool "arm64"
|
|
|
|
depends on ARCH_ARM
|
|
|
|
select PAYLOAD_FIT_SUPPORT
|
|
|
|
help
|
|
|
|
arm kernel and initramfs
|
|
|
|
|
2018-03-13 11:22:26 +01:00
|
|
|
config LINUXBOOT_ARM64
|
|
|
|
bool "arm64"
|
|
|
|
depends on ARCH_ARM64
|
|
|
|
select PAYLOAD_FIT_SUPPORT
|
|
|
|
help
|
|
|
|
AARCH64 kernel and initramfs
|
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
config LINUXBOOT_RISCV_RV32
|
|
|
|
bool "RISC-V"
|
|
|
|
depends on ARCH_RISCV_RV32
|
|
|
|
select PAYLOAD_FIT_SUPPORT
|
|
|
|
help
|
|
|
|
RISC-V kernel and initramfs
|
|
|
|
|
|
|
|
config LINUXBOOT_RISCV_RV64
|
2018-12-12 01:08:24 +01:00
|
|
|
bool "RISC-V"
|
2023-06-26 20:04:47 +02:00
|
|
|
depends on ARCH_RISCV_RV64
|
2018-12-12 01:08:24 +01:00
|
|
|
select PAYLOAD_FIT_SUPPORT
|
|
|
|
help
|
|
|
|
RISC-V kernel and initramfs
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
endchoice
|
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
comment "Linux kernel"
|
|
|
|
|
|
|
|
config LINUXBOOT_COMPILE_KERNEL
|
|
|
|
bool "Compile kernel"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_PATH
|
|
|
|
string "Path to kernel"
|
2023-06-26 20:04:47 +02:00
|
|
|
default "build/uImage" if LINUXBOOT_KERNEL_UIMAGE
|
|
|
|
default "build/bzImage" if LINUXBOOT_KERNEL_BZIMAGE
|
2018-12-05 08:45:26 +01:00
|
|
|
help
|
2023-06-26 20:04:47 +02:00
|
|
|
The kernel path is either and absolute path or relative to the
|
|
|
|
LinuxBoot directory
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
if LINUXBOOT_COMPILE_KERNEL
|
2018-12-05 08:45:26 +01:00
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
config LINUXBOOT_CROSS_COMPILE
|
|
|
|
string "cross compiler"
|
|
|
|
default "" # e.g. "aarch64-linux-gnu-"
|
2018-12-05 08:45:26 +01:00
|
|
|
help
|
2023-06-26 20:04:47 +02:00
|
|
|
Choose a custom cross compiler toolchain to use.
|
|
|
|
It can be useful if you don't want to use the coreboot toolchain
|
|
|
|
or experience problems using it.
|
2018-07-30 22:49:33 +02:00
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
config LINUXBOOT_KERNEL_VERSION
|
2018-12-05 08:45:26 +01:00
|
|
|
string "kernel version"
|
2023-06-26 20:04:47 +02:00
|
|
|
default "6.3"
|
2018-12-05 08:45:26 +01:00
|
|
|
help
|
|
|
|
Choose the Linux kernel version number. (x.x.x)
|
|
|
|
Release candidate kernels (rc) are currently are not supported.
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
config LINUXBOOT_KERNEL_CONFIGFILE
|
2018-12-05 08:45:26 +01:00
|
|
|
string "Config file path"
|
2023-06-26 20:04:47 +02:00
|
|
|
default "i386/defconfig" if LINUXBOOT_X86
|
|
|
|
default "x86_64/defconfig" if LINUXBOOT_X86_64
|
|
|
|
default "arm64/defconfig" if LINUXBOOT_ARM64
|
|
|
|
default "riscv/defconfig-32" if LINUXBOOT_RISCV_RV32
|
|
|
|
default "riscv/defconfig-64" if LINUXBOOT_RISCV_RV64
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
2018-12-05 08:45:26 +01:00
|
|
|
Path to the kernel configuration file.
|
|
|
|
|
|
|
|
Note: this can be a defconfig file or a complete .config file.
|
|
|
|
|
2019-04-22 12:18:02 +02:00
|
|
|
choice
|
2018-12-05 08:45:26 +01:00
|
|
|
prompt "Kernel binary format"
|
|
|
|
default LINUXBOOT_KERNEL_BZIMAGE if LINUXBOOT_X86 || LINUXBOOT_X86_64
|
2023-06-26 20:04:47 +02:00
|
|
|
default LINUXBOOT_KERNEL_UIMAGE if LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
|
2018-12-05 08:45:26 +01:00
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_BZIMAGE
|
|
|
|
bool "bzImage"
|
|
|
|
depends on LINUXBOOT_X86 || LINUXBOOT_X86_64
|
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_UIMAGE
|
|
|
|
bool "uImage"
|
2023-06-26 20:04:47 +02:00
|
|
|
depends on LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
|
2018-12-05 08:45:26 +01:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2023-06-26 20:04:47 +02:00
|
|
|
config LINUXBOOT_DTS_FILE
|
2018-11-11 18:03:26 +01:00
|
|
|
string "Compiled devicetree file"
|
2023-06-26 20:04:47 +02:00
|
|
|
depends on LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
|
|
|
|
default "empty.dts"
|
2018-11-11 18:03:26 +01:00
|
|
|
|
|
|
|
endif #LINUXBOOT_COMPILE_KERNEL
|
|
|
|
|
2018-11-06 12:32:14 +01:00
|
|
|
config LINUX_COMMAND_LINE
|
2018-06-19 20:22:32 +02:00
|
|
|
string "Kernel command-line"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Add your own kernel command-line arguments.
|
|
|
|
|
|
|
|
config PAYLOAD_FILE
|
2023-06-26 20:04:47 +02:00
|
|
|
default "payloads/external/LinuxBoot/build/Image"
|
2018-11-11 18:03:26 +01:00
|
|
|
|
|
|
|
comment "Linux initramfs"
|
|
|
|
|
|
|
|
config LINUXBOOT_BUILD_INITRAMFS
|
|
|
|
bool "Build initramfs"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LINUXBOOT_INITRAMFS_PATH
|
|
|
|
string "Path to initramfs"
|
2023-06-26 20:04:47 +02:00
|
|
|
default "build/initramfs_u-root.cpio" if LINUXBOOT_UROOT
|
2018-11-11 18:03:26 +01:00
|
|
|
|
|
|
|
if LINUXBOOT_BUILD_INITRAMFS
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
choice
|
2023-06-26 20:04:47 +02:00
|
|
|
prompt "Initramfs"
|
2018-06-19 20:22:32 +02:00
|
|
|
default LINUXBOOT_UROOT
|
|
|
|
|
|
|
|
config LINUXBOOT_UROOT
|
|
|
|
bool "u-root"
|
2023-06-26 20:04:47 +02:00
|
|
|
depends on !LINUXBOOT_RISCV_RV32 # not supported by u-root
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
|
|
|
Enable u-root linuxboot mode.
|
|
|
|
See http://u-root.tk/ for more information.
|
2018-11-21 17:45:43 +01:00
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
if LINUXBOOT_UROOT
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "U-root version"
|
2022-03-04 13:23:39 +01:00
|
|
|
default LINUXBOOT_UROOT_MAIN
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2018-11-21 17:45:43 +01:00
|
|
|
config LINUXBOOT_UROOT_CUSTOM
|
|
|
|
bool "custom"
|
|
|
|
help
|
|
|
|
choose a custom u-root branch
|
|
|
|
|
2022-03-04 13:23:39 +01:00
|
|
|
config LINUXBOOT_UROOT_MAIN
|
|
|
|
bool "main"
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
|
|
|
Latest u-root version
|
2018-11-21 17:45:43 +01:00
|
|
|
|
2023-01-27 05:12:19 +01:00
|
|
|
config LINUXBOOT_UROOT_V7_0_0
|
|
|
|
bool "v7.0.0"
|
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_V6_0_0
|
|
|
|
bool "v6.0.0"
|
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_V5_0_0
|
|
|
|
bool "v5.0.0"
|
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_V4_0_0
|
|
|
|
bool "v4.0.0"
|
|
|
|
|
2018-11-21 17:45:43 +01:00
|
|
|
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"
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
endchoice
|
|
|
|
|
2018-11-21 17:45:43 +01:00
|
|
|
config LINUXBOOT_UROOT_CHECKOUT
|
|
|
|
string "U-root custom branch"
|
|
|
|
depends on LINUXBOOT_UROOT_CUSTOM
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
config LINUXBOOT_UROOT_VERSION
|
|
|
|
string
|
2018-11-21 17:45:43 +01:00
|
|
|
default LINUXBOOT_UROOT_CHECKOUT if LINUXBOOT_UROOT_CUSTOM
|
2022-03-04 13:23:39 +01:00
|
|
|
default "main" if LINUXBOOT_UROOT_MAIN
|
2023-01-27 05:12:19 +01:00
|
|
|
default "v7.0.0" if LINUXBOOT_UROOT_V7_0_0
|
|
|
|
default "v6.0.0" if LINUXBOOT_UROOT_V6_0_0
|
|
|
|
default "v5.0.0" if LINUXBOOT_UROOT_V5_0_0
|
|
|
|
default "v4.0.0" if LINUXBOOT_UROOT_V4_0_0
|
2018-11-21 17:45:43 +01:00
|
|
|
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
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2018-11-21 17:45:43 +01:00
|
|
|
choice
|
|
|
|
prompt "Build format"
|
|
|
|
default LINUXBOOT_UROOT_BB
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
2018-11-21 17:45:43 +01:00
|
|
|
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
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_FILES
|
|
|
|
string "Add files to u-root base"
|
|
|
|
help
|
2018-11-21 17:45:43 +01:00
|
|
|
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"
|
2021-03-07 19:05:24 +01:00
|
|
|
default "boot coreboot-app"
|
2018-11-21 17:45:43 +01:00
|
|
|
help
|
|
|
|
List of additional modules to include,
|
2021-03-07 19:05:24 +01:00
|
|
|
separated by space. (default "boot coreboot-app")
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2020-04-11 16:17:35 +02:00
|
|
|
if LINUXBOOT_UROOT_MAIN
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Choose a specific bootloader"
|
2020-04-20 14:37:22 +02:00
|
|
|
default SPECIFIC_BOOTLOADER_SYSTEMBOOT
|
2020-04-11 16:17:35 +02:00
|
|
|
help
|
|
|
|
Specify a bootloader which starts after u-root init. It will be a symlink
|
2020-04-20 14:37:22 +02:00
|
|
|
to /bin/uinit. Default: systemboot
|
2020-04-11 16:17:35 +02:00
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_NONE
|
|
|
|
bool "none"
|
|
|
|
help
|
|
|
|
Leave u-root to decide which bootloaders to load first after init, if
|
|
|
|
any at all. Most likely u-root will start into the defined u-root shell.
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_SYSTEMBOOT
|
|
|
|
bool "systemboot"
|
|
|
|
help
|
|
|
|
If systemboot has been used as a bootloader wrapper in the past,
|
|
|
|
enable this option. It will invoke -uinitcmd=systemboot and result in
|
|
|
|
a BIOS/UEFI BDS boot behavior.
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_BOOT2
|
|
|
|
bool "boot2"
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_PXEBOOT
|
|
|
|
bool "pxeboot"
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_STBOOT
|
|
|
|
bool "stboot"
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_CUSTOM
|
|
|
|
bool "custom"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config SPECIFIC_BOOTLOADER_CUSTOM_CMD
|
|
|
|
string "Specify a custom program to start"
|
|
|
|
depends on SPECIFIC_BOOTLOADER_CUSTOM
|
|
|
|
help
|
|
|
|
This option will symlink the input to /bin/unit which will set it as the
|
|
|
|
first boot program after the u-root init. Program flags are not
|
|
|
|
symlinkable.
|
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_UINITCMD
|
|
|
|
string
|
|
|
|
default "" if SPECIFIC_BOOTLOADER_NONE
|
|
|
|
default "systemboot" if SPECIFIC_BOOTLOADER_SYSTEMBOOT
|
|
|
|
default "boot2" if SPECIFIC_BOOTLOADER_BOOT2
|
|
|
|
default "pxeboot" if SPECIFIC_BOOTLOADER_PXEBOOT
|
|
|
|
default "stboot" if SPECIFIC_BOOTLOADER_STBOOT
|
|
|
|
default SPECIFIC_BOOTLOADER_CUSTOM_CMD if SPECIFIC_BOOTLOADER_CUSTOM
|
|
|
|
|
|
|
|
endif #LINUXBOOT_UROOT_MAIN
|
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
endif #LINUXBOOT_UROOT
|
|
|
|
|
|
|
|
endif #LINUXBOOT_BUILD_INITRAMFS
|
|
|
|
|
2019-01-01 21:54:18 +01:00
|
|
|
choice
|
2018-11-21 17:45:43 +01:00
|
|
|
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 LINUXBOOT_INITRAMFS_SUFFIX
|
|
|
|
string
|
|
|
|
default "" if LINUXBOOT_INITRAMFS_COMPRESSION_NONE
|
|
|
|
default ".xz" if LINUXBOOT_INITRAMFS_COMPRESSION_XZ
|
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
endif #PAYLOAD_LINUXBOOT
|