[U-Boot] undefined reference to `environment'
Tom Rini
trini at konsulko.com
Tue Aug 29 21:18:24 UTC 2017
On Tue, Aug 29, 2017 at 4:50 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Hello,
>
> On Wed, 30 Aug 2017 04:16:39 +0800, Simon Glass wrote:
>
>> A bisect shows this came in with:
>>
>> f40ad66f (refs/bisect/bad) arch/sh: don't bring common/env_embedded.o
>> into the link
>>
>> Thomas, could you please take a look?
>
> env/embedded.o is missing in the link. It is added to extra-y by:
>
> extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o
>
> I dumped extra-y right after this line, and it does contain embedded.o.
> However, it does not get added to the link stage.
>
> Why is this an extra-$() rather than an obj-$() ?
So there's something extra funny going on in the linking. See
https://patchwork.ozlabs.org/patch/806263/ which I have included, but
haven't been able to push out.
--
Tom
More information about the U-Boot
mailing list