xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Doug Goldstein <cardoe@cardoe.com>, Wei Liu <wei.liu2@citrix.com>,
	Jan Beulich <jbeulich@suse.com>
Subject: [PATCH] automation: build some customised configs
Date: Fri, 2 Nov 2018 19:33:28 +0000	[thread overview]
Message-ID: <20181102193328.1352-1-wei.liu2@citrix.com> (raw)

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>
---
Cc: Jan Beulich <jbeulich@suse.com>

Jan, feel free to put configs here.
---
 automation/configs/x86/hvm_only_config  |  2 ++
 automation/configs/x86/no_hvm_pv_config |  2 ++
 automation/configs/x86/pv_only_config   |  2 ++
 automation/scripts/build                | 15 +++++++++++++++
 4 files changed, 21 insertions(+)
 create mode 100644 automation/configs/x86/hvm_only_config
 create mode 100644 automation/configs/x86/no_hvm_pv_config
 create mode 100644 automation/configs/x86/pv_only_config

diff --git a/automation/configs/x86/hvm_only_config b/automation/configs/x86/hvm_only_config
new file mode 100644
index 0000000000..e82cc04d69
--- /dev/null
+++ b/automation/configs/x86/hvm_only_config
@@ -0,0 +1,2 @@
+CONFIG_HVM=y
+# CONFIG_PV 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..ed853cd358
--- /dev/null
+++ b/automation/configs/x86/no_hvm_pv_config
@@ -0,0 +1,2 @@
+# CONFIG_HVM is not set
+# CONFIG_PV 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..aca77b64d4
--- /dev/null
+++ b/automation/configs/x86/pv_only_config
@@ -0,0 +1,2 @@
+CONFIG_PV=y
+# CONFIG_HVM is not set
diff --git a/automation/scripts/build b/automation/scripts/build
index c463b060d4..0cde1c7794 100755
--- a/automation/scripts/build
+++ b/automation/scripts/build
@@ -31,3 +31,18 @@ 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
+
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

             reply	other threads:[~2018-11-02 19:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-02 19:33 Wei Liu [this message]
2018-11-05  9:06 ` [PATCH] automation: build some customised configs Jan Beulich
2018-11-05 10:12   ` Wei Liu
2018-11-05 19:51 ` Doug Goldstein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181102193328.1352-1-wei.liu2@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=jbeulich@suse.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).