From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xenproject.org
Cc: Juergen Gross <jgross@suse.com>,
wei.liu2@citrix.com, ian.jackson@eu.citrix.com,
samuel.thibault@ens-lyon.org
Subject: [PATCH v2 3/4] tools: use a dedicated build directory for qemu
Date: Thu, 2 Mar 2017 06:13:17 +0100 [thread overview]
Message-ID: <20170302051318.12288-4-jgross@suse.com> (raw)
In-Reply-To: <20170302051318.12288-1-jgross@suse.com>
Instead of using the downloaded git tree as target directory for the
qemu build create a dedicated directory for that purpose.
This way it is possible to use the same source directory of qemu to
configure and build qemu upstream in a stubdom environment in future.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
.gitignore | 1 +
tools/Makefile | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index 015a189..443b12a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -207,6 +207,7 @@ tools/misc/xenlockprof
tools/misc/lowmemd
tools/misc/xencov
tools/pkg-config/*
+tools/qemu-xen-build
tools/xentrace/xenalyze
tools/pygrub/build/*
tools/python/build/*
diff --git a/tools/Makefile b/tools/Makefile
index 9548ab4..99080ab 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -116,7 +116,7 @@ clean: subdirs-clean
.PHONY: distclean
distclean: subdirs-distclean clean
rm -rf qemu-xen-traditional-dir qemu-xen-traditional-dir-remote
- rm -rf qemu-xen-dir qemu-xen-dir-remote
+ rm -rf qemu-xen-dir qemu-xen-dir-remote qemu-xen-build
rm -rf ../config/Tools.mk config.h config.log config.status \
config.cache autom4te.cache
@@ -244,9 +244,10 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
if test -d $(QEMU_UPSTREAM_LOC) ; then \
source=$(QEMU_UPSTREAM_LOC); \
else \
- source=.; \
+ source=$(XEN_ROOT)/tools/qemu-xen-dir; \
fi; \
- cd qemu-xen-dir; \
+ mkdir -p qemu-xen-build; \
+ cd qemu-xen-build; \
if $$source/scripts/tracetool.py --check-backend --backend log ; then \
enable_trace_backend='--enable-trace-backend=log'; \
elif $$source/scripts/tracetool.py --check-backend --backend stderr ; then \
@@ -299,12 +300,12 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
$(MAKE) all
subdir-install-qemu-xen-dir: subdir-all-qemu-xen-dir
- cd qemu-xen-dir; \
+ cd qemu-xen-build; \
$(MAKE) install
subdir-clean-qemu-xen-dir:
- set -e; if test -d qemu-xen-dir/.; then \
- $(MAKE) -C qemu-xen-dir clean; \
+ set -e; if test -d qemu-xen-build/.; then \
+ $(MAKE) -C qemu-xen-build clean; \
fi
subdir-clean-debugger/gdbsx subdir-distclean-debugger/gdbsx: .phony
--
2.10.2
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-03-02 5:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-02 5:13 [PATCH v2 0/4] build enhancements related to qemu Juergen Gross
2017-03-02 5:13 ` [PATCH v2 1/4] stubdom: set xen interface version for stubdom apps using xenctrl.h Juergen Gross
2017-03-02 11:42 ` Ian Jackson
2017-03-02 5:13 ` [PATCH v2 2/4] tools: add pkg-config file for libxc Juergen Gross
2017-03-02 11:42 ` Ian Jackson
2017-03-02 12:29 ` Wei Liu
2017-03-02 12:35 ` Juergen Gross
2017-03-02 12:37 ` Wei Liu
2017-03-02 5:13 ` Juergen Gross [this message]
2017-03-02 5:13 ` [PATCH v2 4/4] tools: set pkg-config path when configuring qemu Juergen Gross
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=20170302051318.12288-4-jgross@suse.com \
--to=jgross@suse.com \
--cc=ian.jackson@eu.citrix.com \
--cc=samuel.thibault@ens-lyon.org \
--cc=wei.liu2@citrix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.