[xen staging] automation: build some customised configs

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] automation: build some customised configs

patchbot
commit 7ef789d79facf8456653933c99b0292cc6f1b68c
Author:     Wei Liu <[hidden email]>
AuthorDate: Fri Nov 2 17:49:47 2018 +0000
Commit:     Wei Liu <[hidden email]>
CommitDate: Thu Nov 8 16:40:20 2018 +0000

    automation: build some customised configs
   
    Introduce a new directory to put in configs we care about. Modify
    build script to build with those configs.
   
    While we only introduce x86 configs initially, provision for non-x86
    configs.
   
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: Jan Beulich <[hidden email]>
    Acked-by: Doug Goldstein <[hidden email]>
---
 automation/configs/x86/hvm_only_config  |  3 +++
 automation/configs/x86/no_hvm_pv_config |  3 +++
 automation/configs/x86/pv_only_config   |  3 +++
 automation/scripts/build                | 14 ++++++++++++++
 4 files changed, 23 insertions(+)

diff --git a/automation/configs/x86/hvm_only_config b/automation/configs/x86/hvm_only_config
new file mode 100644
index 0000000000..9efbddd535
--- /dev/null
+++ b/automation/configs/x86/hvm_only_config
@@ -0,0 +1,3 @@
+CONFIG_HVM=y
+# CONFIG_PV is not set
+# CONFIG_DEBUG is not set
diff --git a/automation/configs/x86/no_hvm_pv_config b/automation/configs/x86/no_hvm_pv_config
new file mode 100644
index 0000000000..0bf6a8e468
--- /dev/null
+++ b/automation/configs/x86/no_hvm_pv_config
@@ -0,0 +1,3 @@
+# CONFIG_HVM is not set
+# CONFIG_PV is not set
+# CONFIG_DEBUG is not set
diff --git a/automation/configs/x86/pv_only_config b/automation/configs/x86/pv_only_config
new file mode 100644
index 0000000000..e9d8b4a7c7
--- /dev/null
+++ b/automation/configs/x86/pv_only_config
@@ -0,0 +1,3 @@
+CONFIG_PV=y
+# CONFIG_HVM is not set
+# CONFIG_DEBUG is not set
diff --git a/automation/scripts/build b/automation/scripts/build
index c463b060d4..ad848dfd00 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -31,3 +31,17 @@ fi
 ./configure "${cfgargs[@]}"
 
 make -j$(nproc) dist
+
+# Build all the configs we care about
+case ${XEN_TARGET_ARCH} in
+    x86_64) arch=x86 ;;
+    *) exit 0 ;;
+esac
+
+cfg_dir="automation/configs/${arch}"
+for cfg in `ls ${cfg_dir}`; do
+    echo "Building $cfg"
+    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
+done
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog