From: Wei Liu Date: Wed, 21 Nov 2018 16:28:10 +0000 (+0000) Subject: automation: make clean between builds X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2860 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=568653e01b84be5ac15fbf949bbcffcd91d6e829;p=xen.git automation: make clean between builds Currently randconfig tests are more likely to fail than to succeed because of a bug in xen's build system: symbols-dummy.o's dependency is wrong, which causes it to not get rebuild between runs, which eventually causes linking to fail. There may also be other corner cases we haven't discovered. The fix is not straightforward. For now, make sure the tree is cleaned properly between builds so we don't see random failures in Gitlab CI. Signed-off-by: Wei Liu Acked-by: Doug Goldstein --- diff --git a/automation/scripts/build b/automation/scripts/build index e3672a3626..797ff6d1b2 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -42,6 +42,7 @@ esac cfg_dir="automation/configs/${arch}" for cfg in `ls ${cfg_dir}`; do echo "Building $cfg" + make -j$(nproc) -C xen clean rm -f xen/.config make -C xen KBUILD_DEFCONFIG=../../../../${cfg_dir}/${cfg} XEN_CONFIG_EXPERT=y defconfig make -j$(nproc) -C xen XEN_CONFIG_EXPERT=y