From: Michael Ellerman Date: Thu, 11 Jun 2015 05:13:01 +0000 (+1000) Subject: do_build: Make the -j factor a parameter X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=b708659f1557f4572117cb84d98f4d0ed1c514d6;p=next-scripts do_build: Make the -j factor a parameter --- diff --git a/common.sh b/common.sh index b02a06e..759c7f1 100644 --- a/common.sh +++ b/common.sh @@ -15,6 +15,7 @@ CTRL_FILE="../etc/control" build_host="ka2" build_dir="/scratch/sfr/next" gcc_version="4.9.0" +j_factor=48 [ "$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 b657fc7..400bb91 100755 --- a/do_build +++ b/do_build @@ -25,19 +25,19 @@ ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF d=../powerpc_ppc64_defconfig [ -d \$d ] || mkdir \$d 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 + cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d -j$j_factor -s echo Building: x86_64 allmodconfig d=../x86_64_allmodconfig [ -d \$d ] || mkdir \$d 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 + cross -n -N -a x86_64 -c $gcc_version O=\$d -j$j_factor -s echo Building: arm multi_v7_defconfig d=../arm_multi_v7_defconfig [ -d \$d ] || mkdir \$d 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 + cross -n -N -a arm -c $gcc_version O=\$d -j$j_factor -s rm .scmversion EOF