mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Remove useless CONFIG_ENV_SIZE_REDUND and fix ENV_IS_REDUND check
We have CONFIG_ENV_SIZE_IS_REDUND but don't really use it. We have one board where we can simply multiple CONFIG_ENV_SIZE by two for the same result. The other place where we could but were not previously using this is for where env_internal.h checks for if we should set ENV_IS_EMBEDDED. This seems like the most likely use, historically, of the variable, but it was not used. Add logic to check for this now. Cc: Wolfgang Denk <wd@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
3eee45d936
commit
a8992e788a
71 changed files with 6 additions and 93 deletions
|
@ -50,8 +50,11 @@
|
|||
# else
|
||||
# error "Both CONFIG_ENV_SECT_SIZE and CONFIG_ENV_SIZE undefined"
|
||||
# endif
|
||||
# if defined(CONFIG_ENV_ADDR_REDUND) && !defined(CONFIG_ENV_SIZE_REDUND)
|
||||
# define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
|
||||
# if defined(CONFIG_ENV_ADDR_REDUND) && \
|
||||
((CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
|
||||
(CONFIG_ENV_ADDR_REDUND + CONFIG_ENV_SIZE) <= \
|
||||
(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN))
|
||||
# define ENV_IS_EMBEDDED
|
||||
# endif
|
||||
# if (CONFIG_ENV_ADDR >= CONFIG_SYS_MONITOR_BASE) && \
|
||||
(CONFIG_ENV_ADDR + CONFIG_ENV_SIZE) <= \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue