From patchwork Mon Jun 15 20:02:45 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: 484523 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 956C71401F6 for ; Tue, 16 Jun 2015 06:03:04 +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=OeAluvCO; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D5230A3A4A; Mon, 15 Jun 2015 20:03:03 +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 fvgLQcWJH7UM; Mon, 15 Jun 2015 20:03:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9303CA3A4C; Mon, 15 Jun 2015 20:03: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 4816C1C0B7A for ; Mon, 15 Jun 2015 20:03:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 429B6914D1 for ; Mon, 15 Jun 2015 20:03:01 +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 5xG7c2PymunK for ; Mon, 15 Jun 2015 20:02:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp16.openmailbox.org (smtp16.openmailbox.org [62.4.1.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1522A914BA for ; Mon, 15 Jun 2015 20:02:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id BDD6C2E01CA for ; Mon, 15 Jun 2015 22:02:56 +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=1434398574; bh=aRxKcj9WeYmGikqD 44z06nvp3Aqz25aCHDlTBeaQf3c=; b=OeAluvCO6TGb+0oQLWS+fBuV0WZQB5sd fF3Qf2qIs01GIVC+g3s0row0YDVgTF/tvlC6kchwwkQKDy64cFTsWmUs59bslDgD Oj3p4RGja8uwiFc0Jum+awc40Kznw4WWLeQMsPcUkf26btz5h2mGUr0vL5wBUhr5 CxAHo+/T8GI= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0I4xav_zX-FA; Mon, 15 Jun 2015 22:02:54 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Marie?= To: buildroot@busybox.net Date: Mon, 15 Jun 2015 22:02:45 +0200 Message-Id: <1434398565-3061-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 provides two options for debug: * --enable-debug-support (default is yes) * --enable-debug (default is no) The first one provides the functions to print debug information. These functions can be called inside DirectFB, or by an external DirectFB driver in another package. The second one enables verbose mode in DirectFB, using these functions. Buildroot currently provides an option for the second one only. The first one - which is necessary for the second one - is always enabled, because this is the default value. The new option (BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT) makes it possible to disable debugging support (--disable-debug-support) in order to build the library with no debug feature at all. When debugging support is disabled, the target installation path of drivers (/usr/lib/directfb-) is suffixed with -pure. The public library (/usr/lib/libdirectfb.so) remains unchanged. Some external DirectFB drivers will install into /usr/lib/directfb--pure in release mode. For that reason, it is important that DirectFB can be configured to use this directory. Signed-off-by: Cédric Marie Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- package/directfb/Config.in | 14 ++++++++++++++ package/directfb/directfb.mk | 5 +++++ 2 files changed, 19 insertions(+) diff --git a/package/directfb/Config.in b/package/directfb/Config.in index 7759f8f..2b0d5c7 100644 --- a/package/directfb/Config.in +++ b/package/directfb/Config.in @@ -20,8 +20,22 @@ 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. It provides + functions to print debug information, for DirectFB as well as + external DirectFB drivers. + + When disabled, DirectFB does not print any debug information. + The drivers will be installed to and loaded from + /usr/lib/directfb--pure instead of + /usr/lib/directfb-. + 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..ad1dd18 100644 --- a/package/directfb/directfb.mk +++ b/package/directfb/directfb.mk @@ -39,9 +39,14 @@ DIRECTFB_CONF_OPTS += --enable-multi --enable-fusion DIRECTFB_DEPENDENCIES += linux-fusion endif +ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG_SUPPORT),y) +DIRECTFB_CONF_OPTS += --enable-debug-support 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