[Clfs-dev] Endians
Nicholai Vesterløkke
nve at mpitech.com
Tue Mar 24 08:45:48 PDT 2009
> From:
> Nicholai Vesterløkke <nve at mpitech.com>
>
> Chapter 6.4 Build variables for the arm version
>
> I'm not sure that it's the right thing that I get from this
>
> export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/armeb/BIG/'
> -e 's/arm/LITTLE/')
>
> Because the result is this:
>
> CLFS_ENDIAN=LITTLE-unknown-linux-uclibc
>
> Which will give me a wrong output in the next part
>
> if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then
> export CLFS_NOT_ENDIAN=BIG
> else
> export CLFS_NOT_ENDIAN=LITTLE
> fi
>
> Here it will set CLFS_NOT_ENDIAN=LITTLE
>
> I think this will do the trick, if I have understood the expression
> correctly.
>
> export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e
> 's/armv5b[a-z-]*/BIG/' -e 's/arm[0-9 a-z-]*/LITTLE/')
I still believe there is an "issue" here
Regards
Nicholai
More information about the Clfs-dev
mailing list