From patchwork Wed Oct 24 21:25:49 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: 193970 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 004A42C0090 for ; Thu, 25 Oct 2012 08:29:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4487F804F8; Wed, 24 Oct 2012 21:29:24 +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 NY+rTu3bxbKx; Wed, 24 Oct 2012 21:29:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 96C698C941; Wed, 24 Oct 2012 21:28:38 +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 47A088F74A for ; Wed, 24 Oct 2012 21:26:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E634D8C8F0 for ; Wed, 24 Oct 2012 21:26:52 +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 f0RIm0QObrcL for ; Wed, 24 Oct 2012 21:26:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id F1BFB8C865 for ; Wed, 24 Oct 2012 21:26:41 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id dr1so619614wgb.10 for ; Wed, 24 Oct 2012 14:26: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:x-mailer:in-reply-to :references; bh=g8cG4Hww43O/W+2iWnAa7KzEVg8l1nBXyEty9Lq7ddE=; b=q/8Ph1Gbd1cgOG98dPQA5QxpnzaFoFk6AExqwJdnZPwrVbBya1y1M8gsoo6Y2d9MVM mB/taZ8p2tsBN8OPPmI5dn3sSQWHyK4BlRkzWRutbXPJvUQaTV/SCrOCQWoaiN5ZswIb Mgu+0CUYJerwfp+e5bJcf2AS4NIi03ArS87xkJ4opNPDX815t9mZLXCoshnurW1HtJi6 DBCgREQhIaiTyWNV7duJjjGADrsckJDSXovlVyz1cvQ7bvCwlRE4iOyeelgE3zaW8/QF Mr2Y3QJN4Z+0CyjDUr+gMGqHDEBfiiBRAI2www6qzg6qnVUc13vqYVu3OakoX1xFgpLu jkSA== Received: by 10.216.134.85 with SMTP id r63mr9431147wei.150.1351114001579; Wed, 24 Oct 2012 14:26:41 -0700 (PDT) Received: from localhost.localdomain (ARennes-256-1-66-54.w90-32.abo.wanadoo.fr. [90.32.145.54]) by mx.google.com with ESMTPS id hb6sm6371161wib.7.2012.10.24.14.26.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Oct 2012 14:26:41 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Wed, 24 Oct 2012 23:25:49 +0200 Message-Id: <1351113973-17237-24-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1351113973-17237-1-git-send-email-yann.morin.1998@free.fr> References: <1351113973-17237-1-git-send-email-yann.morin.1998@free.fr> Cc: bjornar.ness@gmail.com, "Yann E. MORIN" Subject: [Buildroot] [PATCH 23/47] package/qemu: add fine-grained target selection 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 Signed-off-by: "Yann E. MORIN" --- package/qemu/Config.in | 21 +++++++++++++++++++++ package/qemu/qemu.mk | 4 ++++ 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index c8623bf..bd4b939 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -30,6 +30,25 @@ if BR2_PACKAGE_QEMU comment "Emulators selection" +config BR2_PACKAGE_QEMU_CUSTOM_TARGETS + string "Enable specific targets" + help + Enter here the list of QEMU targets you want to build. For example: + + System emulation | User-land emulation + ----------------------+----------------------- + i386-softmmu | i386-linux-user + arm-softmmu | ppc-linux-user + x86_64-softmmu | sparc-bsd-user + ... | ... + +config QEMU_FOO + bool # To break the indentation + +if BR2_PACKAGE_QEMU_CUSTOM_TARGETS = "" + +comment "... or you can select emulator families to enable, below:" + # We need at least one to be selected config BR2_PACKAGE_QEMU_EMUL_SET bool @@ -57,4 +76,6 @@ config BR2_PACKAGE_QEMU_BSD_USER help Say 'y' to build all BSD user-land emulators that QEMU supports. +endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == "" + endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 14d0505..a942e0b 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -43,6 +43,10 @@ else QEMU_OPTS += --disable-bsd-user endif +ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),) +QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))" +endif + # Note: although QEMU uses a ./configure script, it is not compatible with # the traditional autotools options (eg. --target et al.), so we can # not use the autotools-package infrastructure. So we have to use the