From: Jon Loeliger Date: Thu, 05 Jul 2007 15:29:13 -0500 Subject: [U-Boot-Users] U-boot refactoring In-Reply-To: <20070705200942.AA57F353CCC@atlas.denx.de> References: <20070705200942.AA57F353CCC@atlas.denx.de> Message-ID: <1183667353.26273.71.camel@ld0161-tx32> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2007-07-05 at 15:09, Wolfgang Denk wrote: > In message <1183661913.26273.49.camel@ld0161-tx32> you wrote: > > > > Say.... Not to put _too_ fine a spin on this, but there > > is a _veeery_ similar issue brewing with the POST CFG_ symbols... > > Let me know if you have specific ideas how to change these; we're > working in that area right now (adding 440EPx POST support), so we > can do it better right from the start. Ah, these have the same problem that the Command Line selection has -- Bit fields are being used at compile time to select code portions. We'll need to introduce symbols such as CONFIG_POST_x for each of the existing CFG_POST_x symbols, and modify the users to have the features conditionally compiled like #if defined(CONFIG_POST_x) as well as modifying some (fewer!) board config files to explicitly list which CONFIG_POST_x features are wanted. Naturally, this can be done in a round after the Command Line Config updates too! jdl