]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: puma-rk3399: enforce ENV_IS_NOWHERE with Kconfig select
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Wed, 1 Mar 2023 17:31:14 +0000 (18:31 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:00 +0000 (15:16 +0800)
Instead of letting the compiler error out if CONFIG_ENV_IS_NOWHERE is
not selected by the user, let's just enforce it when the user builds for
Puma RK3399 so that no check needs to be performed by the compiler and
the configuration is always valid.

Suggested-by: Tom Rini <trini@konsulko.com>
Cc: Quentin Schulz <foss+uboot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
board/theobroma-systems/puma_rk3399/Kconfig
board/theobroma-systems/puma_rk3399/puma-rk3399.c
configs/puma-rk3399_defconfig

index 15af55574c014646925cbf69a0014e5a99101105..cc745f56b57d95db0923baaf0c9447f0b62507be 100644 (file)
@@ -11,6 +11,7 @@ config SYS_CONFIG_NAME
 
 config BOARD_SPECIFIC_OPTIONS # dummy
        def_bool y
+       select ENV_IS_NOWHERE
 
 config ENV_SIZE
        default 0x4000
index 97f398bd75416a8636a33bbdab6ae84749b2040e..614a60ee8f9fb4f70c3776ea379456d93ee029fe 100644 (file)
@@ -136,10 +136,6 @@ int mmc_get_env_dev(void)
        return CONFIG_SYS_MMC_ENV_DEV;
 }
 
-#if !IS_ENABLED(CONFIG_ENV_IS_NOWHERE)
-#error Please enable CONFIG_ENV_IS_NOWHERE
-#endif
-
 enum env_location arch_env_get_location(enum env_operation op, int prio)
 {
        const char *boot_device =
index 9e3e23f825cef5b57a0dd451a2e4c4b2476da12f..59017b269440bfea0fcc87f4605c63a56d719be1 100644 (file)
@@ -55,7 +55,6 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_OF_LIVE=y
 CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_ENV_OVERWRITE=y
-CONFIG_ENV_IS_NOWHERE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_ENV_IS_IN_SPI_FLASH=y
 CONFIG_ENV_SPI_MAX_HZ=50000000