mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
Redundant environment: move flag definitions to header file
Instead of defining the flags sevaral times in different source files (which is error prone), move them to a central place in a header file. Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
d9c27253ce
commit
b218ccb543
3 changed files with 3 additions and 8 deletions
|
@ -122,6 +122,9 @@
|
|||
|
||||
#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
||||
# define ENV_HEADER_SIZE (sizeof(uint32_t) + 1)
|
||||
|
||||
# define ACTIVE_FLAG 1
|
||||
# define OBSOLETE_FLAG 0
|
||||
#else
|
||||
# define ENV_HEADER_SIZE (sizeof(uint32_t))
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue