Jean-Christophe PLAGNIOL-VILLARD wrote:
>> | 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 ???

Ah, above was just a sample only intended for LE build.

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

I know that, but $(obj)include/autoconf.mk will be included by
$(TOPDIR)/config.mk.  Then what a rationale for including it redundantly
by $(TOPDIR/Makefile?  I assume that Wolfgang is probably requesting the
explanation for that.

Autoconf.mk is expected to be generated *before* $(TOPDIR)/config.mk is
included, right?  If so, do you think your patch is a reasonable enough?
Or do we need to consider another approach?

  Shinya - not a GNU make expert :-(
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to