Chromium Code Reviews| Index: buildbot/buildbot_pnacl.sh |
| diff --git a/buildbot/buildbot_pnacl.sh b/buildbot/buildbot_pnacl.sh |
| index f064ea60e0d183b931b52dfc5e0bc01a43629c74..879292eba21ae6b831288cd87bf9b1eed4e2b866 100755 |
| --- a/buildbot/buildbot_pnacl.sh |
| +++ b/buildbot/buildbot_pnacl.sh |
| @@ -187,6 +187,52 @@ unarchive-for-hw-bots() { |
| tar xvfz arm-scons.tgz --no-same-owner |
| } |
| +# Build with gyp - this only exercises the trusted TC |
|
Mark Seaborn
2014/10/10 17:16:37
Doesn't the Gyp build also invoke pnacl-clang? If
petarj
2014/10/13 13:02:02
Done.
|
| +gyp-mips32-build() { |
|
Mark Seaborn
2014/10/10 17:16:37
Nit: can you put this after the ARM version?
petarj
2014/10/13 13:02:02
Done.
|
| + local gypmode="Release" |
| + if [ "${BUILD_MODE_HOST}" = "DEBUG" ] ; then |
| + gypmode="Debug" |
|
Mark Seaborn
2014/10/10 17:16:36
Nit: indent by 2, not 4
petarj
2014/10/13 13:02:02
Done. (I made the change in gyp-arm-build() too)
|
| + fi |
| + local toolchain_dir=native_client/toolchain/linux_x86/mips_trusted |
| + local extra="-EL -isystem ${toolchain_dir}/usr/include \ |
| + -Wl,-rpath-link=${toolchain_dir}/lib/mipsel-linux-gnu \ |
| + -L${toolchain_dir}/lib \ |
| + -L${toolchain_dir}/lib/mipsel-linux-gnu \ |
| + -L${toolchain_dir}/usr/lib \ |
| + -L${toolchain_dir}/usr/lib/mipsel-linux-gnu" |
| + # Setup environment for mips32. |
| + |
| + # Check if MIPS TC has already been built. If not, build it. |
| + if [ ! -f ${toolchain_dir}/bin/mipsel-linux-gnu-gcc ] |
| + then tools/trusted_cross_toolchains/trusted-toolchain-creator.mipsel.debian.sh nacl_sdk |
| + fi |
| + |
| + export AR=mipsel-linux-gnu-ar |
| + export AS=mipsel-linux-gnu-as |
| + export CC="mipsel-linux-gnu-gcc ${extra} " |
|
Mark Seaborn
2014/10/10 17:16:36
Trailing space not needed?
petarj
2014/10/13 13:02:02
Done. (I made the change in gyp-arm-build() too)
|
| + export CXX="mipsel-linux-gnu-g++ ${extra} " |
| + export LD="mipsel-linux-gnu-g++ ${extra} " |
| + export RANLIB=mipsel-linux-gnu-ranlib |
| + export SYSROOT |
|
Mark Seaborn
2014/10/10 17:16:36
Not set. Can this be removed?
petarj
2014/10/13 13:02:02
Done. (I made the change in gyp-arm-build() too)
|
| + export GYP_DEFINES="target_arch=mipsel mips_arch_variant=mips32r2" |
| + export GYP_GENERATORS=make |
| + # Ubuntu does not have MIPS trusted toolchain, so specify location of |
| + # the one that was built. |
| + export PATH=$(pwd)/toolchain/linux_x86/mips_trusted/bin:$PATH |
|
Mark Seaborn
2014/10/10 17:16:36
Shouldn't this just be scoped to the Gyp/make invo
petarj
2014/10/13 13:02:02
Done.
|
| + |
| + # NOTE: this step is also run implicitly as part of |
| + # gclient runhooks --force |
| + # it uses the exported env vars so we have to run it again |
| + # |
| + echo "@@@BUILD_STEP gyp_configure [${gypmode}]@@@" |
| + cd .. |
| + native_client/build/gyp_nacl native_client/build/all.gyp |
| + cd native_client |
| + |
| + echo "@@@BUILD_STEP gyp_compile [${gypmode}]@@@" |
| + make -C .. -k -j8 V=1 BUILDTYPE=${gypmode} |
| +} |
| + |
| # Build with gyp - this only exercises the trusted TC and hence this only |
| # makes sense to run for ARM. |
| gyp-arm-build() { |
| @@ -352,10 +398,18 @@ mode-buildbot-arm-hw() { |
| mode-trybot-qemu() { |
| clobber |
| + local arch=$1 |
| # TODO(dschuff): move the gyp build to buildbot_pnacl.py |
| - gyp-arm-build |
| + if [[ ${arch} == "arm" ]] ; then |
| + gyp-arm-build |
| + elif [[ ${arch} == "mips32" ]] ; then |
| + gyp-mips32-build |
| + fi |
| - buildbot/buildbot_pnacl.py opt arm pnacl |
| + # TODO(petarj): Enable this for MIPS arch too once all the tests pass. |
| + if [[ ${arch} == "arm" ]] ; then |
| + buildbot/buildbot_pnacl.py opt $arch pnacl |
| + fi |
| } |
| mode-buildbot-arm-dbg() { |