From: Reinhard Meyer Date: Thu, 07 Oct 2010 02:46:26 +0200 Subject: [U-Boot] RFQ: Makefile cleanup In-Reply-To: References: <20101006195427.E4EFC1539A0@gemini.denx.de> <4CACD92B.5070300@free.fr> Message-ID: <4CAD1862.5020006@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Graeme Russ, > P.S. Here's a thought I ended up discarding: > Each board could have a main config with all the common configuration > values and a number of secondary includes (which include the primary) for > each specific configuration. The entry in boards.cfg would select a > specific config_xxx.h file > > eg > > boards.cfg: > TQM8260 powerpc mpc8260 tqm8260 tqc - > TQM8260_AB powerpc mpc8260 tqm8260 tqc - > > /include/configs/TQM8260_AB.h: > > #include "configs/TQM8260.h" > > #define MPC8260 > #define 200MHz > #define L2_CACHE > #define BUSMODE_60x That would make more sense to me. But it would even more crowd the include/configs directory. A while ago I had proposed to change over to: include/configs//.h but that was rejected. [Observation:] But if we really head for linux style *config we would need a _defconfig individually for each variant... But I don't think we are there anytime soon. Many configs contain conditionals and *config does not handle long (multiline) strings nicely... Best Regards, Reinhard