From patchwork Tue Jun 9 20:43:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Marie?= X-Patchwork-Id: 482372 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3F10A140759 for ; Wed, 10 Jun 2015 06:44:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=openmailbox.org header.i=@openmailbox.org header.b=J48qnqIy; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4A78CA1B33; Tue, 9 Jun 2015 20:44:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WAMbFOQuMVzK; Tue, 9 Jun 2015 20:44:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 21514A1B21; Tue, 9 Jun 2015 20:44:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F39AC1C21BA for ; Tue, 9 Jun 2015 20:43:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F00798F975 for ; Tue, 9 Jun 2015 20:43:57 +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 0xo41WD7PIPb for ; Tue, 9 Jun 2015 20:43:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp10.openmailbox.org (smtp10.openmailbox.org [62.4.1.44]) by whitealder.osuosl.org (Postfix) with ESMTPS id E872E91564 for ; Tue, 9 Jun 2015 20:43:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 0D184200ABA for ; Tue, 9 Jun 2015 22:43:53 +0200 (CEST) Authentication-Results: mail.openmailbox.org (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=openmailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received; s=openmailbox; t=1433882631; bh=TJxvezvwVsvQ760j crwM3+Nt3Cxlwm/zNmiWQvcEya4=; b=J48qnqIywR1aeer5Ka90VoPQExJanTn8 mBlzMbIdq6rrOXsPPxSu9BhWHBPo3qKKE4PJyQMvy5G5lcLg/djNNRftisLQk/Iw 9hiiRZwRLTUesVCUzB6mVxGZNo+JK6DiOf/BccUKHdNqT7lpG2XhP5sEcnqEFSoU kbSsE063Sbg= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ayqiCZsmj_Am; Tue, 9 Jun 2015 22:43:51 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Marie?= To: buildroot@busybox.net Date: Tue, 9 Jun 2015 22:43:43 +0200 Message-Id: <1433882623-15782-1-git-send-email-cedric.marie@openmailbox.org> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: =?UTF-8?q?C=C3=A9dric=20Marie?= Subject: [Buildroot] [PATCH] directfb: add an option for debugging support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" DirectFB debugging support is enabled by default. This new option makes it possible to disable it (--disable-debug-support) and build the library with no debug feature at all. NB: When debugging support is disabled, the target installation path is suffixed with -pure. Signed-off-by: Cédric Marie --- package/directfb/Config.in | 7 +++++++ package/directfb/directfb.mk | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/package/directfb/Config.in b/package/directfb/Config.in index 7759f8f..0015c0c 100644 --- a/package/directfb/Config.in +++ b/package/directfb/Config.in @@ -20,8 +20,15 @@ config BR2_PACKAGE_DIRECTFB_MULTI comment "directfb multi application needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL +config BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT + bool "directfb debugging support" + default y + help + Compile DirectFB with debugging support + config BR2_PACKAGE_DIRECTFB_DEBUG bool "directfb debugging" + depends on BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT help Compile DirectFB with lots of debug output diff --git a/package/directfb/directfb.mk b/package/directfb/directfb.mk index e3dc506..cf0609c 100644 --- a/package/directfb/directfb.mk +++ b/package/directfb/directfb.mk @@ -39,9 +39,13 @@ DIRECTFB_CONF_OPTS += --enable-multi --enable-fusion DIRECTFB_DEPENDENCIES += linux-fusion endif +ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT),y) ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y) DIRECTFB_CONF_OPTS += --enable-debug endif +else +DIRECTFB_CONF_OPTS += --disable-debug-support +endif ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y) DIRECTFB_CONF_OPTS += --enable-trace