Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: pnacl/scripts/common-tools.sh

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pnacl/scripts/common-tools.sh
diff --git a/pnacl/scripts/common-tools.sh b/pnacl/scripts/common-tools.sh
index 1587ef1a685fc102ee87e1354f2a035acf97c745..2e13bb401f493dbf881c4190efbdf770c7c53a4d 100755
--- a/pnacl/scripts/common-tools.sh
+++ b/pnacl/scripts/common-tools.sh
@@ -91,6 +91,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
@@ -100,6 +101,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
@@ -107,12 +110,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
@@ -122,6 +128,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
@@ -130,6 +138,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

Powered by Google App Engine
This is Rietveld 408576698