Index: pnacl/scripts/common-tools.sh |
diff --git a/pnacl/scripts/common-tools.sh b/pnacl/scripts/common-tools.sh |
index d1f2e560ec3f81429ea10437079a6f049152b501..e2765c9c07df8484c194074132e5383663751df8 100755 |
--- a/pnacl/scripts/common-tools.sh |
+++ b/pnacl/scripts/common-tools.sh |
@@ -92,6 +92,7 @@ readonly SO_DIR |
BUILD_ARCH_X8632=false |
BUILD_ARCH_X8664=false |
BUILD_ARCH_ARM=false |
+BUILD_ARCH_MIPS=false |
if [ "${BUILD_ARCH}" == "x86_32" ] || |
[ "${BUILD_ARCH}" == "i386" ] || |
[ "${BUILD_ARCH}" == "i686" ] ; then |
@@ -101,6 +102,8 @@ elif [ "${BUILD_ARCH}" == "x86_64" ] ; then |
BUILD_ARCH_X8664=true |
elif [ "${BUILD_ARCH}" == "armv7l" ] ; then |
BUILD_ARCH_ARM=true |
+elif [ "${BUILD_ARCH}" == "mips32" ] ; then |
+ BUILD_ARCH_MIPS=true |
else |
echo "Unknown build arch '${BUILD_ARCH}'" |
exit -1 |
@@ -108,12 +111,15 @@ fi |
readonly BUILD_ARCH |
readonly BUILD_ARCH_X8632 |
readonly BUILD_ARCH_X8664 |
+readonly BUILD_ARCH_ARM |
+readonly BUILD_ARCH_MIPS |
HOST_ARCH=${HOST_ARCH:-${BUILD_ARCH}} |
HOST_ARCH_X8632=false |
HOST_ARCH_X8664=false |
HOST_ARCH_ARM=false |
+HOST_ARCH_MIPS=false |
if [ "${HOST_ARCH}" == "x86_32" ] || |
[ "${HOST_ARCH}" == "i386" ] || |
[ "${HOST_ARCH}" == "i686" ] ; then |
@@ -123,6 +129,8 @@ elif [ "${HOST_ARCH}" == "x86_64" ] ; then |
HOST_ARCH_X8664=true |
elif [ "${HOST_ARCH}" == "armv7l" ] ; then |
HOST_ARCH_ARM=true |
+elif [ "${HOST_ARCH}" == "mips32" ] ; then |
+ HOST_ARCH_MIPS=true |
else |
echo "Unknown host arch '${HOST_ARCH}'" |
exit -1 |
@@ -131,6 +139,7 @@ readonly HOST_ARCH |
readonly HOST_ARCH_X8632 |
readonly HOST_ARCH_X8664 |
readonly HOST_ARCH_ARM |
+readonly HOST_ARCH_MIPS |
if [ "${BUILD_ARCH}" != "${HOST_ARCH}" ]; then |
if ! { ${BUILD_ARCH_X8664} && ${HOST_ARCH_X8632}; }; then |