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

Unified Diff: buildbot/buildbot_toolchain_mips_trusted.sh

Issue 101713002: [MIPS] Upload a toolchain tarball for MIPS after the build step (Closed) Base URL: http://git.chromium.org/native_client/src/native_client.git@master
Patch Set: Use correct function. Created 7 years 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 | « buildbot/buildbot_selector.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: buildbot/buildbot_toolchain_mips_trusted.sh
diff --git a/buildbot/buildbot_toolchain_mips_trusted.sh b/buildbot/buildbot_toolchain_mips_trusted.sh
new file mode 100755
index 0000000000000000000000000000000000000000..298f67f5d951c529ca5add410d9fc3d79b17a378
--- /dev/null
+++ b/buildbot/buildbot_toolchain_mips_trusted.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+# Copyright (c) 2013 The Native Client Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Script assumed to be run in native_client/
+if [[ $(pwd) != */native_client ]]; then
Mark Seaborn 2013/12/11 20:42:06 Nit: Put ""s around "*/native_client" to prevent g
petarj 2013/12/11 22:18:41 I have changed it to: if [[ $(basename $(pwd)) !=
Mark Seaborn 2013/12/11 22:34:52 Yes, that's better.
+ echo "ERROR: must be run in native_client!"
+ exit 1
+fi
+
+set -x
+set -e
+set -u
+
+readonly UP_DOWN_LOAD="buildbot/file_up_down_load.sh"
+readonly TRUSTED_TOOLCHAIN_CREATOR=\
+"tools/trusted_cross_toolchains/trusted-toolchain-creator.mipsel.debian.sh"
+
+UploadToolchainTarball() {
Mark Seaborn 2013/12/11 20:42:06 Rather than copying this function from file_up_dow
petarj 2013/12/11 22:18:41 Done.
+ local rev=$1
+ local label=$2
+ local tarball=$3
+
+ ${UP_DOWN_LOAD} ComputeSha1 ${tarball} > ${tarball}.sha1hash
+ ${UP_DOWN_LOAD} UploadArchive \
+ toolchain/${rev}/naclsdk_${label}.tgz.sha1hash ${tarball}.sha1hash
+
+ ${UP_DOWN_LOAD} UploadArchive toolchain/${rev}/naclsdk_${label}.tgz ${tarball}
+}
+
+echo @@@BUILD_STEP compile_toolchain@@@
+${TRUSTED_TOOLCHAIN_CREATOR} nacl_sdk
+
+echo @@@BUILD_STEP upload_tarball@@@
+UploadToolchainTarball ${BUILDBOT_GOT_REVISION} linux_mips-trusted nacl_sdk.tgz
« no previous file with comments | « buildbot/buildbot_selector.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698