]> Git Repo - J-u-boot.git/blobdiff - boot/Kconfig
bootmenu: U-Boot console is enabled as default
[J-u-boot.git] / boot / Kconfig
index 0514d3b3f8029443ce785b47024dc80caab0cba6..08451c65a56b9c6882f71faa47ebf74259653b23 100644 (file)
@@ -123,6 +123,7 @@ config FIT_BEST_MATCH
 config FIT_IMAGE_POST_PROCESS
        bool "Enable post-processing of FIT artifacts after loading by U-Boot"
        depends on TI_SECURE_DEVICE || SOCFPGA_SECURE_VAB_AUTH
+       default y if TI_SECURE_DEVICE
        help
          Allows doing any sort of manipulation to blobs after they got extracted
          from FIT images like stripping off headers or modifying the size of the
@@ -254,6 +255,7 @@ config SPL_LOAD_FIT_FULL
 config SPL_FIT_IMAGE_POST_PROCESS
        bool "Enable post-processing of FIT artifacts after loading by the SPL"
        depends on SPL_LOAD_FIT
+       default y if TI_SECURE_DEVICE
        help
          Allows doing any sort of manipulation to blobs after they got extracted
          from the U-Boot FIT image like stripping off headers or modifying the
@@ -292,9 +294,120 @@ endif # SPL
 
 endif # FIT
 
+config BOOTSTD
+       bool "Standard boot support"
+       default y
+       depends on DM && OF_CONTROL && BLK
+       help
+         U-Boot supports a standard way of locating something to boot,
+         typically an Operating System such as Linux, provided by a distro such
+         as Arch Linux or Debian. Enable this to support iterating through
+         available bootdevs and using bootmeths to find bootflows suitable for
+         booting.
+
+         Standard boot is not a standard way of booting, just a framework
+         within U-Boot for supporting all the different ways that exist.
+
+         Terminology:
+
+           - bootdev - a device which can hold a distro (e.g. MMC)
+           - bootmeth - a method to scan a bootdev to find bootflows (owned by
+               U-Boot)
+           - bootflow - a description of how to boot (owned by the distro)
+
+config BOOTSTD_FULL
+       bool "Enhanced features for standard boot"
+       default y if SANDBOX
+       help
+         This enables various useful features for standard boot, which are not
+         essential for operation:
+
+         - bootdev, bootmeth commands
+         - extra features in the bootflow command
+         - support for selecting the ordering of bootmeths ("bootmeth order")
+         - support for selecting the ordering of bootdevs using the devicetree
+           as well as the "boot_targets" environment variable
+
+if BOOTSTD
+
+config BOOTSTD_BOOTCOMMAND
+       bool "Use bootstd to boot"
+       default y if !DISTRO_DEFAULTS
+       help
+         Enable this to select a default boot-command suitable for booting
+         with standard boot. This can be overridden by the board if needed,
+         but the default command should be enough for most boards which use
+         standard boot.
+
+         For now this is only selected if distro boot is NOT used, since
+         standard boot does not support all of the features of distro boot
+         yet.
+
+config BOOTMETH_DISTRO
+       bool "Bootdev support for distro boot"
+       depends on CMD_PXE
+       default y
+       help
+         Enables support for distro boot using bootdevs. This makes the
+         bootdevs look for a 'extlinux/extlinux.conf' on each filesystem
+         they scan.
+
+         This provides a way to try out standard boot on an existing boot flow.
+
+config BOOTMETH_DISTRO_PXE
+       bool "Bootdev support for distro boot over network"
+       depends on CMD_PXE && CMD_NET && DM_ETH
+       default y
+       help
+         Enables support for distro boot using bootdevs. This makes the
+         bootdevs look for a 'extlinux/extlinux.conf' on the tftp server.
+
+         This provides a way to try out standard boot on an existing boot flow.
+
+config BOOTMETH_EFILOADER
+       bool "Bootdev support for EFI boot"
+       depends on CMD_BOOTEFI
+       default y
+       help
+         Enables support for EFI boot using bootdevs. This makes the
+         bootdevs look for a 'boot<arch>.efi' on each filesystem
+         they scan. The resulting file is booted after enabling U-Boot's
+         EFI loader support.
+
+         The <arch> depends on the architecture of the board:
+
+            aa64      - aarch64 (ARM 64-bit)
+            arm       - ARM 32-bit
+            ia32      - x86 32-bit
+            x64       - x86 64-bit
+            riscv32   - RISC-V 32-bit
+            riscv64   - RISC-V 64-bit
+
+         This provides a way to try out standard boot on an existing boot flow.
+
+config BOOTMETH_SANDBOX
+       def_bool y
+       depends on SANDBOX
+       help
+         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
        bool "Enable support for the legacy image format"
-       default y if !FIT_SIGNATURE
+       default y if !FIT_SIGNATURE && !TI_SECURE_DEVICE
        help
          This option enables the legacy image format. It is enabled by
          default for backward compatibility, unless FIT_SIGNATURE is
@@ -339,6 +452,19 @@ config OF_STDOUT_VIA_ALIAS
          incorrect when used with device tree as this option does not
          exist / should not be used.
 
+config SYS_EXTRA_OPTIONS
+       string "Extra Options (DEPRECATED)"
+       help
+         The old configuration infrastructure (= mkconfig + boards.cfg)
+         provided the extra options field. If you have something like
+         "HAS_BAR,BAZ=64", the optional options
+           #define CONFIG_HAS
+           #define CONFIG_BAZ  64
+         will be defined in include/config.h.
+         This option was prepared for the smooth migration from the old
+         configuration to Kconfig. Since this option will be removed sometime,
+         new boards should not use this option.
+
 config HAVE_SYS_TEXT_BASE
        bool
        depends on !NIOS2 && !XTENSA
@@ -1017,6 +1143,13 @@ config AUTOBOOT_MENU_SHOW
          environmnent variable (if enabled) and before handling the boot delay.
          See README.bootmenu for more details.
 
+config BOOTMENU_DISABLE_UBOOT_CONSOLE
+       bool "Disallow bootmenu to enter the U-Boot console"
+       depends on AUTOBOOT_MENU_SHOW
+       help
+         If this option is enabled, user can not enter the U-Boot console from
+         bootmenu. It increases the system security.
+
 config BOOT_RETRY
        bool "Boot retry feature"
        help
@@ -1149,7 +1282,9 @@ config USE_BOOTCOMMAND
 config BOOTCOMMAND
        string "bootcmd value"
        depends on USE_BOOTCOMMAND && !USE_DEFAULT_ENV_FILE
-       default "run distro_bootcmd" if DISTRO_DEFAULTS
+       default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL
+       default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !CMD_BOOTFLOW_FULL
+       default "run distro_bootcmd" if !BOOTSTD_BOOTCOMMAND && DISTRO_DEFAULTS
        help
          This is the string of commands that will be used as bootcmd and if
          AUTOBOOT is set, automatically run.
@@ -1179,4 +1314,28 @@ config DEFAULT_FDT_FILE
        help
          This option is used to set the default fdt file to boot OS.
 
+config SAVE_PREV_BL_FDT_ADDR
+       depends on ARM
+       bool "Saves fdt address, passed by the previous bootloader, to env var"
+       help
+         When u-boot is used as a chain-loaded bootloader (replacing OS kernel),
+         enable this option to save fdt address, passed by the
+         previous bootloader for future use.
+         Address is saved to `prevbl_fdt_addr` environment variable.
+
+         If no fdt was provided by previous bootloader, no env variables
+         will be created.
+
+config SAVE_PREV_BL_INITRAMFS_START_ADDR
+       depends on ARM
+       bool "Saves initramfs address, passed by the previous bootloader, to env var"
+       help
+         When u-boot is used as a chain-loaded bootloader(replacing OS kernel),
+         enable this option to save initramfs address, passed by the
+         previous bootloader for future use.
+         Address is saved to `prevbl_initrd_start_addr` environment variable.
+
+         If no initramfs was provided by previous bootloader, no env variables
+         will be created.
+
 endmenu                # Booting
This page took 0.030709 seconds and 4 git commands to generate.