[U-Boot-Users] environment settings question

Timur Tabi timur at freescale.com
Tue Jun 26 01:12:30 CEST 2007


sapirf fersht wrote:
> For a ixp425 cpu how should the environment value
> #define CFG_ENV_IS_IN_FLASH be set?
> 
> #define CFG_ENV_IS_IN_FLASH
> 
> OR
> 
> #define CFG_ENV_IS_IN_FLASH 1

The code that uses these macros should support both methods, but personally I prefer that 
the macros themselves be defined using the first method.  IMHO, you should define a macro 
to contain a value only if that value has some inherent significance.  For example, does 
"1" really mean something that "2" doesn't?  In this case, no.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale




More information about the U-Boot mailing list