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

[Xen-changelog] [xen master] tools: use a dedicated build directory for qemu



commit 938d9e6ca870f5a6fcaf4ca6ef556065b1d57074
Author:     Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Thu Mar 2 06:13:17 2017 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Thu Mar 2 12:23:32 2017 +0000

    tools: use a dedicated build directory for qemu
    
    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@xxxxxxxx>
    Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 .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 5cadb16..32ab94b 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 \
@@ -301,12 +302,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
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

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