From: Wolfgang Denk Date: Tue, 09 Nov 2010 21:13:00 +0100 Subject: [U-Boot] nand spl build with wrong CONFIG_SYS_TEXT_BASE In-Reply-To: <20101109130427.5e918954@udp111988uds.am.freescale.net> References: <1288970062.1855.44.camel@haiying-laptop> <20101107213129.CA432220@gemini.denx.de> <1289230710.1900.27.camel@haiying-laptop> <20101108163053.E973613077C4@gemini.denx.de> <1289240747.1900.58.camel@haiying-laptop> <20101108233626.82904D48956@gemini.denx.de> <1289314359.2168.20.camel@haiying-laptop> <20101109162343.31A76D314CE@gemini.denx.de> <20101109102643.45d7f398@udp111988uds.am.freescale.net> <20101109171853.8ADBAD0D220@gemini.denx.de> <20101109122218.13f168dd@udp111988uds.am.freescale.net> <20101109185947.76137EA443@gemini.denx.de> <20101109130427.5e918954@udp111988uds.am.freescale.net> Message-ID: <20101109201300.531344F4@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 Scott Wood, In message <20101109130427.5e918954@udp111988uds.am.freescale.net> you wrote: > > > For me it is on the fly when running a single "make all" sees these > > values changing. > > In any case, the right answer is a separate autoconf.mk per image. NAK. If different images need to be linked with different text base addresses, they should use separate variables. Having these lists of #ifdef's and needing to know "umm, now we're in the context of building FOO image, so TEXT_BASE might be that; oh, wrong, it's the other #if branch actually, it should be this" is just what you see right now: a maintenance nightmare. Lets get rid of this mess, and use a separate variable for each separate purpose. Name space is big enough, so we don't have to redefine the meaning of variables like that. 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 Lack of skill dictates economy of style. - Joey Ramone