[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 3/4] 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 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@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |