From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 23 Jun 2009 17:14:58 +0200 Subject: [U-Boot] [PATCH 1/3] fix: missing autoconfig.mk from general Makefile In-Reply-To: <4A40E80C.1020507@ruby.dti.ne.jp> References: <4A18393D.7030100@pobox.com> <1243107758-4528-1-git-send-email-plagnioj@jcrosoft.com> <4A40E80C.1020507@ruby.dti.ne.jp> Message-ID: <20090623151458.GJ23512@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > I'm still thinking how to fix this issue. > > The problem here is, deferred expansion on PLATFORM_LDFLAGS doesn't work > expectedly. In this case, > > | autoconf.mk > | ----------- > | CONFIG_CPU_LITTLE_ENDIAN=y > | > | mips_config.mk > | -------------- > | > | ifneq (,$(CONFIG_CPU_LITTLE_ENDIAN)) > | PLATFORM_CPPFLAGS += $(shell $(CC) -dumpmachine |... > | PLATFORM_LDFLAGS += -EL > | else > | PLATFORM_CPPFLAGS += $(shell $(CC) -dumpmachine |... > | PLATFORM_LDFLAGS += -EB > | endif > > doesn't work, but simply doing ... > > | ifneq (,$(CONFIG_CPU_LITTLE_ENDIAN)) > | PLATFORM_CPPFLAGS += $(shell $(CC) -dumpmachine |... > | else > | PLATFORM_CPPFLAGS += $(shell $(CC) -dumpmachine |... > | endif > | > | PLATFORM_LDFLAGS += -EL > > does work. ??? you compile it as big endian to link it as little ??? > > Then, what needs to be fixed finally? Can't we have PLATFORM_LDFLAGS > conditionally configured? or is this a U-Boot's build system issue? it a u-boot build system issues we need to include the autoconf.mk after generate it to use it in the GENERAL Makefile which is the case here for final link Best Regards, J.