From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 30 Aug 2017 00:07:16 +0200 Subject: [U-Boot] undefined reference to `environment' In-Reply-To: References: <20170829225002.610fb0c0@windsurf.lan> Message-ID: <20170830000716.72feecb6@windsurf.lan> 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: > 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. At this point, I don't think it's the correct fix. I don't see why it should be the responsibility of the linker script to include env/embedded.o. Almost no other architecture has env/embedded.o referenced in its linker script. Only a few m68k platforms, with custom linker script in their include/configs/.h file include env/embedded.o in their linker script, plus one Freescale platform. Again, changing extra- to obj- in env/Makefile also fixes the issue. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com