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

Unified Diff: pnacl/build.sh

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebased patch, conflict resolved. Created 8 years, 7 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
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pnacl/build.sh
diff --git a/pnacl/build.sh b/pnacl/build.sh
index b3a53bc11ceb604b788f0b334c215b101afc9213..1eb7f2e27e6a7c1c1d58490513de1110dde03b05 100755
--- a/pnacl/build.sh
+++ b/pnacl/build.sh
@@ -1780,6 +1780,27 @@ libstdcpp-install() {
spopd
}
+build-validator() {
+ arch=$1
+ if [ ${arch} == 'mips' ]; then
+ targetplatform='mips32'
+ else
+ targetplatform=$arch
+ fi
+ ARCH=`echo ${arch} | tr '[:lower:]' '[:upper:]'`
+ TARGETPLATFORM=`echo ${targetplatform} | tr '[:lower:]' '[:upper:]'`
+ StepBanner "MISC-"${ARCH} "Building validator ("${TARGETPLATFORM}")"
+ spushd "${NACL_ROOT}"
+ RunWithLog ${arch}_ncval_core \
+ ./scons MODE=opt-host \
+ targetplatform=${targetplatform} \
+ sysinfo=0 \
+ ${arch}-ncval-core
+ cp ${SCONS_OUT}/opt-linux-x86-32-to-${targetplatform}/obj/src/trusted/\
+validator_${arch}/${arch}-ncval-core ${INSTALL_ROOT}/tools-x86
+ spopd
+}
+
#+ misc-tools - Build and install sel_ldr and validator for ARM.
misc-tools() {
if ${PNACL_BUILD_ARM} ; then
@@ -1804,20 +1825,15 @@ misc-tools() {
fi
if ${BUILD_PLATFORM_LINUX} ; then
- StepBanner "MISC-ARM" "Building validator (ARM)"
- spushd "${NACL_ROOT}"
- RunWithLog arm_ncval_core \
- ./scons MODE=opt-host \
- targetplatform=arm \
- sysinfo=0 \
- arm-ncval-core
rm -rf "${INSTALL_ROOT}/tools-x86"
mkdir "${INSTALL_ROOT}/tools-x86"
- cp ${SCONS_OUT}/opt-linux-x86-32-to-arm/obj/src/trusted/validator_arm/\
-arm-ncval-core ${INSTALL_ROOT}/tools-x86
- spopd
+ for target in arm mips; do
+ build-validator $target
+ done
else
- StepBanner "MISC-ARM" "Skipping ARM validator (Not yet supported on Mac)"
+ for target in ARM MIPS; do
+ StepBanner "MISC-"${target} "Skipping " ${target} " validator (Not yet supported on Mac)"
+ done
fi
}
« no previous file with comments | « SConstruct ('k') | site_scons/site_tools/naclsdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698