[U-Boot-Users] [PATCH] fix compilation problem for mpc8349itx CFG_RAMBOOT

Nikita V. Youshchenko yoush at debian.org
Thu May 24 10:10:19 CEST 2007


> > In this case:
> > - command xxx could be compiled in, if CONFIG_CMD_XXX is defined, and
> > not> compiled in if not defined;
> > - it could be easy to define/undefine such macros in config
>
> But you get problems when you want to configure a board with settings
> like:
>
> * all commands except foo, bar and baz

#include "define_all_cmds.h"
#undef CONFIG_CMD_FOO
#undef CONFIG_CMD_BAR
#undef CONFIG_CMD_BAZ

> * all default commands plus foo, but without baz

#include "define_default_cmds.h"
#define CONFIG_CMD_FOO
#undef CONFIG_CMD_BAZ

> I guess then you will have to  list  up  all  commands  you  want  to
> include  somewhere  -  either  in  the board onfig file or in another
> header file.

Sure - in separate headers files. I see no problems here. It scales.




More information about the U-Boot mailing list