summaryrefslogtreecommitdiffstats
path: root/package/qemu
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2012-12-16 06:52:37 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-16 20:13:23 +0100
commit5c8b0e6166ea5c8c001485bc6fbf1d146e55c29b (patch)
tree3ddf86d45a11c5c608d8279b0df20d3561a03a59 /package/qemu
parenta35555b33108e480ce7dae852d25e7eb634ad09a (diff)
downloadbuildroot-novena-5c8b0e6166ea5c8c001485bc6fbf1d146e55c29b.tar.gz
buildroot-novena-5c8b0e6166ea5c8c001485bc6fbf1d146e55c29b.zip
package/qemu: use autotools-package infrastructure
Turns out that, with a little bit of tweaking, we can use the autotools-package infrastructure to build QEMU. That's better than defining all the _CMDS and using the generic-package infra. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Francois Perrad <fperrad@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/qemu')
-rw-r--r--package/qemu/qemu.mk17
1 files changed, 4 insertions, 13 deletions
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 315886f39..bd4248166 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -62,6 +62,9 @@ ifeq ($(HOST_QEMU_ARCH),powerpc)
endif
HOST_QEMU_TARGETS=$(HOST_QEMU_ARCH)-linux-user
+# Note: although QEMU has a ./configure script, it is not a real autotools
+# package, and ./configure chokes on options such as --host or --target.
+# So, provide out own _CONFIGURE_CMDS to override the defaults.
define HOST_QEMU_CONFIGURE_CMDS
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure \
--target-list="$(HOST_QEMU_TARGETS)" \
@@ -74,19 +77,7 @@ define HOST_QEMU_CONFIGURE_CMDS
)
endef
-define HOST_QEMU_BUILD_CMDS
- $(MAKE) -C $(@D) all
-endef
-
-define HOST_QEMU_INSTALL_CMDS
- $(MAKE) -C $(@D) install
-endef
-
-define HOST_QEMU_CLEAN_CMDS
- $(MAKE) -C $(@D) clean
-endef
-
-$(eval $(host-generic-package))
+$(eval $(host-autotools-package))
# variable used by other packages
QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)