From patchwork Mon Dec 10 23:44:47 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: 205079 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 4883B2C0322 for ; Tue, 11 Dec 2012 10:49:01 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 121EEA0167; Mon, 10 Dec 2012 23:49:00 +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 6Y-hP9ZA-hqO; Mon, 10 Dec 2012 23:48:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 30828A016D; Mon, 10 Dec 2012 23:47:43 +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 665C28F74B for ; Mon, 10 Dec 2012 23:46:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F107A8A224 for ; Mon, 10 Dec 2012 23:46:30 +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 D7EMnT4It9wq for ; Mon, 10 Dec 2012 23:46:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id C3B618AB85 for ; Mon, 10 Dec 2012 23:45:47 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id hn14so1454684wib.10 for ; Mon, 10 Dec 2012 15:45:47 -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=+QSj/GHm0KQ79QB821C/FtK0Q3tVuc2wvffOrhFFRJI=; b=e2JqZrwlC5y8FrCJDik2B0jAhj2T3396kM6EP1M6MZHcRjUaVENOy55IxwqSlrdqlR vOzctXDQlSC10ASBm9yTHsHwr+BeVBs0QTARBnq1Sj9fbI1/Mf8uQA12ngSLbB2zHVDc ZhBU4MrskzUiintmZNWxgIH+e2n5E5UJWFbYvFaqgODYpFU7mEluuA+5YCX6AtLx3ZoG coZq9sCqcvrsr08u7YBJDal4XtoULnBKAuapiqVu9keIhzeAj8rx4ia2wnhjo/sJlsNj 4dWn7ZhhBJawhik3bNJ7JTDG507eZrVUMBsglkE8uAPCi9l20ugdgtv0YDJzrI6lbZ1v hkEg== Received: by 10.180.86.36 with SMTP id m4mr13725716wiz.5.1355183147539; Mon, 10 Dec 2012 15:45:47 -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.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 10 Dec 2012 15:45:47 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Tue, 11 Dec 2012 00:44:47 +0100 Message-Id: <1355183112-10735-28-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 27/52] 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 f76b443..a92ca00 100644 --- a/package/qemu/Config.in +++ b/package/qemu/Config.in @@ -75,4 +75,13 @@ config BR2_PACKAGE_QEMU_LINUX_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 0fbd670..4de6cd0 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -96,6 +96,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 @@ -113,6 +114,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 have # to override the default provided by the autotools-package infra, and @@ -136,7 +145,6 @@ define QEMU_CONFIGURE_CMDS --disable-bsd-user \ --disable-xen \ --disable-slirp \ - --disable-sdl \ --disable-vnc \ --disable-virtfs \ --disable-brlapi \