Skip to contentSkip to conversation

qemu: remove host-python dependency.

PATCH New aduskett at gmail.com 3 participants 3 messages Feb 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu: remove host-python dependency.

From: Adam Duskett <[email protected]>

Now that BuildRoot requires python >= 2.7, qemu no longer needs a host-python, as it does not use any external Python modules to build.

---
 package/qemu/qemu.mk | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
package/qemu/qemu.mk +3 -6
index 3f51e88e1c..30cd5972ef 100644
@@ -16,7 +16,7 @@ QEMU_LICENSE_FILES = COPYING COPYING.LIB
 #-------------------------------------------------------------
 # Target-qemu
 
-QEMU_DEPENDENCIES = host-pkgconf host-python libglib2 zlib pixman
+QEMU_DEPENDENCIES = host-pkgconf libglib2 zlib pixman
 
 # Need the LIBS variable because librt and libm are
 # not automatically pulled. :-(
@@ -24,9 +24,7 @@ QEMU_LIBS = -lrt -lm
 
 QEMU_OPTS =
 
-QEMU_VARS = \
-	LIBTOOL=$(HOST_DIR)/bin/libtool \
-	PYTHON=$(HOST_DIR)/bin/python2
+QEMU_VARS = LIBTOOL=$(HOST_DIR)/bin/libtool
 
 # If we want to specify only a subset of targets, we must still enable all
 # of them, so that QEMU properly builds its list of default targets, from
@@ -156,7 +154,7 @@ $(eval $(generic-package))
 #-------------------------------------------------------------
 # Host-qemu
 
-HOST_QEMU_DEPENDENCIES = host-pkgconf host-python host-zlib host-libglib2 host-pixman
+HOST_QEMU_DEPENDENCIES = host-pkgconf host-zlib host-libglib2 host-pixman
 
 #       BR ARCH         qemu
 #       -------         ----
@@ -273,7 +271,6 @@ define HOST_QEMU_CONFIGURE_CMDS
 		--interp-prefix=$(STAGING_DIR) \
 		--cc="$(HOSTCC)" \
 		--host-cc="$(HOSTCC)" \
-		--python=$(HOST_DIR)/bin/python2 \
 		--extra-cflags="$(HOST_CFLAGS)" \
 		--extra-ldflags="$(HOST_LDFLAGS)" \
 		$(HOST_QEMU_OPTS)
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 qemu: remove host-python dependency.

Hello,

Please use a prefix of "package/qemu:".

Quoted 1 line · On Mon, 4 Feb 2019 07:43:23 -0500 aduskett at gmail.com wrote:

Now that BuildRoot requires python >= 2.7, qemu no longer needs a host-python,

We never use BuildRoot, but either Buildroot or buildroot. Preferably Buildroot in such situations.

Applied with those two minor details fixed. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com