From patchwork Mon Dec 10 23:44:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 205059 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 817B02C0323 for ; Tue, 11 Dec 2012 10:46:52 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5FBA189D86; Mon, 10 Dec 2012 23:46:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0gM5HF4Krata; Mon, 10 Dec 2012 23:46:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AAC418A32D; Mon, 10 Dec 2012 23:45:51 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2AAE98F74B for ; Mon, 10 Dec 2012 23:45:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B8FFC89D86 for ; Mon, 10 Dec 2012 23:45:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4z4TE3Mom5iC for ; Mon, 10 Dec 2012 23:45:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1962889DDE for ; Mon, 10 Dec 2012 23:45:24 +0000 (UTC) Received: by mail-wg0-f43.google.com with SMTP id e12so1703600wge.10 for ; Mon, 10 Dec 2012 15:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=4baqd4pEGMciSpbUBkh9A1t1qgGrvpk68N8woEIwfe0=; b=VDsbHZr6ZSgRWbdq7knhp44WLnuYUhaIi7LgG4JnUCxz0WeBiHL1NwTpzKU4dSNHua MK6+m3bMYBCrccIPSHM2TEhKQSMNSfa1Aulc+n4lr8nnfoq4rWNu3qYbB7YHJ2yfJRJ9 m6CbSUeIgayvZ8bNMfH0ct+01P1qE+fc79ZEsA6mMhg9Gpue0BdBK8QMIAlIdvwwbBn/ PyhMtEHxpe8RHRgnuhbRxRuhWfdJLiD8vZiJKcabMFfAEjitdQtMR16MpEokbEnc+6WZ VDYYXRB8TA4NWAq2bsftlAlEu/gsV7/RZq/YuHIpejo5I7n0T5v8t1WCr6/mIrrVEsQh kcIQ== Received: by 10.194.110.231 with SMTP id id7mr238848wjb.6.1355183124823; Mon, 10 Dec 2012 15:45:24 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-41-119.w90-32.abo.wanadoo.fr. [90.32.24.119]) by mx.google.com with ESMTPS id bz12sm13895257wib.5.2012.12.10.15.45.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 15:45:24 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Tue, 11 Dec 2012 00:44:24 +0100 Message-Id: <1355183112-10735-5-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1355183112-10735-1-git-send-email-yann.morin.1998@free.fr> References: <1355183112-10735-1-git-send-email-yann.morin.1998@free.fr> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 04/52] package/qemu: use autotools-package infrastructure X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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)