From patchwork Tue Jan 29 22:43:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 216689 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 B92E62C0096 for ; Wed, 30 Jan 2013 09:45:40 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BF975A023A; Tue, 29 Jan 2013 22:45:41 +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 9804+v-zwrjO; Tue, 29 Jan 2013 22:45:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 5F946A0252; Tue, 29 Jan 2013 22:44:52 +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 793968F753 for ; Tue, 29 Jan 2013 22:44:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 315F78C867 for ; Tue, 29 Jan 2013 22:44:34 +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 mTXMTzTzjFcS for ; Tue, 29 Jan 2013 22:44:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id ADF168C720 for ; Tue, 29 Jan 2013 22:44:29 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id es5so725928wgb.29 for ; Tue, 29 Jan 2013 14:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=Pvnb0gaQBQmpE6DJcdvJbvkBvK2JrK9e4cDBwvI3CIo=; b=qX/hnuHkFODpJziP6Rln2frvxQ0/d5d8toVGULAL286hLBU3/f4VoaLZiHOcGMP/fU i23bKNdGmcEAdIZ2O6whkp7JlgaBNlJL5v09/qJ92qCCf9HCi9xaqYpw+ubcqngtHP77 C7wnRxbOZeM2EyWBVdz4/E9cTIwD9BN1Pkjp8X2Fa+e0qIWqSED16GB8GcyC56dyZI2Q gbKb34CeCeL7p/EbmetzD+b2dR0Bqg8depM+K7inH8fY8kYs1OGf2UaNaC/SnulEH21p obI+CQYKJ0LqUQwCMtDrb9L1Nd0uuBZ1bZYkq1GlsnP1ggU1rMj5VkhDXUYxZ7uiieuG 0FzQ== X-Received: by 10.194.123.105 with SMTP id lz9mr5201916wjb.43.1359499468025; Tue, 29 Jan 2013 14:44:28 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-39-23.w90-32.abo.wanadoo.fr. [90.32.22.23]) by mx.google.com with ESMTPS id ge2sm5826459wib.4.2013.01.29.14.44.26 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 29 Jan 2013 14:44:27 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Tue, 29 Jan 2013 23:43:48 +0100 Message-Id: <025c722146434fbe10e5fb664a04c12134d0b5aa.1359498903.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 04/29] 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 9bfe37d..4f1576b 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -29,6 +29,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 @@ -55,4 +74,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 c2302fa..c91c79b 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