[U-Boot] [PATCH 01/12] tools/env: Use a board-specific default env

Joe Hershberger joe.hershberger at gmail.com
Thu Aug 23 17:45:13 CEST 2012


Hi Mike,

On Wed, Aug 22, 2012 at 10:17 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Friday 17 August 2012 16:49:35 Joe Hershberger wrote:
>>   */
>>  #define CONFIG_FILE     "/etc/fw_env.config"
>>
>> +#ifndef CONFIG_FILE
>
> this doesn't make any sense.  CONFIG_FILE is defined literally right above this
> check.

The comment right above that says:

/*
 * To build the utility with the static configuration
 * comment out the next line.
 * See included "fw_env.config" sample file
 * for notes on configuration.
 */

...so the reason for the #ifndef is for the case where you comment out
that line.  The other option is to just delete all of that stuff and
the user can add it all back if they want to operate with no config
file.

-Joe


More information about the U-Boot mailing list