From: Michael Ellerman Date: Thu, 11 Jun 2015 05:12:10 +0000 (+1000) Subject: do_build: Make the GCC version a parameter X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=09e10c095f4cfa926491a473def0d32b596c5e4e;p=next-scripts do_build: Make the GCC version a parameter --- diff --git a/common.sh b/common.sh index 31478c3..b02a06e 100644 --- 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" diff --git a/do_build b/do_build index b5eac65..b657fc7 100755 --- 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