env: Convert CONFIG_DELAY_ENVIRONMENT to Kconfig
authorOvidiu Panait <ovidiu.panait@windriver.com>
Wed, 6 May 2020 17:38:42 +0000 (20:38 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2020 21:12:41 +0000 (17:12 -0400)
This converts ad-hoc CONFIG_DELAY_ENVIRONMENT to Kconfig.

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
env/Kconfig
scripts/config_whitelist.txt

index af63ac52f7f4a230acf5707dca84063785197392..ed94e83ec1e81b96426edfea153b40bd52ae27c4 100644 (file)
@@ -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"
index c57b87131fce7f7f8ce2a89224654aef62041cea..6dde9bcdb1e04758764dd4367126d5bf34d48a62 100644 (file)
@@ -303,7 +303,6 @@ CONFIG_DEFAULT
 CONFIG_DEFAULT_CONSOLE
 CONFIG_DEFAULT_IMMR
 CONFIG_DEF_HWCONFIG
-CONFIG_DELAY_ENVIRONMENT
 CONFIG_DESIGNWARE_ETH
 CONFIG_DEVELOP
 CONFIG_DEVICE_TREE_LIST