From: Cédric Marie Date: Mon, 15 Jun 2015 20:02:45 +0000 (+0200) Subject: directfb: add an option for debugging support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b488f356ed1a8ed9bd84d7e32203fe6730f261b6;p=buildroot.git directfb: add an option for debugging support 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) Signed-off-by: Thomas Petazzoni --- diff --git a/package/directfb/Config.in b/package/directfb/Config.in index 7759f8f11b..2b0d5c75a1 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 e3dc506ae6..ad1dd18a28 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