]> xenbits.xensource.com Git - xen.git/commitdiff
automation: save xen config before building
authorWei Liu <wl@xen.org>
Wed, 5 May 2021 11:45:16 +0000 (11:45 +0000)
committerWei Liu <wl@xen.org>
Wed, 5 May 2021 14:23:01 +0000 (14:23 +0000)
It is reported that failed randconfig runs are missing the config file
which makes debugging impossible. Fix this by moving the line that
copies the config file before the build is executed.

Signed-off-by: Wei Liu <wl@xen.org>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
automation/scripts/build

index eaf70b11d1cb56b868ed09a33c84c1c5c9440276..46b6903d29221488c3ec0b6a3aaab21f0de0e866 100755 (executable)
@@ -16,6 +16,10 @@ else
     make -j$(nproc) -C xen defconfig
 fi
 
+# Save the config file before building because build failure causes the script
+# to exit early -- bash is invoked with -e.
+cp xen/.config xen-config
+
 # arm32 only cross-compiles the hypervisor
 if [[ "${XEN_TARGET_ARCH}" = "arm32" ]]; then
     hypervisor_only="y"
@@ -59,7 +63,6 @@ else
 fi
 
 # Extract artifacts to avoid getting rewritten by customised builds
-cp xen/.config xen-config
 mkdir binaries
 if [[ "${XEN_TARGET_ARCH}" != "x86_32" ]]; then
     cp xen/xen binaries/xen