]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 31 Mar 2024 02:37:17 +0000 (04:37 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 14 Jul 2024 07:56:24 +0000 (09:56 +0200)
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>
board/sunxi/board.c

index ed86f1df5dc4197ca914b03de9ebecfddc32db1f..b9d47f5e8707202c0b53688e93f86185b74c354b 100644 (file)
@@ -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()) {