From: Wolfgang Denk Date: Thu, 05 May 2011 00:14:07 +0200 Subject: [U-Boot] Documenting the CONFIG_MACH_TYPE variable In-Reply-To: <4DC0FFB0.5080502@compulab.co.il> References: <4DC0FFB0.5080502@compulab.co.il> Message-ID: <20110504221408.76DFB126DAA@gemini.denx.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 Igor Grinberg, In message <4DC0FFB0.5080502@compulab.co.il> you wrote: > > While looking at how to document the CONFIG_MACH_TYPE variable, > I caught myself wondering, why don't we provide an option to set > this variable in board config file and set the bi_arch_number field in > a more generic location (e.g. arch/arm/lib/board.c: board_init_f()), > then it is right now (in each board's board_init() function)? "Historic reasons", probably. > Will such thing be accepted? Why not. > Are there any problems with it? > > Have anyone tried this in the past? Not that I know of. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de What about WRITING it first and rationalizing it afterwords? :-) - Larry Wall in <8162@jpl-devvax.JPL.NASA.GOV>