Modify compile.sh to handle cross-compilation for arm-marvell-linux-gnu

used bySynology CS407
This commit is contained in:
Christophe Grenier 2010-01-24 13:19:16 +01:00
parent 4f3a8bdd4d
commit 53ed6130c9

View file

@ -64,7 +64,14 @@ then
then
rm -f $compiledir/Makefile
cd $compiledir/e2fsprogs-$VER_E2FSPROGS
CC=$TESTDISKCC CFLAGS="$CFLAGS -g -O2 -DOMIT_COM_ERR" ./configure --host=$crosscompile_target --prefix=$prefix
case "$crosscompile_target" in
arm-marvell-linux-gnu)
CC=$TESTDISKCC CFLAGS="$CFLAGS -g -O2 -DOMIT_COM_ERR" ./configure --host=$crosscompile_target --prefix=$prefix --disable-tls
;;
*)
CC=$TESTDISKCC CFLAGS="$CFLAGS -g -O2 -DOMIT_COM_ERR" ./configure --host=$crosscompile_target --prefix=$prefix
;;
esac
cd $pwd_saved
fi
fi
@ -230,6 +237,9 @@ then
i386-mingw32)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-iconv --enable-missing-uuid-ok
;;
arm-marvell-linux-gnu)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT --without-ewf --without-ntfs
;;
*)
$confdir/configure --host=$crosscompile_target --prefix=$prefix $CONFIGUREOPT
;;