sunxi: Add default environment size
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 20 Mar 2017 14:57:22 +0000 (15:57 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Fri, 7 Apr 2017 05:53:46 +0000 (11:23 +0530)
On boards that defines ENV_IS_NOWHERE, such as the NES classic, commit
19dbe7d1a3f7 ("common: Move environment choice to Kconfig") broke the build
because of a missing environment size.

Reintroduce a default environment size consistent with what we had before.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
include/configs/sunxi-common.h

index e1c5fe7ea82d8728ac9815bab8972b5eb531ac83..171cea24ec958d0681bb9b64f2c775761870100b 100644 (file)
 #if defined(CONFIG_ENV_IS_IN_MMC)
 #define CONFIG_SYS_MMC_ENV_DEV         0       /* first detected MMC controller */
 #define CONFIG_SYS_MMC_MAX_DEVICE      4
+#elif defined(CONFIG_ENV_IS_NOWHERE)
+#define CONFIG_ENV_SIZE                        (128 << 10)
 #endif
 
 /* 64MB of malloc() pool */