From patchwork Sun Aug 12 23:54:00 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: 176814 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 A628E2C0087 for ; Mon, 13 Aug 2012 09:57:43 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CF6448999F; Sun, 12 Aug 2012 23:57:26 +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 oCWaLz4H+BrW; Sun, 12 Aug 2012 23:57:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 27E188BF6F; Sun, 12 Aug 2012 23:56:57 +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 EE6078F753 for ; Sun, 12 Aug 2012 23:54:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E8C43247A5 for ; Sun, 12 Aug 2012 23:54:32 +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 RU1uBTOByzHV for ; Sun, 12 Aug 2012 23:54:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.smtpout.orange.fr (smtp10.smtpout.orange.fr [80.12.242.132]) by silver.osuosl.org (Postfix) with ESMTP id 0E8292066B for ; Sun, 12 Aug 2012 23:54:30 +0000 (UTC) Received: from treguer.bzh.lan ([90.32.165.248]) by mwinf5d33 with ME id lzuQ1j0055MspoA03zuVJ3; Mon, 13 Aug 2012 01:54:29 +0200 From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 13 Aug 2012 01:54:00 +0200 Message-Id: <1344815664-28138-12-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1344815664-28138-1-git-send-email-yann.morin.1998@free.fr> References: <1344815664-28138-1-git-send-email-yann.morin.1998@free.fr> Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 12/36] 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 | 33 +++++++++++++++++++++++++++++++++ package/qemu/qemu.mk | 21 ++++++++++++++++++--- 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index a77d863..253a4ad 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -20,5 +20,38 @@ config BR2_PACKAGE_QEMU http://qemu.org/ +if BR2_PACKAGE_QEMU + +comment "Emulators selection" + +# We need at least one to be selected +config BR2_PACKAGE_QEMU_EMUL_SET + bool + +config BR2_PACKAGE_QEMU_FORCE_SYSTEM + bool + default n if BR2_PACKAGE_QEMU_EMUL_SET + default y if ! BR2_PACKAGE_QEMU_EMUL_SET + select BR2_PACKAGE_QEMU_SYSTEM + +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" + select BR2_PACKAGE_QEMU_EMUL_SET + help + Say 'y' to build all Linux user-land emulators that QEMU supports. + +config BR2_PACKAGE_QEMU_BSD_USER + bool "Enable all BSD user-land emulation" + select BR2_PACKAGE_QEMU_EMUL_SET + help + Say 'y' to build all BSD user-land emulators that QEMU supports. + +endif # BR2_PACKAGE_QEMU + comment "QEMU requires python" depends on !BR2_PACKAGE_PYTHON diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index 3825731..34d9dd1 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -25,6 +25,24 @@ QEMU_LIBS = -lrt -lm QEMU_OPTS = QEMU_VARS = +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 + +ifeq ($(BR2_PACKAGE_QEMU_BSD_USER),y) +QEMU_OPTS += --enable-bsd-user +else +QEMU_OPTS += --disable-bsd-user +endif + #---------------------------------------------------------------------------- # Package build process @@ -48,9 +66,6 @@ define QEMU_CONFIGURE_CMDS --enable-nptl \ --enable-attr \ --enable-vhost-net \ - --enable-system \ - --enable-linux-user \ - --disable-bsd-user \ --disable-xen \ --disable-slirp \ --disable-sdl \