8554be9f82
Tests are enabled since this has been introduced [1], so keep
them for now.
bluez_utils needs check tool and check if it's available [2].
[1] 06c3e21596
[2] https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/configure.ac?h=4.101#n51
Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
62 lines
1.4 KiB
Makefile
62 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# bluez_utils
|
|
#
|
|
################################################################################
|
|
|
|
BLUEZ_UTILS_VERSION = 4.101
|
|
BLUEZ_UTILS_SOURCE = bluez-$(BLUEZ_UTILS_VERSION).tar.xz
|
|
BLUEZ_UTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
|
|
BLUEZ_UTILS_INSTALL_STAGING = YES
|
|
BLUEZ_UTILS_DEPENDENCIES = host-pkgconf check dbus libglib2
|
|
BLUEZ_UTILS_CONF_OPTS = --enable-test --enable-tools
|
|
BLUEZ_UTILS_AUTORECONF = YES
|
|
BLUEZ_UTILS_LICENSE = GPL-2.0+, LGPL-2.1+
|
|
BLUEZ_UTILS_LICENSE_FILES = COPYING COPYING.LIB
|
|
|
|
# BlueZ 3.x compatibility
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_COMPAT),y)
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
--enable-hidd \
|
|
--enable-pand \
|
|
--enable-sdp \
|
|
--enable-dund
|
|
endif
|
|
|
|
# audio support
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_AUDIO),y)
|
|
BLUEZ_UTILS_DEPENDENCIES += \
|
|
alsa-lib \
|
|
libsndfile
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
--enable-alsa \
|
|
--enable-audio
|
|
else
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
--disable-alsa \
|
|
--disable-audio
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_GATT),y)
|
|
BLUEZ_UTILS_DEPENDENCIES += readline
|
|
BLUEZ_UTILS_CONF_OPTS += --enable-gatt
|
|
else
|
|
BLUEZ_UTILS_CONF_OPTS += --disable-gatt
|
|
endif
|
|
|
|
# USB support
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_USB),y)
|
|
BLUEZ_UTILS_DEPENDENCIES += libusb
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
--enable-usb
|
|
else
|
|
BLUEZ_UTILS_CONF_OPTS += \
|
|
--disable-usb
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
|
|
BLUEZ_UTILS_CONF_OPTS += --disable-pie
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|