diff options
author | Ovidiu Panait <ovidiu.panait@windriver.com> | 2020-05-06 20:38:42 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-05-15 17:12:41 -0400 |
commit | b8879f207405ff55c91bc1ad68ea9245c1fd168c (patch) | |
tree | 75e21050b5431ae4947f07f8beefd6260625e0b8 /env | |
parent | 585da32f4cedcad5a86534f45d397f352af7da0a (diff) | |
download | u-boot-b8879f207405ff55c91bc1ad68ea9245c1fd168c.tar.gz |
env: Convert CONFIG_DELAY_ENVIRONMENT to Kconfig
This converts ad-hoc CONFIG_DELAY_ENVIRONMENT to Kconfig.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'env')
-rw-r--r-- | env/Kconfig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/env/Kconfig b/env/Kconfig index af63ac52f7..ed94e83ec1 100644 --- a/env/Kconfig +++ b/env/Kconfig @@ -592,6 +592,18 @@ config ENV_VARS_UBOOT_RUNTIME_CONFIG run-time determined information about the hardware to the environment. These will be named board_name, board_rev. +config DELAY_ENVIRONMENT + bool "Delay environment loading" + depends on !OF_CONTROL + help + Enable this to inhibit loading the environment during board + initialization. This can address the security risk of untrusted data + being used during boot. Normally the environment is loaded when the + board is initialised so that it is available to U-Boot. This inhibits + that so that the environment is not available until explicitly loaded + later by U-Boot code. With CONFIG_OF_CONTROL this is instead + controlled by the value of /config/load-environment. + if SPL_ENV_SUPPORT config SPL_ENV_IS_NOWHERE bool "SPL Environment is not stored" |