package/xenomai: enable or disable debug based on BR2_ENABLE_DEBUG
authorRomain Naour <romain.naour@openwide.fr>
Thu, 2 Oct 2014 19:55:52 +0000 (21:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 3 Oct 2014 20:08:56 +0000 (22:08 +0200)
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/xenomai/xenomai.mk

index f360c2a9096e80f6ab872a921b10f0b9f63ef509..4bc0871bda5d7e8db03553ad51d0f7717ebe669a 100644 (file)
@@ -19,7 +19,8 @@ XENOMAI_INSTALL_STAGING = YES
 XENOMAI_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install-user
 XENOMAI_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install-user
 
-XENOMAI_CONF_OPT += --includedir=/usr/include/xenomai/ --disable-doc-install
+XENOMAI_CONF_OPT += --includedir=/usr/include/xenomai/ --disable-doc-install \
+       $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
 
 define XENOMAI_REMOVE_DEVFILES
        for i in xeno-config xeno-info wrap-link.sh ; do \