mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared
bananapi_m64_defconfig with CONFIG_ENV_IS_NOWHERE results in:
board/sunxi/board.c: In function 'mmc_get_env_dev':
board/sunxi/board.c:535:24: error:
'CONFIG_SYS_MMC_ENV_DEV' undeclared (first use in this function)
535 | return CONFIG_SYS_MMC_ENV_DEV;
| ^~~~~~~~~~~~~~~~~~~~~~
Check if CONFIG_SYS_MMC_ENV_DEV is defined.
Fixes: 1011ebc72bda ("sunxi: Select environment MMC based on boot device")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
5913c29fcb
commit
bbac4aeb12
@ -515,7 +515,7 @@ int board_mmc_init(struct bd_info *bis)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if CONFIG_MMC_SUNXI_SLOT_EXTRA != -1
|
||||
#ifdef CONFIG_SYS_MMC_ENV_DEV
|
||||
int mmc_get_env_dev(void)
|
||||
{
|
||||
switch (sunxi_get_boot_device()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user