2018-06-19 20:22:32 +02:00
|
|
|
## This file is part of the coreboot project.
|
|
|
|
##
|
|
|
|
## Copyright (C) 2017 Facebook Inc.
|
2018-11-11 18:03:26 +01:00
|
|
|
## Copyright (C) 2018 9elements Cyber Security
|
2018-06-19 20:22:32 +02:00
|
|
|
##
|
|
|
|
## 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"
|
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
|
|
|
|
|
|
|
config LINUXBOOT_ARM64
|
|
|
|
bool "arm64"
|
|
|
|
depends on ARCH_ARM64
|
|
|
|
select PAYLOAD_FIT_SUPPORT
|
|
|
|
help
|
|
|
|
AARCH64 kernel and initramfs
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LINUXBOOT_ARCH
|
|
|
|
string
|
|
|
|
default "amd64" if LINUXBOOT_X86_64
|
2018-11-11 18:03:26 +01:00
|
|
|
default "i386" if LINUXBOOT_X86
|
2018-03-13 11:22:26 +01:00
|
|
|
default "arm64" if LINUXBOOT_ARM64
|
2018-06-19 20:22:32 +02:00
|
|
|
|
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"
|
|
|
|
default "Image"
|
|
|
|
depends on !LINUXBOOT_COMPILE_KERNEL
|
|
|
|
|
|
|
|
if LINUXBOOT_COMPILE_KERNEL
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
choice
|
|
|
|
prompt "Kernel version"
|
|
|
|
default LINUXBOOT_KERNEL_STABLE
|
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_STABLE
|
2018-08-30 23:07:02 +02:00
|
|
|
bool "4.14.67"
|
2018-06-19 20:22:32 +02:00
|
|
|
help
|
|
|
|
Stable kernel version
|
2018-07-30 22:49:33 +02:00
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_LATEST
|
2018-08-30 23:07:02 +02:00
|
|
|
bool "4.18.5"
|
2018-07-30 22:49:33 +02:00
|
|
|
help
|
|
|
|
Latest kernel version
|
|
|
|
|
2018-06-19 20:22:32 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_VERSION
|
|
|
|
string
|
2018-08-30 23:07:02 +02:00
|
|
|
default "4.18.5" if LINUXBOOT_KERNEL_LATEST
|
|
|
|
default "4.14.67" if LINUXBOOT_KERNEL_STABLE
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
config LINUXBOOT_KERNEL_CONFIGFILE
|
|
|
|
string "Kernel config file"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Add your own kernel configuration file. Otherwise a default
|
|
|
|
minimal defconfig is used.
|
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
config LINUXBOOT_DTB_FILE
|
|
|
|
string "Compiled devicetree file"
|
|
|
|
depends on LINUXBOOT_ARM64
|
|
|
|
default ""
|
|
|
|
|
|
|
|
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
|
2018-11-11 18:03:26 +01:00
|
|
|
default "payloads/external/LinuxBoot/linuxboot/bzImage" if LINUXBOOT_COMPILE_KERNEL && ( LINUXBOOT_X86 || LINUXBOOT_X86_64 )
|
|
|
|
default "payloads/external/LinuxBoot/linuxboot/uImage" if LINUXBOOT_COMPILE_KERNEL && LINUXBOOT_ARM64
|
|
|
|
default LINUXBOOT_KERNEL_PATH if !LINUXBOOT_COMPILE_KERNEL
|
|
|
|
|
|
|
|
comment "Linux initramfs"
|
|
|
|
|
|
|
|
config LINUXBOOT_BUILD_INITRAMFS
|
|
|
|
bool "Build initramfs"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LINUXBOOT_INITRAMFS_PATH
|
|
|
|
string "Path to initramfs"
|
|
|
|
depends on !LINUXBOOT_BUILD_INITRAMFS
|
|
|
|
|
|
|
|
if LINUXBOOT_BUILD_INITRAMFS
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
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
|
2018-08-09 04:16:55 +02:00
|
|
|
List of additional modules to include, separated by space. Otherwise
|
|
|
|
all modules of u-root are included.
|
2018-06-19 20:22:32 +02:00
|
|
|
|
|
|
|
config LINUXBOOT_UROOT_FILES
|
|
|
|
string "Add files to u-root base"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Path to directory containing root structure for embedding into the
|
|
|
|
initramfs.
|
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
endif #LINUXBOOT_UROOT
|
|
|
|
|
|
|
|
endif #LINUXBOOT_BUILD_INITRAMFS
|
|
|
|
|
2018-11-06 12:32:14 +01:00
|
|
|
config LINUX_INITRD
|
2018-11-04 11:24:28 +01:00
|
|
|
string
|
2018-11-11 18:03:26 +01:00
|
|
|
default "payloads/external/LinuxBoot/linuxboot/initramfs_u-root.cpio.xz" if LINUXBOOT_UROOT
|
|
|
|
default LINUXBOOT_INITRAMFS_PATH if !LINUXBOOT_BUILD_INITRAMFS
|
2018-06-19 20:22:32 +02:00
|
|
|
|
2018-11-11 18:03:26 +01:00
|
|
|
endif #PAYLOAD_LINUXBOOT
|