[U-Boot] [PATCH 1/3] fix: missing autoconfig.mk from general Makefile

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Tue Jun 23 17:14:58 CEST 2009


> 
> 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.


More information about the U-Boot mailing list