From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita V. Youshchenko Date: Thu, 24 May 2007 12:10:19 +0400 Subject: [U-Boot-Users] [PATCH] fix compilation problem for mpc8349itx CFG_RAMBOOT In-Reply-To: <20070523231108.D0480353428@atlas.denx.de> References: <20070523231108.D0480353428@atlas.denx.de> Message-ID: <200705241210.19623@zigzag.lvk.cs.msu.su> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > 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.