From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Steward Date: Thu, 01 Dec 2011 08:10:21 +1100 Subject: [U-Boot] [Almost solved] M5282EVB undefined reference to `environment' In-Reply-To: <4ED5D416.1070709@compulab.co.il> References: <4ECAC9E7.7000209@gmail.com> <201111220551.16053.marek.vasut@gmail.com> <4ECB3184.9050505@inchipdesign.com.au> <4ECCE4E7.8040909@compulab.co.il> <4ECD88A1.50003@inchipdesign.com.au> <4ECDE605.30404@compulab.co.il> <4ECF1110.4050607@inchipdesign.com.au> <4ED563B3.1080107@inchipdesign.com.au> <4ED5D416.1070709@compulab.co.il> Message-ID: <4ED69BBD.8010904@inchipdesign.com.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 30/11/11 17:58, Igor Grinberg wrote: > On 11/30/11 00:58, James Steward wrote: >> On 25/11/11 14:52, James Steward wrote: >> >>> So it compiles env_embedded.c, but doesn't include it in libcommon.o? >>> >>> >>> vim common/Makefile >>> >>> XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o >>> >>> becomes >>> >>> COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o >>> >>> :q >>> >>> >>> make all >>> >>> Hey, presto, build now completes! >>> >>> So how should this be corrected properly? >> >> Can anyone suggest how the build process should be fixed? > > I don't fully understand the logic behind what's done > to have ENV_IS_EMBEDDED, as it is used mostly on architectures > I haven't worked with (at least till now). > So, probably, I will not be the right person to ask... > > My suggestion would be to look into those linker scripts, > Wolfgang mentioned in one of the previous emails and if you think > it should be done in some different way, send a patch and start > a discussion. But, really, I'm not the right person to ask... > > Thanks for your help so far, Igor. I'm going to unsubscribe from this list as the volume of email is huge and mostly not interesting to me. If I come up with a possible solution, I'll subscribe and send a patch. Regards, James.