diff options
author | Wolfgang Denk <wd@denx.de> | 2010-06-22 15:44:16 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-07-04 23:52:42 +0200 |
commit | b218ccb5435e64ac2318bb8b6c9594ef1cc724cd (patch) | |
tree | 930a4f5324454c3ce4bb695c959c115b24b8d39e /include/environment.h | |
parent | d9c27253ce333e2086b2d758b42dc3ecb8b34c3d (diff) |
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>
Diffstat (limited to 'include/environment.h')
-rw-r--r-- | include/environment.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h index b9924fd7789..203f731967e 100644 --- a/include/environment.h +++ b/include/environment.h @@ -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 |