From patchwork Sun Feb 3 14:06:40 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: 217762 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 01B0E2C0092 for ; Mon, 4 Feb 2013 01:08:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7223B101B68; Sun, 3 Feb 2013 14:07:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WE3auP2aCm8x; Sun, 3 Feb 2013 14:07:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B506E1013F6; Sun, 3 Feb 2013 14:07:29 +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 5C9988F753 for ; Sun, 3 Feb 2013 14:07:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CB4FA8AC67 for ; Sun, 3 Feb 2013 14:07:27 +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 AHf+UL1o6rAi for ; Sun, 3 Feb 2013 14:07:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com [74.125.82.44]) by whitealder.osuosl.org (Postfix) with ESMTPS id 016D98ACA1 for ; Sun, 3 Feb 2013 14:07:19 +0000 (UTC) Received: by mail-wg0-f44.google.com with SMTP id dr12so3973185wgb.11 for ; Sun, 03 Feb 2013 06:07:18 -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=PfYsTMI4Yxq6h4NrnjEtzjQDRIee1VFOtYhem8lcYNY=; b=cYkB3dyp60Oqby9dPozIag464+eGBZDU3P8gvpCvFL8bt9nO8c8cyZqxK7y9llcsxi oi9BJMSBDxONpONfp5hR2ZXD3bs1Qnoo44guIBgyYkk7Pxb5CpTox1afwblmCXEVn8Lw edfGtUlgqjike9XiunN7Ynr1JPaJuUsMhWAubCgd/vclzyK+RXQol5X55tmToCpoGcdS QHF9LQYDXpDs0PLStQ4md6lyEtSU2yiweCyHa51rjaLfQXM2JI3xw1tT/8waVGMEv8mA 2ewEUrDIkqUsJLL1dKGenrzwmb0uWxVprMkx0mCUwOMRAO35eZVvPCIkwfS6xrcuKk5h /szQ== X-Received: by 10.194.76.7 with SMTP id g7mr30499863wjw.50.1359900438387; Sun, 03 Feb 2013 06:07:18 -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 gy2sm2970685wib.3.2013.02.03.06.07.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 Feb 2013 06:07:17 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Sun, 3 Feb 2013 15:06:40 +0100 Message-Id: <925436c4613c9852eff1e3c7a91e782582d7f54b.1359899108.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 03/29] package/qemu: add basic 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 | 18 ++++++++++++++++++ package/qemu/qemu.mk | 14 ++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index b0ed279..5180ef0 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -24,3 +24,21 @@ config BR2_PACKAGE_QEMU server and embedded PowerPC, and S390 guests. http://qemu.org/ + +if BR2_PACKAGE_QEMU + +comment "Emulators selection" + +config BR2_PACKAGE_QEMU_SYSTEM + bool "Enable all systems emulation" + help + Say 'y' to build all system emulators/virtualisers that QEMU supports. + +config BR2_PACKAGE_QEMU_LINUX_USER + bool "Enable all Linux user-land emulation" + help + Say 'y' to build all Linux user-land emulators that QEMU supports. + +# Note: bsd-user can not be build on Linux + +endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index d8c9e6e..19de212 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -97,6 +97,18 @@ QEMU_VARS = PYTHON=$(HOST_DIR)/usr/bin/python \ PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ +ifeq ($(BR2_PACKAGE_QEMU_SYSTEM),y) +QEMU_OPTS += --enable-system +else +QEMU_OPTS += --disable-system +endif + +ifeq ($(BR2_PACKAGE_QEMU_LINUX_USER),y) +QEMU_OPTS += --enable-linux-user +else +QEMU_OPTS += --disable-linux-user +endif + define QEMU_CONFIGURE_CMDS ( cd $(@D); \ LIBS='$(QEMU_LIBS)' \ @@ -113,8 +125,6 @@ define QEMU_CONFIGURE_CMDS --enable-nptl \ --enable-attr \ --enable-vhost-net \ - --enable-system \ - --enable-linux-user \ --disable-bsd-user \ --disable-xen \ --disable-slirp \