From patchwork Wed Nov 28 23:54:27 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: 202611 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 DFA212C0510 for ; Thu, 29 Nov 2012 10:59:04 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7B67AA0220; Wed, 28 Nov 2012 23:59:03 +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 c7jqgRK4nvhj; Wed, 28 Nov 2012 23:58:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id C0200A0281; Wed, 28 Nov 2012 23:57: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 34EB48F74A for ; Wed, 28 Nov 2012 23:55:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 14F5C8A39E for ; Wed, 28 Nov 2012 23:55:49 +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 VrZmh4GlKvQM for ; Wed, 28 Nov 2012 23:55:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 949678AA86 for ; Wed, 28 Nov 2012 23:55:33 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hm2so4574053wib.10 for ; Wed, 28 Nov 2012 15:55:33 -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=8/S7WIBc6ciH55oS09/d69uU3xy0sWHON9fpEbm1Gno=; b=zRQ6Z7cTwd5hqOTWyoDkbVi/KCxVL8sg8ukRCI28fRwrUAYDX7xcsFx5DyB5gzNKbt 2G1i/O0767/QgG9r4dJOyzJb9vhdCFuJqnsGITdLM1cdHaOpI0EwNNMZLmB2xjX3lhzT hgUtbUrsitvIPL4A8xO+ZoE7+5fw0icFQDZQZ0jsgYJmvlXclUgDr5vwqzrFrATev0vF /kU/iHDUmmABjJR7QZ9SQyVnwelL5QLcuJO/ixtyl3EpwB8nH7u6Z+StuHxB6nDCr9FY S9ykwmr6MXld+/UBeAQxUgvGq6lo7vZDRRcpntXCXlBNyT6HqKX4HJLFxbmj/mfRyUBc DvXw== Received: by 10.180.103.201 with SMTP id fy9mr32126702wib.10.1354146933417; Wed, 28 Nov 2012 15:55:33 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-141-45.w90-32.abo.wanadoo.fr. [90.32.252.45]) by mx.google.com with ESMTPS id i6sm9076156wix.5.2012.11.28.15.55.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 28 Nov 2012 15:55:33 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Thu, 29 Nov 2012 00:54:27 +0100 Message-Id: <1354146890-27380-29-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1354146890-27380-1-git-send-email-yann.morin.1998@free.fr> References: <1354146890-27380-1-git-send-email-yann.morin.1998@free.fr> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 28/51] package/qemu: add SDL frontends 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 | 9 +++++++++ package/qemu/qemu.mk | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletions(-) diff --git a/package/qemu/Config.in b/package/qemu/Config.in index 29fd513..baa7037 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -79,4 +79,13 @@ config BR2_PACKAGE_QEMU_BSD_USER endif # BR2_PACKAGE_QEMU_CUSTOM_TARGETS == "" +comment "Frontends" + +config BR2_PACKAGE_QEMU_SDL + bool "Enable SDL frontend" + select BR2_PACKAGE_SDL + help + Say 'y' to enable the SDL frontend, that is, a graphical window + presenting the VM's display. + endif # BR2_PACKAGE_QEMU diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk index d77e3b8..75969d5 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -105,6 +105,7 @@ QEMU_OPTS = QEMU_VARS = \ PYTHON=$(HOST_DIR)/usr/bin/python \ PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages \ + SDL_CONFIG=$(STAGING_DIR)/usr/bin/sdl-config \ ifeq ($(BR2_PACKAGE_QEMU_SYSTEM),y) QEMU_OPTS += --enable-system @@ -128,6 +129,14 @@ ifneq ($(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS)),) QEMU_OPTS += --target-list="$(call qstrip,$(BR2_PACKAGE_QEMU_CUSTOM_TARGETS))" endif +ifeq ($(BR2_PACKAGE_QEMU_SDL),y) +QEMU_OPTS += --enable-sdl +QEMU_DEPENDENCIES += sdl +QEMU_VARS += SDL_CONFIG=$(BR2_STAGING_DIR)/usr/bin/sdl-config +else +QEMU_OPTS += --disable-sdl +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 @@ -155,7 +164,6 @@ define QEMU_CONFIGURE_CMDS --enable-vhost-net \ --disable-xen \ --disable-slirp \ - --disable-sdl \ --disable-vnc \ --disable-virtfs \ --disable-brlapi \