1 ## SPDX-License-Identifier: GPL-2.0-only
7 depends on LINUXBOOT_COMPILE_KERNEL || LINUXBOOT_BUILD_INITRAMFS
8 default LINUXBOOT_X86_64
10 config LINUXBOOT_X86_64
14 AMD64 kernel and initramfs
20 X86 kernel and initramfs
25 select PAYLOAD_FIT_SUPPORT
27 arm kernel and initramfs
29 config LINUXBOOT_ARM64
32 select PAYLOAD_FIT_SUPPORT
34 AARCH64 kernel and initramfs
36 config LINUXBOOT_RISCV_RV32
38 depends on ARCH_RISCV_RV32
39 select PAYLOAD_FIT_SUPPORT
41 RISC-V kernel and initramfs
43 config LINUXBOOT_RISCV_RV64
45 depends on ARCH_RISCV_RV64
46 select PAYLOAD_FIT_SUPPORT
48 RISC-V kernel and initramfs
52 comment "Linux kernel"
54 config LINUXBOOT_COMPILE_KERNEL
58 config LINUXBOOT_KERNEL_PATH
59 string "Path to kernel"
60 default "build/uImage" if LINUXBOOT_KERNEL_UIMAGE
61 default "build/bzImage" if LINUXBOOT_KERNEL_BZIMAGE
63 The kernel path is either and absolute path or relative to the
66 if LINUXBOOT_COMPILE_KERNEL
68 config LINUXBOOT_CROSS_COMPILE
69 string "cross compiler"
70 default "" # e.g. "aarch64-linux-gnu-"
72 Choose a custom cross compiler toolchain to use.
73 It can be useful if you don't want to use the coreboot toolchain
74 or experience problems using it.
76 config LINUXBOOT_KERNEL_VERSION
77 string "kernel version"
80 Choose the Linux kernel version number. (x.x.x)
81 Release candidate kernels (rc) are currently are not supported.
83 config LINUXBOOT_KERNEL_CONFIGFILE
84 string "Config file path"
85 default "i386/defconfig" if LINUXBOOT_X86
86 default "x86_64/defconfig" if LINUXBOOT_X86_64
87 default "arm64/defconfig" if LINUXBOOT_ARM64
88 default "riscv/defconfig-32" if LINUXBOOT_RISCV_RV32
89 default "riscv/defconfig-64" if LINUXBOOT_RISCV_RV64
91 Path to the kernel configuration file.
93 Note: this can be a defconfig file or a complete .config file.
96 prompt "Kernel binary format"
97 default LINUXBOOT_KERNEL_BZIMAGE if LINUXBOOT_X86 || LINUXBOOT_X86_64
98 default LINUXBOOT_KERNEL_UIMAGE if LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
100 config LINUXBOOT_KERNEL_BZIMAGE
102 depends on LINUXBOOT_X86 || LINUXBOOT_X86_64
104 config LINUXBOOT_KERNEL_UIMAGE
106 depends on LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
110 config LINUXBOOT_DTS_FILE
111 string "Compiled devicetree file"
112 depends on LINUXBOOT_ARM64 || LINUXBOOT_RISCV_RV32 || LINUXBOOT_RISCV_RV64
115 endif #LINUXBOOT_COMPILE_KERNEL
117 config LINUX_COMMAND_LINE
118 string "Kernel command-line"
121 Add your own kernel command-line arguments.
124 default "payloads/external/LinuxBoot/build/Image"
126 comment "Linux initramfs"
128 config LINUXBOOT_BUILD_INITRAMFS
129 bool "Build initramfs"
132 config LINUXBOOT_INITRAMFS_PATH
133 string "Path to initramfs"
134 default "build/initramfs_u-root.cpio" if LINUXBOOT_UROOT
136 if LINUXBOOT_BUILD_INITRAMFS
140 default LINUXBOOT_UROOT
142 config LINUXBOOT_UROOT
144 depends on !LINUXBOOT_RISCV_RV32 # not supported by u-root
146 Enable u-root linuxboot mode.
147 See http://u-root.tk/ for more information.
154 prompt "U-root version"
155 default LINUXBOOT_UROOT_MAIN
157 config LINUXBOOT_UROOT_CUSTOM
160 choose a custom u-root branch
162 config LINUXBOOT_UROOT_MAIN
165 Latest u-root version
167 config LINUXBOOT_UROOT_V7_0_0
170 config LINUXBOOT_UROOT_V6_0_0
173 config LINUXBOOT_UROOT_V5_0_0
176 config LINUXBOOT_UROOT_V4_0_0
179 config LINUXBOOT_UROOT_V3_0_0
182 config LINUXBOOT_UROOT_V2_0_0
185 config LINUXBOOT_UROOT_V1_0_0
190 config LINUXBOOT_UROOT_CHECKOUT
191 string "U-root custom branch"
192 depends on LINUXBOOT_UROOT_CUSTOM
194 config LINUXBOOT_UROOT_VERSION
196 default LINUXBOOT_UROOT_CHECKOUT if LINUXBOOT_UROOT_CUSTOM
197 default "main" if LINUXBOOT_UROOT_MAIN
198 default "v7.0.0" if LINUXBOOT_UROOT_V7_0_0
199 default "v6.0.0" if LINUXBOOT_UROOT_V6_0_0
200 default "v5.0.0" if LINUXBOOT_UROOT_V5_0_0
201 default "v4.0.0" if LINUXBOOT_UROOT_V4_0_0
202 default "v3.0.0" if LINUXBOOT_UROOT_V3_0_0
203 default "v2.0.0" if LINUXBOOT_UROOT_V2_0_0
204 default "v1.0.0" if LINUXBOOT_UROOT_V1_0_0
207 prompt "Build format"
208 default LINUXBOOT_UROOT_BB
210 u-root build format (e.g. bb or source). (default "bb")
212 config LINUXBOOT_UROOT_BB
215 config LINUXBOOT_UROOT_SOURCE
216 bool "source (experimental)"
220 config LINUXBOOT_UROOT_FORMAT
222 default "bb" if LINUXBOOT_UROOT_BB
223 default "source" if LINUXBOOT_UROOT_SOURCE
225 config LINUXBOOT_UROOT_FILES
226 string "Add files to u-root base"
228 Additional files, directories, and binaries (with their ldd dependencies) to add to archive.
229 Can be speficified multiple times.
231 config LINUXBOOT_UROOT_INITCMD
235 Symlink target for /init.
236 Can be an absolute path or a u-root command name. (default "init")
238 config LINUXBOOT_UROOT_SHELL
239 string "default shell"
243 Can be an absolute path or a u-root command name. (default "elvish")
245 config LINUXBOOT_UROOT_COMMANDS
246 string "U-root commands"
247 default "boot coreboot-app"
249 List of additional modules to include,
250 separated by space. (default "boot coreboot-app")
252 if LINUXBOOT_UROOT_MAIN
255 prompt "Choose a specific bootloader"
256 default SPECIFIC_BOOTLOADER_SYSTEMBOOT
258 Specify a bootloader which starts after u-root init. It will be a symlink
259 to /bin/uinit. Default: systemboot
261 config SPECIFIC_BOOTLOADER_NONE
264 Leave u-root to decide which bootloaders to load first after init, if
265 any at all. Most likely u-root will start into the defined u-root shell.
267 config SPECIFIC_BOOTLOADER_SYSTEMBOOT
270 If systemboot has been used as a bootloader wrapper in the past,
271 enable this option. It will invoke -uinitcmd=systemboot and result in
272 a BIOS/UEFI BDS boot behavior.
274 config SPECIFIC_BOOTLOADER_BOOT2
277 config SPECIFIC_BOOTLOADER_PXEBOOT
280 config SPECIFIC_BOOTLOADER_STBOOT
283 config SPECIFIC_BOOTLOADER_CUSTOM
288 config SPECIFIC_BOOTLOADER_CUSTOM_CMD
289 string "Specify a custom program to start"
290 depends on SPECIFIC_BOOTLOADER_CUSTOM
292 This option will symlink the input to /bin/unit which will set it as the
293 first boot program after the u-root init. Program flags are not
296 config LINUXBOOT_UROOT_UINITCMD
298 default "" if SPECIFIC_BOOTLOADER_NONE
299 default "systemboot" if SPECIFIC_BOOTLOADER_SYSTEMBOOT
300 default "boot2" if SPECIFIC_BOOTLOADER_BOOT2
301 default "pxeboot" if SPECIFIC_BOOTLOADER_PXEBOOT
302 default "stboot" if SPECIFIC_BOOTLOADER_STBOOT
303 default SPECIFIC_BOOTLOADER_CUSTOM_CMD if SPECIFIC_BOOTLOADER_CUSTOM
305 endif #LINUXBOOT_UROOT_MAIN
307 endif #LINUXBOOT_UROOT
309 endif #LINUXBOOT_BUILD_INITRAMFS
312 prompt "Initramfs compression format"
313 default LINUXBOOT_INITRAMFS_COMPRESSION_XZ
315 config LINUXBOOT_INITRAMFS_COMPRESSION_NONE
318 config LINUXBOOT_INITRAMFS_COMPRESSION_XZ
319 bool "xz compression"
323 config LINUXBOOT_INITRAMFS_SUFFIX
325 default "" if LINUXBOOT_INITRAMFS_COMPRESSION_NONE
326 default ".xz" if LINUXBOOT_INITRAMFS_COMPRESSION_XZ
328 endif #PAYLOAD_LINUXBOOT