From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 14 Sep 2017 00:29:11 +0200 Subject: [U-Boot] undefined reference to `environment' In-Reply-To: References: <20170829225002.610fb0c0@windsurf.lan> Message-ID: <20170914002911.640a3e88@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, On Tue, 29 Aug 2017 17:18:24 -0400, Tom Rini wrote: > > 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. How did you end up solving this problem? As I said, I don't think https://patchwork.ozlabs.org/patch/806263/ is the correct solution. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com