summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-01-24 13:19:16 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-01-24 13:19:16 +0100
commit53ed6130c95e3eb5b3356a941354911c3af5c8bc (patch)
tree47b51787865522f89a3849da9c529a859ab26deb /compile.sh
parent4f3a8bdd4d26b929b97ab73909fbb1ef837d85d1 (diff)
Modify compile.sh to handle cross-compilation for arm-marvell-linux-gnu
used bySynology CS407
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/compile.sh b/compile.sh
index b205583..246a63f 100755
--- a/compile.sh
+++ b/compile.sh
@@ -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
;;