[U-Boot] [Almost solved] M5282EVB undefined reference to `environment'

James Steward j.steward at inchipdesign.com.au
Wed Nov 30 22:10:21 CET 2011


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?
>>>
>>> <hack>
>>> vim common/Makefile
>>>
>>> XCOBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
>>>
>>> becomes
>>>
>>> COBJS-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o
>>>
>>> :q
>>> </hack>
>>>
>>> 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.


More information about the U-Boot mailing list