[pve-devel] [PATCH qemu 1/3] debian/rules: added placeholder for adding additional targets

Geert Stappers stappers at stappers.it
Mon Feb 19 20:53:11 CET 2018


Without this "placeholder" is it unclear how to add additional targets.
No real change, just preparing for change.

Signed-off-by: Geert Stappers <stappers at stappers.it>
---
 debian/rules |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 9396228..0836f32 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,20 @@ DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 ARCH ?= $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
 
+TRGTS  =
+# empty target-list defaults to building all targets
+TRGTS +=--target-list=\"
+TRGTS +=$(ARCH)-softmmu
+# for build host
+# next placeholder for additional targets
+#TRGTS +=arm-softmmu
+#TRGTS +=aarch64-softmmu
+#TRGTS +=mips-softmmu
+#TRGTS +=mipsel-softmmu
+TRGTS +=\"
+TRGTLST =$(shell echo $(TRGTS))
+# to get rid of the backslashes
+
 PACKAGE=pve-qemu-kvm
 destdir := $(CURDIR)/debian/$(PACKAGE)
 
@@ -37,7 +51,7 @@ config.status: configure
 	# Add here commands to configure the package.
 
 	# guest-agent is only required for guest systems
-	./configure --with-confsuffix="/kvm" --target-list=$(ARCH)-softmmu \
+	./configure --with-confsuffix="/kvm" $(TRGTLST) \
 	--prefix=/usr --datadir=/usr/share \
 	--docdir=/usr/share/doc/pve-qemu-kvm \
 	--sysconfdir=/etc --localstatedir=/var --disable-xen --enable-gnutls \
-- 
1.7.10.4




More information about the pve-devel mailing list