From patchwork Mon Dec 10 23:44:46 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: 205077 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 A44412C0322 for ; Tue, 11 Dec 2012 10:48:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8E36BA01E9; Mon, 10 Dec 2012 23:48:43 +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 rdON2Lm9TRx7; Mon, 10 Dec 2012 23:48:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 20A2DA0160; Mon, 10 Dec 2012 23:47:35 +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 951BD8F74B for ; Mon, 10 Dec 2012 23:46:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 90D328AADC for ; Mon, 10 Dec 2012 23:46: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 1exVkWP91u2C for ; Mon, 10 Dec 2012 23:46:16 +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 1F22E8AA2A for ; Mon, 10 Dec 2012 23:45:46 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id hm2so1427071wib.10 for ; Mon, 10 Dec 2012 15:45:46 -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=6JjFY5FY9PJuwduWOnVbM1qsYZYpleAKfqsuu0CcBB4=; b=L/zAazl/F3PA/PjzcuaIYMGkPfhplCHpFGO+qAEHdsBuw1xBI8co4k1QFOdtaP1xYP vHcadQkJVC9KTVwauuhjzBPBwsy5oYfpn5dCNt+/UgfSR+ttZvx5Y/5Zb6/Se6Zn/r5F Cgf8IYzMZl43KDlXZ3pUYqrxgtmSV36imm+40CJAxwy0wCf4ju0rKKiDfC/UaoTgBvlL VdMxi70F8+z2SHHX1PwpIP2+x81Ek+YVOLSUXWuJ5N7LMJ/z2dk/SD9wGT5hAAOvet4Z cJxYTzOXzwvbbgd0NbEFOGGrDPbxv+mqWWJpx/FYzs8Gr5tvKJOjkRa++9p1SNxrHH3p z19w== Received: by 10.194.10.74 with SMTP id g10mr243403wjb.21.1355183146709; Mon, 10 Dec 2012 15:45:46 -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.45 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 15:45:46 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Tue, 11 Dec 2012 00:44:46 +0100 Message-Id: <1355183112-10735-27-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 26/52] 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 ddf3665..f76b443 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -28,6 +28,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:" + # QEMU 1.2.x requires that at least one target emulation be selected, so # we use the following two symbols to force systems emulation if user # emulation is not selected. This limitation will be lifted when qemu-1.3.0 @@ -54,4 +73,6 @@ config BR2_PACKAGE_QEMU_LINUX_USER # Note: bsd-user can not be build on Linux +endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == "" + endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 0085abd..0fbd670 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -109,6 +109,10 @@ else QEMU_OPTS += --disable-linux-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 have # to override the default provided by the autotools-package infra, and