#!/bin/sh
+tree=
+if [ "$1" ]; then
+ tree=$1
+ shift
+fi
+
tools_dir=$(dirname "$0")
. "$tools_dir/common.sh"
bparent=$(dirname "$build_dir")
+line="$(tail -n 1 $SHA1_FILE)"
+
+# strip everything after the first tab character
+stree=${line%% *}
+if [ "$tree" ]; then
+ [ "$tree" = "$stree" ] || {
+ echo "That is not the last tree merged ($tree v $stree)" 1>&2
+ exit 1
+ }
+else
+ tree="$stree"
+fi
+obdir="$bparent/old/$tree"
+
cmd="/bin/sh"
[ "$build_host" ] &&
cmd="ssh root@$build_host unshare -n su $(id -u -n)"
git reset --hard next || exit 1
touch .scmversion || exit 1
+ [ -d "$obdir" ] || mkdir -p "$obdir" || exit 1
+
echo Building: x86_64 allmodconfig
d="$bparent/x86_64_allmodconfig"
[ -d \$d ] || mkdir \$d || exit 1
cat \$log_x86
fi
+ for i in \$log_x86 \$log_ppc \$log_arm \$log_perf; do
+ b=\$(basename \$i)
+ if [ -f $obdir/\$b ]; then
+ if [ \$(wc -l <$obdir/\$b) -ne \$(wc -l <\$i) ]; then
+ echo "=================================================="
+ echo " log \$i changed number of lines"
+ echo "=================================================="
+ diff -u $obdir/\$b \$i 2>&1 | less
+ fi
+ fi
+ mv \$i $obdir/\$b
+ done
+
rm .scmversion
EOF
bash -i || exit
}
}
- "$bin_dir/do_build" || {
+ "$bin_dir/do_build" "$tree" || {
echo Build failed 1>&2
notify-send -t 0 -u critical "linux-next build failed for $tree!"
pushover "linux-next build failed for $tree!"
echo git push failed 1>&2
bash -i || exit
}
- "$bin_dir/do_build" || {
+ "$bin_dir/do_build" akpm-current || {
echo Build failed 1>&2
bash -i || exit
}
echo git push failed 1>&2
bash -i || exit
}
- "$bin_dir/do_build" || {
+ "$bin_dir/do_build" akpm || {
echo Build failed 1>&2
bash -i || exit
}