directfb: allow to enable debug and trace support
authorSven Neumann <s.neumann@raumfeld.com>
Thu, 6 Aug 2009 10:28:15 +0000 (12:28 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 7 Aug 2009 17:03:34 +0000 (19:03 +0200)
This change adds two new options, BR2_PACKAGE_DIRECTFB_DEBUG
to enable lots of debugging output from DirectFB and
BR2_PACKAGE_DIRECTFB_TRACE to enable support for call traces
in case of a crash.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
package/directfb/Config.in
package/directfb/directfb.mk

index fce9ed46cce3e49ae9069932610cb412a63798e0..5e847ed49e3f0d7ecd5288e38ef996078f849fe4 100644 (file)
@@ -11,7 +11,18 @@ config BR2_PACKAGE_DIRECTFB_MULTI
        select BR2_PACKAGE_LINUX_FUSION
        help
          Enable use of multiple concurrent DirectFB applications
-         http://www.directfb.org/
+
+config BR2_PACKAGE_DIRECTFB_DEBUG
+       bool "directfb debugging"
+       depends on BR2_PACKAGE_DIRECTFB
+       help
+         Compile DirectFB with lots of debug output
+
+config BR2_PACKAGE_DIRECTFB_TRACE
+       bool "directfb call trace support"
+       depends on BR2_PACKAGE_DIRECTFB
+       help
+         Enable call tracing for DirectFB applications
 
 config BR2_PACKAGE_DIRECTFB_XSERVER
        bool "build with X server backend"
index 93b45938df4470c5d465426891b59ec6f1d4f4c4..2407743dd45d7c249f97a7c8955b2c3212d441bf 100644 (file)
@@ -19,6 +19,19 @@ else
 DIRECTFB_MULTI:=
 DIRECTFB_FUSION:=
 endif
+
+ifeq ($(BR2_PACKAGE_DIRECTFB_DEBUG),y)
+DIRECTFB_DEBUG:=--enable-debug
+else
+DIRECTFB_DEBUG:=
+endif
+
+ifeq ($(BR2_PACKAGE_DIRECTFB_TRACE),y)
+DIRECTFB_TRACE:=--enable-trace
+else
+DIRECTFB_TRACE:=
+endif
+
 ifeq ($(BR2_PACKAGE_XSERVER),y)
 DIRECTFB_X:=--enable-x11
 else
@@ -111,6 +124,8 @@ DIRECTFB_CONF_OPT = \
        --enable-shared \
        --disable-explicit-deps \
        $(DIRECTFB_MULTI) \
+       $(DIRECTFB_DEBUG) \
+       $(DIRECTFB_TRACE) \
        $(DIRECTFB_X) \
        $(DIRECTFB_JPEG) \
        $(DIRECTFB_PNG) \