summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2017-08-31 11:49:31 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-10-22 16:59:22 +0200
commit361d1b969ecdba1a8a62613626f90fc025b94660 (patch)
treec1646f836269293c3b9c61ea8c3980c16940e981
parentc2aa34d8cede20d4c8701f20ade9a016fb478b87 (diff)
downloadbuildroot-361d1b969ecdba1a8a62613626f90fc025b94660.tar.gz
buildroot-361d1b969ecdba1a8a62613626f90fc025b94660.zip
bluez5_utils: define FIRMWARE_DIR for hciattach_bcm43xx
The tool hciattach_bcm43xx defines the default firmware path in `/etc/firmware`, but the Broadcom firmware blobs are usually stored in `/lib/firmware`. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/bluez5_utils/bluez5_utils.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index 1bc69691e4..57e9c264e1 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -80,6 +80,10 @@ define BLUEZ5_UTILS_INSTALL_GATTTOOL
$(INSTALL) -D -m 0755 $(@D)/attrib/gatttool $(TARGET_DIR)/usr/bin/gatttool
endef
BLUEZ5_UTILS_POST_INSTALL_TARGET_HOOKS += BLUEZ5_UTILS_INSTALL_GATTTOOL
+# hciattach_bcm43xx defines default firmware path in `/etc/firmware`, but
+# Broadcom firmware blobs are usually located in `/lib/firmware`.
+BLUEZ5_UTILS_CONF_ENV += \
+ CPPFLAGS='$(TARGET_CPPFLAGS) -DFIRMWARE_DIR=\"/lib/firmware\"'
BLUEZ5_UTILS_CONF_OPTS += --enable-deprecated
else
BLUEZ5_UTILS_CONF_OPTS += --disable-deprecated
OpenPOWER on IntegriCloud