#!/bin/sh . "$(dirname $0)/common.sh" set -e cmd="/bin/sh" [ "$build_host" ] && cmd="ssh root@$build_host unshare -n su $(id -u -n)" j1_factor=$(( j_factor / 2 )) $cmd <<-EOF set -e echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH" export LANG=C cd "$build_dir" export CCACHE_DIR="${build_dir%/*}/.ccache" export TMPDIR="${build_dir%/*}/tmp" touch .scmversion echo Building: powerpc allyesconfig d=../powerpc_allyesconfig [ -d \$d ] || mkdir \$d 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 KCONFIG_ALLCONFIG=\$e make ARCH=powerpc -s O=\$d allnoconfig rm \$e 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$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$j1_factor -O -s 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 echo Building: sparc64 defconfig d=../sparc64_defconfig [ -d \$d ] || mkdir \$d cross -n -N -a sparc64 -k sparc64 -c $gcc_version -s O=\$d defconfig cross -n -N -a sparc64 -k sparc64 -c $gcc_version O=\$d -j$j1_factor -O -s echo Building: sparc defconfig d=../sparc_defconfig [ -d \$d ] || mkdir \$d cross -n -N -a sparc64 -k sparc -c $gcc_version -s O=\$d defconfig cross -n -N -a sparc64 -k sparc -c $gcc_version O=\$d -j$j1_factor -O -s printf '\nWaiting for powerpc allyesconfig build\n\n' wait rm .scmversion cat ../powerpc_allyesconfig.log EOF exit 0