]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: Deal with "tools: Refactor "xentoollog" into its own library"
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jan 2016 14:56:32 +0000 (09:56 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jan 2016 15:04:14 +0000 (10:04 -0500)
In Xen 4.7 commit 5d3dc8671521ea4a4f753e77d3e7fb3a3a6f5f80
("tools: Refactor "xentoollog" into its own library") puts an
requirement on Python code to compile with:

-Wl,-rpath-link="+PATH_LIBXENTOOLLOG"

Which ends up with:

error: -Wl,-rpath-link=../../tools/libs/toollog: No such file or directory

We can't over-write the PATH_LIBXENTOOLLOG .. and on further
thought - there is absolutly no need for us to even build Python
code as we do not need Xend.

As such if we detect Xen 4.7 or later we skip this part.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index de21cbee063cc2ff7ee7f8d99ba2b171f651112a..12ce7b2b1f9b7f321df56299da5525d8c5c2d584 100644 (file)
@@ -813,7 +813,9 @@ perl-core:
 
 .PHONY: xen-python-bytecode
 xen-python-bytecode: python-install
-       make -j$$(($(NCPUS) * 2)) -C ../xen/tools/python DESTDIR=$(CURDIR)/userspace install
+       if [ $(XEN_VERSION) -lt 7 ]; then \
+               make -j$$(($(NCPUS) * 2)) -C ../xen/tools/python DESTDIR=$(CURDIR)/userspace install; \
+       fi
 
 .PHONY: yajl-depend
 yajl-depend: