|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCHi v7] Autoconf: add variable for pass arbitrary options to qemu upstream
Added configure options for pass arbitrary configure options to qemu
upstream build.
Usage example:
./configure
--with-extra-qemuu-configure-args="--enable-spice --enable-usb-redir"
Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxx>
---
Changes in v7:
- Changed from AC_ARG_VAR to AC_ARG_WITH and other small changes following
Ian Campbell advices
Changes in v6:
- redid the patch similar to v1 adding variable for pass arbitrary
options to qemu upstream instead specific spice and usbredir ones
---
config/Tools.mk.in | 1 +
tools/Makefile | 1 +
tools/configure | 18 ++++++++++++++++++
tools/configure.ac | 10 ++++++++++
4 files changed, 30 insertions(+)
diff --git a/config/Tools.mk.in b/config/Tools.mk.in
index 18f3b8a..84b2612 100644
--- a/config/Tools.mk.in
+++ b/config/Tools.mk.in
@@ -55,6 +55,7 @@ CONFIG_QEMU_TRAD := @qemu_traditional@
CONFIG_QEMU_XEN := @qemu_xen@
CONFIG_BLKTAP1 := @blktap1@
CONFIG_VTPM := @vtpm@
+CONFIG_QEMUU_EXTRA_ARGS:= @EXTRA_QEMUU_CONFIGURE_ARGS@
#System options
ZLIB := @zlib@
diff --git a/tools/Makefile b/tools/Makefile
index 3675515..992fe3e 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -203,6 +203,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
--disable-docs \
--disable-guest-agent \
--python=$(PYTHON) \
+ $(CONFIG_QEMUU_EXTRA_ARGS) \
$(IOEMU_CONFIGURE_CROSS); \
$(MAKE) all
diff --git a/tools/configure b/tools/configure
index e1eeff4..d4a7919 100755
--- a/tools/configure
+++ b/tools/configure
@@ -683,6 +683,7 @@ APPEND_LIB
APPEND_INCLUDES
PREPEND_LIB
PREPEND_INCLUDES
+EXTRA_QEMUU_CONFIGURE_ARGS
ovmf_path
seabios_path
qemu_xen
@@ -767,6 +768,7 @@ enable_qemu_traditional
with_system_qemu
with_system_seabios
with_system_ovmf
+with_extra_qemuu_configure_args
'
ac_precious_vars='build_alias
host_alias
@@ -1440,6 +1442,9 @@ Optional Packages:
--with-system-ovmf[=PATH]
Use system supplied OVMF PATH instead of building
and installing our own version
+ --with-extra-qemuu-configure-args[="--ARG1 ..."]
+ List of additional configure options for upstream
+ qemu
Some influential environment variables:
CC C compiler command
@@ -3825,6 +3830,19 @@ fi
+# Check whether --with-extra-qemuu-configure-args was given.
+if test "${with_extra_qemuu_configure_args+set}" = set; then :
+ withval=$with_extra_qemuu_configure_args;
+ case $withval in
+ no) EXTRA_QEMUU_CONFIGURE_ARGS= ;;
+ *) EXTRA_QEMUU_CONFIGURE_ARGS=$withval ;;
+ esac
+
+fi
+
+
+
+
diff --git a/tools/configure.ac b/tools/configure.ac
index 00fb47b..25d7ca3 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -118,6 +118,16 @@ AC_ARG_WITH([system-ovmf],
],[])
AC_SUBST(ovmf_path)
+AC_ARG_WITH([extra-qemuu-configure-args],
+ AS_HELP_STRING([--with-extra-qemuu-configure-args@<:@="--ARG1 ..."@:>@],
+ [List of additional configure options for upstream qemu]),[
+ case $withval in
+ no) EXTRA_QEMUU_CONFIGURE_ARGS= ;;
+ *) EXTRA_QEMUU_CONFIGURE_ARGS=$withval ;;
+ esac
+],[])
+AC_SUBST(EXTRA_QEMUU_CONFIGURE_ARGS)
+
AC_ARG_VAR([PREPEND_INCLUDES],
[List of include folders to prepend to CFLAGS (without -I)])
AC_ARG_VAR([PREPEND_LIB],
--
1.7.9.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |