]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
automation: make clean between builds
authorWei Liu <wei.liu2@citrix.com>
Wed, 21 Nov 2018 16:28:10 +0000 (16:28 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 21 Nov 2018 18:34:27 +0000 (18:34 +0000)
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 <wei.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/scripts/build

index e3672a3626ac22e892f31b9140a6a9892ba35fce..797ff6d1b28874990101110d73daae7a80fb73d0 100755 (executable)
@@ -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