![Bernd Kuhls](/assets/img/avatar_default.png)
A lot of packages ignored BR2_ENABLE_DEBUG. This patch simplifies the handling of this option by adding the corresponding configure option to the global Makefile for target packages. For host packages --disable-debug is added to the global Makefile. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# openobex
|
|
#
|
|
################################################################################
|
|
|
|
OPENOBEX_VERSION = 1.5
|
|
OPENOBEX_SITE = http://ftp.osuosl.org/pub/linux/bluetooth
|
|
# Libraries seems to be released under LGPLv2.1+,
|
|
# while other material is under GPLv2+.
|
|
OPENOBEX_LICENSE = GPLv2+/LGPLv2.1+
|
|
OPENOBEX_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
OPENOBEX_DEPENDENCIES = host-pkgconf
|
|
OPENOBEX_AUTORECONF = YES
|
|
OPENOBEX_INSTALL_STAGING = YES
|
|
|
|
OPENOBEX_CONF_OPTS += \
|
|
$(if $(BR2_PACKAGE_OPENOBEX_APPS),--enable-apps) \
|
|
$(if $(BR2_PACKAGE_OPENOBEX_SYSLOG),--enable-syslog) \
|
|
$(if $(BR2_PACKAGE_OPENOBEX_DUMP),--enable-dump)
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOBEX_BLUEZ),y)
|
|
OPENOBEX_DEPENDENCIES += bluez_utils
|
|
OPENOBEX_CONF_OPTS += --with-bluez=$(STAGING_DIR)
|
|
else
|
|
OPENOBEX_CONF_OPTS += --disable-bluetooth
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENOBEX_LIBUSB),y)
|
|
OPENOBEX_DEPENDENCIES += libusb
|
|
OPENOBEX_CONF_OPTS += --with-usb=$(STAGING_DIR)
|
|
else
|
|
OPENOBEX_CONF_OPTS += --disable-usb
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|