From b218ccb5435e64ac2318bb8b6c9594ef1cc724cd Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 22 Jun 2010 15:44:16 +0200 Subject: 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 --- include/environment.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/environment.h b/include/environment.h index b9924fd778..203f731967 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 -- cgit v1.2.1