mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-29 10:01:43 +00:00
smart-gateway-mt7688: Rework build time check for overwriting factory data
The board file has a build time check to ensure that we do not have the redundant environment overwriting the factory data. However, using the symbol CONFIG_ENV_SIZE_REDUND isn't strictly needed as that is always the same as CONFIG_ENV_SIZE. Use CONFIG_ENV_SIZE instead so that we can later drop CONFIG_ENV_SIZE_REDUND. Cc: Stefan Roese <sr@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ad38de2093
commit
3eee45d936
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
#define FACTORY_DATA_OFFS 0xc0000
|
||||
#define FACTORY_DATA_SECT_SIZE 0x10000
|
||||
#if ((CONFIG_ENV_OFFSET_REDUND + CONFIG_ENV_SIZE_REDUND) > FACTORY_DATA_OFFS)
|
||||
#if ((CONFIG_ENV_OFFSET_REDUND + CONFIG_ENV_SIZE) > FACTORY_DATA_OFFS)
|
||||
#error "U-Boot image with environment too big (overlapping with factory-data)!"
|
||||
#endif
|
||||
#define FACTORY_DATA_USER_OFFS 0x140
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue