diff options
author | Axel Fagerstedt <axel.fagerstedt@linaro.org> | 2013-04-09 15:55:32 +0200 |
---|---|---|
committer | Axel Fagerstedt <axel.fagerstedt@linaro.org> | 2013-04-09 15:55:32 +0200 |
commit | f308573dc730472221f9488650a6a11b04d0f1c1 (patch) | |
tree | e07c2887cc3f094f8f81e0e54e359d98325fae5f | |
parent | e0ed6ef379cbb4a39deab4cc4b302fcd36aec7fc (diff) |
Add build type build-testsuite-restricted
-rw-r--r-- | build-scripts/build-testsuite-restricted | 47 | ||||
-rwxr-xr-x | node/prepare_build_config.py | 3 |
2 files changed, 49 insertions, 1 deletions
diff --git a/build-scripts/build-testsuite-restricted b/build-scripts/build-testsuite-restricted new file mode 100644 index 0000000..68d4b35 --- /dev/null +++ b/build-scripts/build-testsuite-restricted @@ -0,0 +1,47 @@ +############################################################################### +# Copyright (c) 2013 Linaro +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################### + +export GIT_SSH=/var/run/lava/ssh + +source "${BUILD_SCRIPT_ROOT}"/helpers + +if [ -n "$REPO_SEED_URL" ]; then + repo-sync-from-seed "${1}" +else + repo-sync-from-mirror "${1}" +fi + +if test -n "$TOOLCHAIN_URL"; then + wget -nv --no-check-certificate $TOOLCHAIN_URL + toolchain_filename=`echo $TOOLCHAIN_URL | sed -e 's/.*\/\([^/]*\)$/\1/'` + mkdir toolchain + tar -C toolchain --strip-components 1 -xf $toolchain_filename + export PATH=`pwd`/toolchain/bin:$PATH + if test -z "$TOOLCHAIN_TRIPLET"; then + #assume arm-linux-gnueabihf- + echo "WARNING: assuming arm.linux-gnueabihf toolchain" + CROSS_COMPILE="CROSS_COMPILE=arm-linux-gnueabihf-" + else + CROSS_COMPILE="CROSS_COMPILE=$TOOLCHAIN_TRIPLET" + fi +else + echo "ERROR: TOOLCHAIN_URL is not optional." + exit 1 +fi + +if test -e "build/Makefile"; then + make $CROSS_COMPILE -C build/ build + make $CROSS_COMPILE -C build/ install +else + echo "ERROR: Could not locate build tools, expecting a Makefile in build/ with targets build and install" +fi + +#create images +#TODO download android image +#TODO create build output tarball +#TODO combine tarballs diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py index 2697dd7..d2ca1dd 100755 --- a/node/prepare_build_config.py +++ b/node/prepare_build_config.py @@ -60,7 +60,8 @@ def validate_config(config, slave_type): if config.get("BUILD_TYPE", "build-android") in ["build-android-private", "build-android-restricted", - "build-android-toolchain-linaro-restricted"]: + "build-android-toolchain-linaro-restricted", + "build-testsuite-restricted"]: build_type_cat = "restricted" else: build_type_cat = "normal" |