X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=do_last_build;h=b8c75f51238f8dae142247cb9621eb9641ba9c7f;hb=HEAD;hp=51d3fd33d14b81aae3ddcc4f54652bdd8c21d80a;hpb=c76cdbb6b174b364782a300bf6457595eed20f1a;p=next-scripts diff --git a/do_last_build b/do_last_build index 51d3fd3..69a189e 100755 --- a/do_last_build +++ b/do_last_build @@ -6,13 +6,15 @@ set -e cmd="/bin/sh" [ "$build_host" ] && - cmd="ssh root@$build_host unshare -n su $(id -u -n)" + cmd="ssh -T $build_host" + +j1_factor=$(( j_factor / 2 )) $cmd <<-EOF set -e echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH" - export LANG=C KCFLAGS="-Wimplicit-fallthrough" + export LANG=C cd "$build_dir" @@ -21,20 +23,38 @@ $cmd <<-EOF touch .scmversion + g=../global.except + if [ -r \$g ]; then + KCONFIG_ALLCONFIG=\$g + export KCONFIG_ALLCONFIG + fi + + echo Building: powerpc allyesconfig + d=../powerpc_allyesconfig + [ -d \$d ] || mkdir \$d + e=\$d.except + echo CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=n >\$e + if [ -r \$g ]; then + cat \$g >>\$e + fi + KCONFIG_ALLCONFIG=\$e make ARCH=powerpc -s O=\$d allyesconfig + printf 'Backgrouding the %s build\n' 'powerpc_allyesconfig' + make ARCH=powerpc O=\$d -j$j_factor -O -s -k >\$d.log 2>&1 \$e echo CONFIG_SECTION_MISMATCH_WARN_ONLY=y >>\$e + if [ -r \$g ]; then + cat \$g >>\$e + fi KCONFIG_ALLCONFIG=\$e make ARCH=powerpc -s O=\$d allnoconfig rm \$e - make ARCH=powerpc O=\$d -j$j_factor -O -s + make ARCH=powerpc O=\$d -j$j1_factor -O -s echo Building: powerpc ppc44x_defconfig d=../powerpc_ppc44x_defconfig [ -d \$d ] || mkdir \$d make ARCH=powerpc -s O=\$d ppc44x_defconfig - make ARCH=powerpc O=\$d -j$j_factor -O -s - - echo Building: powerpc allyesconfig - d=../powerpc_allyesconfig - [ -d \$d ] || mkdir \$d - make ARCH=powerpc -s O=\$d allyesconfig - make ARCH=powerpc O=\$d -j$j_factor -O -s -k + make ARCH=powerpc O=\$d -j$j1_factor -O -s echo Building: powerpc pseries_le_defconfig d=../powerpc_pseries_le_defconfig [ -d \$d ] || mkdir \$d make ARCH=powerpc -s O=\$d pseries_le_defconfig - make ARCH=powerpc O=\$d -j$j_factor -O -s + sed -i '/CONFIG_PPC_64K_PAGES/d;s/^.*CONFIG_PPC_4K_PAGES.*$/CONFIG_PPC_4K_PAGES=y/' \$d/.config + make ARCH=powerpc -s O=\$d olddefconfig + make ARCH=powerpc O=\$d -j$j1_factor -O -s - rm .scmversion -EOF + echo Building: i386 defconfig + d=../i386_defconfig + [ -d \$d ] || mkdir \$d + make ARCH=i386 O=\$d CROSS_COMPILE=x86_64-linux-gnu- -s defconfig + make ARCH=i386 O=\$d CROSS_COMPILE=x86_64-linux-gnu- -j$j1_factor -O -s + + echo Building: arm64 defconfig + d=../arm64_defconfig + [ -d \$d ] || mkdir \$d + make ARCH=arm64 O=\$d CROSS_COMPILE=aarch64-linux-gnu- -s defconfig + make ARCH=arm64 O=\$d CROSS_COMPILE=aarch64-linux-gnu- -j$j1_factor -O -s -for a in i386:x86_64 sparc64 sparc:sparc64 -do - ka=${a%:*} - ca=${a#*:} - d=../${ka}_defconfig - $cmd <<-EOF - set -e + echo Building: s390 defconfig + d=../s390_defconfig + [ -d \$d ] || mkdir \$d + make ARCH=s390 O=\$d CROSS_COMPILE=s390x-linux-gnu- -s defconfig + make ARCH=s390 O=\$d CROSS_COMPILE=s390x-linux-gnu- -j$j1_factor -O -s - echo \$PATH | grep -q "\$HOME/bin" || - export PATH="\$HOME/bin:\$PATH" - export LANG=C + echo Building: sparc64 defconfig + d=../sparc64_defconfig + [ -d \$d ] || mkdir \$d + cross -n -N -a sparc64 -k sparc64 -c 11.1.0 -s O=\$d defconfig + cross -n -N -a sparc64 -k sparc64 -c 11.1.0 O=\$d -j$j1_factor -O -s - cd "$build_dir" + echo Building: sparc defconfig + d=../sparc_defconfig + [ -d \$d ] || mkdir \$d + cross -n -N -a sparc64 -k sparc -c 11.1.0 -s O=\$d defconfig + cross -n -N -a sparc64 -k sparc -c 11.1.0 O=\$d -j$j1_factor -O -s - export CCACHE_DIR="${build_dir%/*}/.ccache" - export TMPDIR="${build_dir%/*}/tmp" + printf '\nWaiting for powerpc allyesconfig build\n\n' + wait - touch .scmversion + rm .scmversion - echo Building: $ka defconfig - [ -d $d ] || mkdir $d - cross -n -N -a ${ca} -k ${ka} -c $gcc_version -s O=$d defconfig - cross -n -N -a ${ca} -k ${ka} -c $gcc_version O=$d -j$j_factor -O -s + cat ../powerpc_allyesconfig.log +EOF - rm .scmversion - EOF -done +exit 0