[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] automation: Build Xen according to the type of the job



commit ef9cc669ba157f9e71fd79722ee43892e7304604
Author:     Michal Orzel <michal.orzel@xxxxxxx>
AuthorDate: Fri Oct 21 15:22:38 2022 +0200
Commit:     Stefano Stabellini <stefano.stabellini@xxxxxxx>
CommitDate: Tue Oct 25 15:41:30 2022 -0700

    automation: Build Xen according to the type of the job
    
    All the build jobs exist in two flavors: debug and non-debug, where the
    former sets 'debug' variable to 'y' and the latter to 'n'. This variable
    is only being recognized by the toolstack, because Xen requires
    enabling/disabling debug build via e.g. menuconfig/config file.
    As a corollary, we end up building/testing Xen with CONFIG_DEBUG always
    set to a default value ('y' for unstable and 'n' for stable branches),
    regardless of the type of the build job.
    
    Fix this behavior by setting CONFIG_DEBUG according to the 'debug' value.
    
    Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
---
 automation/scripts/build | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/automation/scripts/build b/automation/scripts/build
index 8c0882f3aa..a593419063 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -21,12 +21,13 @@ if [[ "${RANDCONFIG}" == "y" ]]; then
     make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config 
randconfig
     hypervisor_only="y"
 else
+    echo "CONFIG_DEBUG=${debug}" > xen/.config
+
     if [[ -n "${EXTRA_XEN_CONFIG}" ]]; then
-        echo "${EXTRA_XEN_CONFIG}" > xen/.config
-        make -j$(nproc) -C xen olddefconfig
-    else
-        make -j$(nproc) -C xen defconfig
+        echo "${EXTRA_XEN_CONFIG}" >> xen/.config
     fi
+
+    make -j$(nproc) -C xen olddefconfig
 fi
 
 # Save the config file before building because build failure causes the script
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.