From patchwork Sun Dec 16 16:52:37 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: 206684 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 994652C007B for ; Mon, 17 Dec 2012 03:53:05 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 575FFA00F5; Sun, 16 Dec 2012 16:53:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N49z7toJBb7r; Sun, 16 Dec 2012 16:52:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5E0EBA00D3; Sun, 16 Dec 2012 16:52:58 +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 680A98F74B for ; Sun, 16 Dec 2012 16:52:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DBFFE81B94 for ; Sun, 16 Dec 2012 16:52:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eXCb48cE2BQW for ; Sun, 16 Dec 2012 16:52:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id E0F9D8193D for ; Sun, 16 Dec 2012 16:52:50 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hm2so1457439wib.10 for ; Sun, 16 Dec 2012 08:52:49 -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:in-reply-to:references; bh=zNVBTMjelxxP/moKjDjSrFzwFeht79PDBGnXNzMVioQ=; b=qWrAbcGNhebLW19jNUqapsozxAokk4C1s1L+ZJRvGZjXC+fAzh9as8az1z+sNVnBfX P4hYOYIlPS+8et5U/7jg0VKi5QOloCGAXZ1f8zlQLhWtK97ehav9+NyrwQJNGaMQGjt+ z2KwNbON8DfbRH0xigieKzI7ZyvlMUZBar6Vr8/zvGaYUGLZvCixJZdRg8LRlAhAsas8 XX11Ad9wTwriuvTcR7wEK/u4icaDOrt7K5HxkHshJ9N8S/rjYY7aTUD4bpurNu0ohxce JVY2vpINU7z3rP8CxQKkDCL7zxuyodTT578WTlfX1ZZLFDmYPojUZ+PyxDrzO22g9P0h TPbQ== Received: by 10.180.97.137 with SMTP id ea9mr11566455wib.13.1355676769278; Sun, 16 Dec 2012 08:52:49 -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 bd7sm8225346wib.8.2012.12.16.08.52.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Dec 2012 08:52:48 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sun, 16 Dec 2012 17:52:37 +0100 Message-Id: <1e334c1b174c47efef634d823f6a6e8fd903535f.1355676748.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/2] 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 315886f..bd42481 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)