3 . "$(dirname $0)/common.sh"
7 ###ssh "$build_host" /bin/sh -e <<-EOF
8 ssh root@"$build_host" unshare -n su $(id -u -n) <<-EOF
10 echo Building on \$(hostname)
12 echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
15 cd "$build_dir" || exit 1
17 export CCACHE_DIR="${build_dir%/*}/.ccache"
18 export TMPDIR="${build_dir%/*}/tmp"
20 git reset --hard next || exit 1
21 touch .scmversion || exit 1
23 echo Building: x86_64 allmodconfig
24 d=../x86_64_allmodconfig
25 [ -d \$d ] || mkdir \$d || exit 1
28 echo CONFIG_BUILD_DOCSRC=n >\$e || exit 1
29 KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c $gcc_version O=\$d allyesconfig || exit 1
30 /usr/bin/time cross -n -N -a x86_64 -c $gcc_version O=\$d -j$j_factor -s > \$log_x86 2>&1 &
32 echo Building: powerpc ppc64_defconfig
33 d=../powerpc_ppc64_defconfig
34 [ -d \$d ] || mkdir \$d || exit 1
36 cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d ppc64_defconfig || exit 1
37 /usr/bin/time cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d -j$j_factor -s > \$log_ppc 2>&1 &
39 echo Building: arm multi_v7_defconfig
40 d=../arm_multi_v7_defconfig
41 [ -d \$d ] || mkdir \$d || exit 1
43 cross -n -N -a arm -c $gcc_version O=\$d multi_v7_defconfig || exit 1
44 /usr/bin/time cross -n -N -a arm -c $gcc_version O=\$d -j$j_factor -s > \$log_arm 2>&1 &
50 if [ \$rc -ne 0 ]; then
51 echo "ERROR: ARM build failed"
64 if [ \$rc -ne 0 ]; then
65 echo "ERROR: powerpc build failed"
70 echo "powerpc build OK"
77 if [ \$rc -ne 0 ]; then
78 echo "ERROR: x86 build failed"