summaryrefslogtreecommitdiff
path: root/boot/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-04-25 08:31:22 +0300
committerTom Rini <trini@konsulko.com>2022-04-25 17:00:04 +0300
commitd9409244b309959ac8dd79fc88d2c42f23c62f8c (patch)
treea0b389b53b52096fa5569527f8dab26689e1b637 /boot/Kconfig
parent7d0478d241703b50e88736f3774deb5472418b58 (diff)
downloadu-boot-d9409244b309959ac8dd79fc88d2c42f23c62f8c.tar.xz
bootstd: Add an implementation of script boot
Add a bootmeth driver which handles distro boot from a disk via a U-Boot script, so we can boot a bootflow using this commonly used mechanism. This is required by Armbian, for example. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/Kconfig')
-rw-r--r--boot/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/Kconfig b/boot/Kconfig
index 373871c49a..64e16f3beb 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -377,6 +377,17 @@ config BOOTMETH_SANDBOX
This is a sandbox bootmeth driver used for testing. It always returns
-ENOTSUPP when attempting to boot.
+config BOOTMETH_SCRIPT
+ bool "Bootdev support for U-Boot scripts"
+ default y if BOOTSTD_FULL
+ help
+ Enables support for booting a distro via a U-Boot script. This makes
+ the bootdevs look for a 'boot/boot.scr' file which can be used to
+ boot the distro.
+
+ This provides a way to try out standard boot on an existing boot flow.
+ It is not enabled by default to save space.
+
endif
config LEGACY_IMAGE_FORMAT