Skip to contentSkip to conversation

bluez5: Point hciattach bcm43xx firmware search path to /lib/firmware

PATCH New Marek Vasut 1 participant 1 message Nov 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 bluez5: Point hciattach bcm43xx firmware search path to /lib/firmware

Currently the hciattach bcm43xx firmware loader looks up the firmware blob in /etc/firmware . Change this to /lib/firmware instead, so that the path is consistent with Linux kernel which also looks up firmware for the WiFi part in /lib/firmware .

---
Cc: Alexander Kanavin <[email protected]>
Cc: Alexandre Belloni <[email protected]>
Cc: Richard Purdie <[email protected]>
---
V2: Replace hard-coded /lib with ${nonarch_base_libdir}
V3: Use CFLAGS += instead

---
 meta/recipes-connectivity/bluez5/bluez5.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-connectivity/bluez5/bluez5.inc +2 -0
index f07e318897..a8eaba1dd6 100644
@@ -68,6 +68,8 @@ EXTRA_OECONF = "\
   --without-zsh-completion-dir \
 "
 
+CFLAGS += "-DFIRMWARE_DIR=\\"${nonarch_base_libdir}/firmware\\""
+
 # bluez5 builds a large number of useful utilities but does not
 # install them.  Specify which ones we want put into ${PN}-noinst-tools.
 NOINST_TOOLS_READLINE ??= ""
Signature · 1 line
2.35.1