On Sunday 11 December 2011 11:53:11 Daniel Schwierzeck wrote: > --- a/README > +++ b/README > @@ -374,6 +374,12 @@ The following options need to be configured: > Defines the string to utilize when trying to match PCIe device > tree nodes for the given platform. > > +- Generic CPU options: > + CONFIG_SYS_BIG_ENDIAN, CONFIG_SYS_LITTLE_ENDIAN > + > + Defines the endianess of the CPU. Implementation of those > + values is arch specific.
might be useful to describe what these do. something like: Adds options to explicitly add compiler flags that select the desired endianness. Otherwise, the endian will be whatever the toolchain defaults to. > --- a/arch/mips/cpu/mips32/config.mk > +++ b/arch/mips/cpu/mips32/config.mk > > +ifdef CONFIG_SYS_LITTLE_ENDIAN > +ENDIANNESS := -EL > +endif > + > +ifdef CONFIG_SYS_BIG_ENDIAN > +ENDIANNESS := -EB > +endif the GNU linker should treat -EL/-EB the same for all targets. so we should be able to add to the common .mk files in the top level: LDFLAGS-$(CONFIG_SYS_LITTLE_ENDIAN) += -EL LDFLAGS-$(CONFIG_SYS_BIG_ENDIAN) += -EB -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot