Skip to contentSkip to conversation

qemu: needs pkg-config

PATCH New Thomas Petazzoni 2 participants 5 messages Nov 4, 2012 – Nov 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 qemu: needs pkg-config

Fixes

http://autobuild.buildroot.org/results/ccb7d6da503a81015275ff1e4ba9a564203932ec/build-end.log

Even though the build failure happens on host-qemu, adding host-pkgconf to QEMU_DEPENDENCIES seems like the right thing to do since that this dependency will also be needed for the target qemu once it gets included.

---
 package/qemu/qemu.mk |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/qemu/qemu.mk +3 -1
index de72e04..c2c4103 100644
@@ -8,6 +8,8 @@ QEMU_VERSION = 1.2.0
 QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2
 QEMU_SITE = http://wiki.qemu.org/download
 
+QEMU_DEPENDENCIES = host-pkgconf
+
 #       BR ARCH         qemu
 #       -------         ----
 #       arm             arm
@@ -53,7 +55,7 @@ endif
 HOST_QEMU_TARGETS=$(QEMU_ARCH)-linux-user
 
 define HOST_QEMU_CONFIGURE_CMDS
-	(cd $(@D); ./configure                          \
+	(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure   \
 		--target-list="$(HOST_QEMU_TARGETS)"    \
 		--prefix="$(HOST_DIR)/usr"              \
 		--interp-prefix=$(STAGING_DIR)          \
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/3 qemu: needs pkg-config

package/qemu/qemu.mk endif · line 61

Quoted 6 lines · Thomas Petazzoni

define HOST_QEMU_CONFIGURE_CMDS

package/qemu/qemu.mk +1 -1
-	(cd $(@D); ./configure                          \
+	(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure   \
 		--target-list="$(HOST_QEMU_TARGETS)"    \
 		--prefix="$(HOST_DIR)/usr"              \
 		--interp-prefix=$(STAGING_DIR)          \

I should have explained this change in the commit log: it is needed so that $(HOST_DIR)/usr/bin/ is in the PATH, which allows Qemu's configure script to find our pkg-config.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 2/3 qemu: needs zlib

In reply to Thomas Petazzoni

Build error message is:
Error: zlib check failed
Make sure to have the zlib libs and headers installed.

---
 package/qemu/qemu.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/qemu/qemu.mk +1 -1
index c2c4103..67d5ab2 100644
@@ -8,7 +8,7 @@ QEMU_VERSION = 1.2.0
 QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2
 QEMU_SITE = http://wiki.qemu.org/download
 
-QEMU_DEPENDENCIES = host-pkgconf
+QEMU_DEPENDENCIES = host-pkgconf zlib
 
 #       BR ARCH         qemu
 #       -------         ----
Signature · 1 line
1.7.9.5
#3 lore raw

PATCH 3/3 qemu: needs libglib2

In reply to Thomas Petazzoni

Build error message is:
glib-2.12 required to compile QEMU

---
 package/qemu/qemu.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/qemu/qemu.mk +1 -1
index 67d5ab2..d40d7c9 100644
@@ -8,7 +8,7 @@ QEMU_VERSION = 1.2.0
 QEMU_SOURCE = qemu-$(QEMU_VERSION).tar.bz2
 QEMU_SITE = http://wiki.qemu.org/download
 
-QEMU_DEPENDENCIES = host-pkgconf zlib
+QEMU_DEPENDENCIES = host-pkgconf zlib libglib2
 
 #       BR ARCH         qemu
 #       -------         ----
Signature · 1 line
1.7.9.5