]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: coreboot: Add a boot script
authorSimon Glass <sjg@chromium.org>
Thu, 4 Jan 2024 15:10:36 +0000 (08:10 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 11 Apr 2024 02:01:33 +0000 (20:01 -0600)
Provide the user with a list of available boot options. Selecting one
causes it to be booted. Pressing <ESC> causes U-Boot to return to the
command-line prompt.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
configs/coreboot64_defconfig
configs/coreboot_defconfig

index dec9b40a2b31a9e980c7df1528a363d7aa5debe9..ace3b63dfd44636cdcf68f475d640246ea48583e 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_SHOW_BOOT_PROGRESS=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro"
+CONFIG_BOOTCOMMAND="bootflow scan -l; if bootflow menu; then cls; bootflow boot; fi"
 CONFIG_SYS_PBSIZE=532
 CONFIG_PRE_CONSOLE_BUFFER=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
index 8356bc12659c6fe9a5dadc692e9fb0f0c8e51aed..3762cde6f3a6b7844bf711fb452d9c959f28b6c8 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_BOOTSTD_DEFAULTS=y
 CONFIG_SHOW_BOOT_PROGRESS=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro"
+CONFIG_BOOTCOMMAND="bootflow scan -l; if bootflow menu; then cls; bootflow boot; fi"
 CONFIG_PRE_CONSOLE_BUFFER=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_LOG=y