diff options
author | Tom Rini <trini@konsulko.com> | 2019-11-18 20:02:06 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-11-20 18:31:23 -0500 |
commit | 3eee45d93681a9c6bb67b73068da4dc179ae4e7f (patch) | |
tree | 78b47da60bb833d5860333f2151f27a9ea4330ef /board | |
parent | ad38de2093035e07a09d6995a90a0d28fac75a95 (diff) | |
download | u-boot-3eee45d93681a9c6bb67b73068da4dc179ae4e7f.zip u-boot-3eee45d93681a9c6bb67b73068da4dc179ae4e7f.tar.gz u-boot-3eee45d93681a9c6bb67b73068da4dc179ae4e7f.tar.bz2 |
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/gardena/smart-gateway-mt7688/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gardena/smart-gateway-mt7688/board.c b/board/gardena/smart-gateway-mt7688/board.c index bd494c8..e9ffd42 100644 --- a/board/gardena/smart-gateway-mt7688/board.c +++ b/board/gardena/smart-gateway-mt7688/board.c @@ -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 |