]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: QEMU build options.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 10 Feb 2015 16:08:54 +0000 (11:08 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 10 Feb 2015 16:36:18 +0000 (11:36 -0500)
For Xen 4.4 and later we want to limit the amount of pieces of
code that qemu-xen is built with. It pulls in libSDL, libgtk, etc.

We also want to disable BLKTAP1 as we do not need it.

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

index d3df89e8bec132e8b69d4c9450ba477a92d47a3a..fc0695816bb139e58ed813008b83245d9a781cff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -148,7 +148,7 @@ linux-distclean: linux-clean
 
 XEN_DISTDIR = xen/dist/install
 
-#XEN_MINOR = $(shell cat xen/xen/Makefile | grep XEN_SUBVERSION | head -1 |sed 's/.*= //g')
+XEN_MINOR = $(shell cat xen/xen/Makefile | grep XEN_SUBVERSION | head -1 |sed 's/.*= //g')
 
 xen-DISTRIB_TARGET = dist/common/xen.gz
 
@@ -179,7 +179,11 @@ xen-tools:
        if [ -e xen/tools/firmware/seabios-dir ]; then \
                $(MAKE) -C xen/tools/firmware/seabios-dir defconfig; \
        fi
-       $(MAKE) -C xen IOEMU_CONFIGURE_CROSS="--disable-curses --disable-slirp --disable-sdl --disable-kvm --disable-vnc-tls" tools -j$$(($(NCPUS) * 2))
+       @if [ $(XEN_MINOR) -lt 4 ]; then \
+               $(MAKE) -C xen IOEMU_CONFIGURE_CROSS="--disable-curses --disable-slirp --disable-sdl --disable-kvm --disable-vnc-tls" tools -j$$(($(NCPUS) * 2)) \
++       ; else \
+               $(MAKE) -C xen CONFIG_QEMUU_EXTRA_ARGS="--disable-sdl --disable-gtk --disable-spice" CONFIG_BLKTAP1=n IOEMU_CONFIGURE_CROSS="--disable-curses --disable-slirp --disable-sdl --disable-kvm --disable-vnc-tls" tools -j$$(($(NCPUS) * 2)) \
+       ; fi
 
 ifeq ($(NOXEN),1)
 .PHONY: xen-dist