[U-Boot] [PATCH] Add support to mkconfig for setting simple #defines in config.h

Scott Wood
2009-08-13T22:01:15Z

On Thu, Aug 13, 2009 at 10:15:11PM +0200, Wolfgang Denk wrote:
> Nope, this doesn't work.
>
> We have many names with more than one underscore in it (all the
> CONFIG_CMD_* and CONFIG_SYS_* and CONFIG_BOOTP_* and ...).

So? Let the board config file translate from the target names into the
real names. We can put the former in a CONFIG_OPT_* namespace if you
prefer. There certainly should never be any CONFIG_SYS_ being defined by
this mechanism -- it's explicitly for things the user is specifying.

This is an interim measure until we get kconfig (not a replacement for
it) and is made necessary by your refusal to accept the status quo of
target handling until then. Kumar's version does not handle targets with
more than one orthogonal option.

-Scott