From patchwork Mon Dec 10 23:44:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04/52] package/qemu: use autotools-package infrastructure Date: Mon, 10 Dec 2012 13:44:24 -0000 From: Yann E. MORIN X-Patchwork-Id: 205059 Message-Id: <1355183112-10735-5-git-send-email-yann.morin.1998@free.fr> To: buildroot@busybox.net Cc: "Yann E. MORIN" 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" Cc: Francois Perrad --- package/qemu/qemu.mk | 17 ++++------------- 1 files changed, 4 insertions(+), 13 deletions(-) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 2c0dbde..91d0eb8 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-$(QEMU_ARCH)