Patch: get dietlibc to build on mips64

View: New views
1 Messages — Rating Filter:   Alert me  

Patch: get dietlibc to build on mips64

by Jan Rovins :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi List,

It seems that the dietlib c project does not deal with anything having
the mips64 name in it, it only likes plain "mips"
It is strange that they support a ppc64 in their build sub directories,
but not a mips64.
so, if we are mips64, strip our name down to mips, and continue with the
build.

Jan

===================================================================
--- dietlibc.conf       (revision 34043)
+++ dietlibc.conf       (working copy)
@@ -91,7 +91,6 @@

 cpu="`echo $arch | arch2uname | sed -e s/sh.$/sh/`"
 hostcpu="`/bin/uname -m | uname2arch | arch2uname`"
-
 toolsbin=$base/build/$SDECFG_ID/TOOLCHAIN/$toolsdir/diet-bin

 if [ "$SDECFG_DIETLIBC_DYN" = 1 ]; then
@@ -131,6 +130,10 @@

        dietarch=$cpu
        [[ $archprefix == mipsel* ]] && dietarch='mipsel'
+       # divert mips64 into "mips eb" code path
+       [[ $archprefix == mips64-* ]] && dietarch='mips' && cpu='mips'
+       # divert mips64el into "mips el" code path
+       [[ $archprefix == mips64el* ]] && dietarch='mipsel' && cpu='mipsel'

        if atstage native; then
                # dietlibc uses uname - so we always need to set MYARCH



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2