]> git.ozlabs.org Git - next-scripts/commitdiff
do_build: Make the GCC version a parameter
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 11 Jun 2015 05:12:10 +0000 (15:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 19 Jun 2015 05:53:13 +0000 (15:53 +1000)
common.sh
do_build

index 31478c3909e1a6b3237db2de9158856cd840c76a..b02a06e18caba794362034d374ceeec447a692ff 100644 (file)
--- a/common.sh
+++ b/common.sh
@@ -14,6 +14,7 @@ CTRL_FILE="../etc/control"
 
 build_host="ka2"
 build_dir="/scratch/sfr/next"
+gcc_version="4.9.0"
 
 [ "$NEXT_BUILD_HOST" ] && build_host="$NEXT_BUILD_HOST"
 [ "$NEXT_BUILD_DIR" ] && build_dir="$NEXT_BUILD_DIR"
index b5eac654fbc772b89f97d5dcf52b00522fe9bbf6..b657fc79de44999d046fcd06be193e6a5d43c3cf 100755 (executable)
--- a/do_build
+++ b/do_build
@@ -24,20 +24,20 @@ ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
        echo Building: powerpc ppc64_defconfig
        d=../powerpc_ppc64_defconfig
        [ -d \$d ] || mkdir \$d
-       cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d ppc64_defconfig
-       cross -n -N -a powerpc64 -k powerpc -c 4.9.0 O=\$d -j48 -s
+       cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d ppc64_defconfig
+       cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d -j48 -s
 
        echo Building: x86_64 allmodconfig
        d=../x86_64_allmodconfig
        [ -d \$d ] || mkdir \$d
-       cross -n -N -a x86_64 -c 4.9.0 O=\$d allmodconfig
-       cross -n -N -a x86_64 -c 4.9.0 O=\$d -j48 -s
+       cross -n -N -a x86_64 -c $gcc_version O=\$d allmodconfig
+       cross -n -N -a x86_64 -c $gcc_version O=\$d -j48 -s
 
        echo Building: arm multi_v7_defconfig
        d=../arm_multi_v7_defconfig
        [ -d \$d ] || mkdir \$d
-       cross -n -N -a arm -c 4.9.0 O=\$d multi_v7_defconfig
-       cross -n -N -a arm -c 4.9.0 O=\$d -j48 -s
+       cross -n -N -a arm -c $gcc_version O=\$d multi_v7_defconfig
+       cross -n -N -a arm -c $gcc_version O=\$d -j48 -s
 
        rm .scmversion
 EOF