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
11 echo Building on \$(hostname)
13 echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
18 export CCACHE_DIR="${build_dir%/*}/.ccache"
19 export TMPDIR="${build_dir%/*}/tmp"
24 echo Building: x86_64 allmodconfig
25 d=../x86_64_allmodconfig
26 [ -d \$d ] || mkdir \$d
29 echo CONFIG_BUILD_DOCSRC=n >\$e
30 KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c $gcc_version O=\$d allyesconfig
31 /usr/bin/time cross -n -N -a x86_64 -c $gcc_version O=\$d -j$j_factor -s > \$log_x86 2>&1 &
33 echo Building: powerpc ppc64_defconfig
34 d=../powerpc_ppc64_defconfig
35 [ -d \$d ] || mkdir \$d
37 cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d ppc64_defconfig
38 /usr/bin/time cross -n -N -a powerpc64 -k powerpc -c $gcc_version O=\$d -j$j_factor -s > \$log_ppc 2>&1 &
40 echo Building: arm multi_v7_defconfig
41 d=../arm_multi_v7_defconfig
42 [ -d \$d ] || mkdir \$d
44 cross -n -N -a arm -c $gcc_version O=\$d multi_v7_defconfig
45 /usr/bin/time cross -n -N -a arm -c $gcc_version O=\$d -j$j_factor -s > \$log_arm 2>&1 &
51 if [ \$rc -ne 0 ]; then
52 echo "ERROR: ARM build failed"
65 if [ \$rc -ne 0 ]; then
66 echo "ERROR: powerpc build failed"
71 echo "powerpc build OK"
78 if [ \$rc -ne 0 ]; then
79 echo "ERROR: x86 build failed"