Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] bluez5_utils: define FIRMWARE_DIR for hciattach_bcm43xx
@ 2017-08-31  9:49 Jörg Krause
  2017-08-31  9:49 ` [Buildroot] [PATCH 2/2] bluez5_utils: add upstream patch to fix timeout issue with fw download Jörg Krause
  0 siblings, 1 reply; 4+ messages in thread
From: Jörg Krause @ 2017-08-31  9:49 UTC (permalink / raw)
  To: buildroot

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>
---
 package/bluez5_utils/bluez5_utils.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index 13658cd050..af3dfbe38d 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
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-22 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-31  9:49 [Buildroot] [PATCH 1/2] bluez5_utils: define FIRMWARE_DIR for hciattach_bcm43xx Jörg Krause
2017-08-31  9:49 ` [Buildroot] [PATCH 2/2] bluez5_utils: add upstream patch to fix timeout issue with fw download Jörg Krause
2017-09-16  8:44   ` Bernd Kuhls
2017-10-22 14:55     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox