rockchip: ringneck-px30: enforce ENV_IS_NOWHERE with Kconfig select
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 Ringneck PX30 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>
This commit is contained in:
parent
6a89465f3f
commit
c3328c3ba8
3 changed files with 1 additions and 5 deletions
|
@ -11,6 +11,7 @@ config SYS_CONFIG_NAME
|
||||||
|
|
||||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
def_bool y
|
def_bool y
|
||||||
|
select ENV_IS_NOWHERE
|
||||||
|
|
||||||
config ENV_SIZE
|
config ENV_SIZE
|
||||||
default 0x3000
|
default 0x3000
|
||||||
|
|
|
@ -118,10 +118,6 @@ int mmc_get_env_dev(void)
|
||||||
return CONFIG_SYS_MMC_ENV_DEV;
|
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)
|
enum env_location arch_env_get_location(enum env_operation op, int prio)
|
||||||
{
|
{
|
||||||
const char *boot_device =
|
const char *boot_device =
|
||||||
|
|
|
@ -68,7 +68,6 @@ CONFIG_SPL_OF_CONTROL=y
|
||||||
CONFIG_OF_LIVE=y
|
CONFIG_OF_LIVE=y
|
||||||
CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
|
CONFIG_OF_SPL_REMOVE_PROPS="interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
|
||||||
CONFIG_ENV_OVERWRITE=y
|
CONFIG_ENV_OVERWRITE=y
|
||||||
CONFIG_ENV_IS_NOWHERE=y
|
|
||||||
CONFIG_ENV_IS_IN_MMC=y
|
CONFIG_ENV_IS_IN_MMC=y
|
||||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
CONFIG_SPL_DM_SEQ_ALIAS=y
|
CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||||
|
|
Loading…
Reference in a new issue