From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 29 Aug 2017 22:50:02 +0200 Subject: [U-Boot] undefined reference to `environment' In-Reply-To: References: Message-ID: <20170829225002.610fb0c0@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 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-$() ? Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com