]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
automation: build some customised configs
authorWei Liu <wei.liu2@citrix.com>
Fri, 2 Nov 2018 17:49:47 +0000 (17:49 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 8 Nov 2018 16:40:20 +0000 (16:40 +0000)
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 <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/configs/x86/hvm_only_config [new file with mode: 0644]
automation/configs/x86/no_hvm_pv_config [new file with mode: 0644]
automation/configs/x86/pv_only_config [new file with mode: 0644]
automation/scripts/build

diff --git a/automation/configs/x86/hvm_only_config b/automation/configs/x86/hvm_only_config
new file mode 100644 (file)
index 0000000..9efbddd
--- /dev/null
@@ -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 (file)
index 0000000..0bf6a8e
--- /dev/null
@@ -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 (file)
index 0000000..e9d8b4a
--- /dev/null
@@ -0,0 +1,3 @@
+CONFIG_PV=y
+# CONFIG_HVM is not set
+# CONFIG_DEBUG is not set
index c463b060d4e822ebcb4a6f7344ce5422dbc27bdd..ad848dfd003da1289097013b6c98231efba6985a 100755 (executable)
@@ -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