9 tools_dir=$(cd $(dirname "$0"); pwd)
10 . "$tools_dir/common.sh"
14 bparent=$(dirname "$build_dir")
16 line="$(tail -n 1 $SHA1_FILE)"
18 # strip everything after the first tab character
21 [ "$tree" = "$stree" ] || {
22 echo "That is not the last tree merged ($tree v $stree)" 1>&2
28 obdir="$bparent/old/$tree"
32 cmd="ssh root@$build_host unshare -n su $(id -u -n)"
36 echo Building on \$(hostname)
38 echo \$PATH | grep -q "\$HOME/bin" || export PATH="\$HOME/bin:\$PATH"
41 cd "$build_dir" || exit 1
43 export CCACHE_DIR="$bparent/.ccache"
44 export TMPDIR="$bparent/tmp"
46 git reset --hard next || exit 1
47 touch .scmversion || exit 1
49 [ -d "$obdir" ] || mkdir -p "$obdir" || exit 1
56 sep='======================================================================'
59 echo " \$arch \$conf build OK - log follows"
62 $tools_dir/sanitise_log \$log >\$log.san
65 if [ -f $obdir/\$b ]; then
66 if [ \$(wc -l <$obdir/\$b) -lt \$(grep -v -x -F -f $bparent/log-ignore <\$log | wc -l) ]; then
68 echo " log \$b increased number of lines"
70 pushover "linux-next log got bigger"
71 diff -u $obdir/\$b \$log 2>&1 | less
77 echo Building: x86_64 allmodconfig
78 d="$bparent/x86_64_allmodconfig"
79 [ -d \$d ] || mkdir \$d || exit 1
82 echo CONFIG_BUILD_DOCSRC=n >\$e || exit 1
83 echo CONFIG_MODULES=y >>\$e || exit 1
84 KCONFIG_ALLCONFIG=\$e cross -n -N -a x86_64 -c "$gcc_version" O=\$d -s allmodconfig || exit 1
85 echo "Forking x86 build ..."
86 /usr/bin/time cross -n -N -a x86_64 -c "$gcc_version" O=\$d -j"$j_factor" -s > \$log_x86 2>&1 &
89 echo Building: powerpc ppc64_defconfig
90 d="$bparent/powerpc_ppc64_defconfig"
91 [ -d \$d ] || mkdir \$d || exit 1
93 cross -n -N -a powerpc64 -k powerpc -c "$gcc_ppc_version" O=\$d -s ppc64_defconfig || exit 1
94 echo "Forking powerpc build ..."
95 /usr/bin/time cross -n -N -a powerpc64 -k powerpc -c "$gcc_ppc_version" O=\$d -j"$j_factor" -s > \$log_ppc 2>&1 &
98 echo Building: arm multi_v7_defconfig
99 d="$bparent/arm_multi_v7_defconfig"
100 [ -d \$d ] || mkdir \$d || exit 1
102 cross -n -N -a arm -c "$gcc_version" O=\$d -s multi_v7_defconfig || exit 1
103 echo "Forking arm build ..."
104 /usr/bin/time cross -n -N -a arm -c "$gcc_version" O=\$d -j"$j_factor" -s > \$log_arm 2>&1 &
109 [ -d \$d ] || mkdir \$d || exit 1
111 echo "Forking perf build ..."
112 /usr/bin/time make -s -C tools/perf JOBS="$j_factor" O=\$d > \$log_perf 2>&1 &
118 if [ \$rc -ne 0 ]; then
119 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
120 echo "ERROR: perf build failed - log follows"
121 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
130 show_log native perf \$log_perf
136 if [ \$rc -ne 0 ]; then
137 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
138 echo "ERROR: arm multi_v7_defconfig build failed - log follows"
139 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
147 show_log arm multi_v7_defconfig \$log_arm
153 if [ \$rc -ne 0 ]; then
154 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
155 echo "ERROR: powerpc ppc64_defconfig build failed - log follows"
156 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
163 show_log powerpc ppc64_defconfig \$log_ppc
169 if [ \$rc -ne 0 ]; then
170 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
171 echo "ERROR: x86_64 allmodconfig build failed - log follows"
172 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
177 show_log x86_64 allmodconfig \$log_x86