Commit 3aa890525b1211857a750e82b38124f798a5cf75
Committed by
Stefano Babic
1 parent
a7650486a5
Exists in
v2017.01-smarct4x
and in
40 other branches
mx28evk: Fix warning when CONFIG_ENV_IS_IN_SPI_FLASH is selected
When building a target with CONFIG_ENV_IS_IN_SPI_FLASH the following warning is seen: include/configs/mx28evk.h:73:0: warning: "CONFIG_ENV_SIZE" redefined [enabled by default] Protect the definition of CONFIG_ENV_SIZE to avoid the warning. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff
include/configs/mx28evk.h
... | ... | @@ -48,7 +48,11 @@ |
48 | 48 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
49 | 49 | |
50 | 50 | /* Environment */ |
51 | +#ifndef CONFIG_ENV_IS_IN_SPI_FLASH | |
51 | 52 | #define CONFIG_ENV_SIZE (16 * 1024) |
53 | +#else | |
54 | +#define CONFIG_ENV_SIZE (4 * 1024) | |
55 | +#endif | |
52 | 56 | #define CONFIG_ENV_OVERWRITE |
53 | 57 | |
54 | 58 | /* Environment is in MMC */ |
... | ... | @@ -70,7 +74,6 @@ |
70 | 74 | /* Environemnt is in SPI flash */ |
71 | 75 | #if defined(CONFIG_CMD_SF) && defined(CONFIG_ENV_IS_IN_SPI_FLASH) |
72 | 76 | #define CONFIG_SYS_REDUNDAND_ENVIRONMENT |
73 | -#define CONFIG_ENV_SIZE 0x1000 /* 4KB */ | |
74 | 77 | #define CONFIG_ENV_OFFSET 0x40000 /* 256K */ |
75 | 78 | #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) |
76 | 79 | #define CONFIG_ENV_SECT_SIZE 0x1000 |