From: Kim Phillips Date: Fri, 26 Jan 2007 11:19:17 -0600 Subject: [U-Boot-Users] [PATCH] Add support for the MPC8349E-mITX-GP In-Reply-To: <20070126094654.78920353CC1@atlas.denx.de> References: <20070126094654.78920353CC1@atlas.denx.de> Message-ID: <20070126111917.50cf05ed.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 26 Jan 2007 10:46:54 +0100 Wolfgang Denk wrote: > In message you wrote: > > > > Since they are different physical boards they should have different > > .h, that rule's been pretty standard in u-boot. > > No, not at all. We have many similar boards share one configuration > file - especially in the case of modules that can be used on > different carrier boards. > I didn't see any that had the same config behaviour as this patch does (ifdeffing itself). In any case, the ITX and ITX-GP do not have any modular properties. Plus, there are more similarly 'fixed' boards coming that are similar, but in different ways, to the ITX and the ITX-GP. My reluctance is stemmed from the prediction of the growing number of ifdefs in the config file. Perhaps the best thing to do here is have the main config file have a single set of ifdefs for each individual board, and include that board's delta config from a sub-board config file. All common elements remain in the main config file, and if a board define is not matched, #error out. Kim