From patchwork Tue Oct 7 22:38:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 397469 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 C550F14010F for ; Wed, 8 Oct 2014 09:38:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6C51A95A3B; Tue, 7 Oct 2014 22:38:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IK-OO3uN3CHM; Tue, 7 Oct 2014 22:38:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CEB2695A3D; Tue, 7 Oct 2014 22:38:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 66F071C1117 for ; Tue, 7 Oct 2014 22:38:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6064333349 for ; Tue, 7 Oct 2014 22:38:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jGSHw9zB2eBF for ; Tue, 7 Oct 2014 22:38:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by silver.osuosl.org (Postfix) with ESMTPS id 780BA309AB for ; Tue, 7 Oct 2014 22:38:43 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id x12so10502551wgg.20 for ; Tue, 07 Oct 2014 15:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=6hc9IuUfdXRf3RrP00Crq/e3X+V7KUu9Fryet81+m4k=; b=BNr1vSXHX3zKUdy9g3H5V2U7qYOn4YMqQ/qjsE+G6fxBWFjt5byukNQpP0Pxy7pb++ y/yoZUV+f28GwRbP9PbRi1Po2W9S1SJj1VGC0bDzsOEvPF8Ihc83g3FqohHvqAQaoG5Y CzdNBmHilYu3gjlbVJ5mhMrgcNIEumleLl6WPCXU8ivwlufzwxBMCMY8COZ+weT8Mqzg zPzFPZs4dbsDeHWM8bFPURG5zGBeoCOnox1q/3vQzhDZVGwvGRXLBnFXxjuew+MO4DSR 5Rl8aBYc8/2+Ezz+iLVi5abXSsOeG7qQOFJ/hNyHI7wVsgNQkdO0mqjyV21LTGjOCNaZ 9Fhg== X-Received: by 10.180.85.66 with SMTP id f2mr7867113wiz.34.1412721521831; Tue, 07 Oct 2014 15:38:41 -0700 (PDT) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id lp8sm16342311wic.17.2014.10.07.15.38.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Oct 2014 15:38:41 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Wed, 8 Oct 2014 00:38:10 +0200 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 01/30] package/qemu: do not use autotools for qemu X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Although QEMU has a ./configure script, it is not an autotools-package, so switch to providing build and install commands, and to using generic-package. Signed-off-by: "Yann E. MORIN" --- package/qemu/qemu.mk | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 827bb77..9654b90 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -59,22 +59,26 @@ 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 \ + cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure \ --target-list="$(HOST_QEMU_TARGETS)" \ --prefix="$(HOST_DIR)/usr" \ --interp-prefix=$(STAGING_DIR) \ --cc="$(HOSTCC)" \ --host-cc="$(HOSTCC)" \ --extra-cflags="$(HOST_CFLAGS)" \ - --extra-ldflags="$(HOST_LDFLAGS)" \ - ) + --extra-ldflags="$(HOST_LDFLAGS)" endef -$(eval $(host-autotools-package)) +define HOST_QEMU_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define HOST_QEMU_INSTALL_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install +endef + +$(eval $(host-generic-package)) # variable used by other packages QEMU_USER = $(HOST_DIR)/usr/bin/qemu-$(HOST_QEMU_ARCH)