]> git.ozlabs.org Git - next-scripts/blobdiff - common.sh
new default build directory
[next-scripts] / common.sh
index 71f17fbb6a88b89278a507180378406a9bce9742..f4118484cd5dbe5996cf68c11b237524559a4a8b 100644 (file)
--- a/common.sh
+++ b/common.sh
@@ -13,7 +13,7 @@ SHA1_FILE="../SHA1s"
 CTRL_FILE="../etc/control"
 
 build_host="ka2"
-build_dir="/scratch/sfr/next"
+build_dir="/home/sfr/next/next"
 gcc_version="4.9.0"
 j_factor=48
 ssh_key_file=~/.ssh/ra.kernel.org
@@ -21,6 +21,8 @@ gpg_key=41D5C07A
 
 [ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST"
 [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
+[ "$NEXT_GCC_VERSION" ] && gcc_version="$NEXT_GCC_VERSION"
+[ "$NEXT_J_FACTOR" ] && j_factor="$NEXT_J_FACTOR"
 
 [ -n "$1" ] && {
        build_host="$1"
@@ -33,5 +35,7 @@ gpg_key=41D5C07A
 
 export NEXT_BUILD_HOST="$build_host"
 export NEXT_BUILD_DIR="$build_dir"
+export NEXT_GCC_VERSION="$gcc_version"
+export NEXT_J_FACTOR="$j_factor"
 
 true