summaryrefslogtreecommitdiff
path: root/tools/hciattach_qualcomm.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2022-11-01 12:53:33 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-11-01 14:01:57 -0700
commitd9253248363b995e44c1f5e393ed1c7aa4ec81ce (patch)
tree6f2a272c2931ad3936cb95aace820387d92e56c4 /tools/hciattach_qualcomm.c
parentb3f76b30ec9d0e06d44a9240698698926df9e333 (diff)
downloadbluez-d9253248363b995e44c1f5e393ed1c7aa4ec81ce.tar.gz
tools: Make hciattach_* firmware path build-time configurable
Make hciattach_qualcomm.c and hciattach_tialt.c behave the same way as hciattach_bcm43xx.c does, where FIRMWARE_DIR can be overridden at build time by using -DFIRMWARE_DIR= CFLAGS.
Diffstat (limited to 'tools/hciattach_qualcomm.c')
-rw-r--r--tools/hciattach_qualcomm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hciattach_qualcomm.c b/tools/hciattach_qualcomm.c
index 77b6db170..d228aeec0 100644
--- a/tools/hciattach_qualcomm.c
+++ b/tools/hciattach_qualcomm.c
@@ -222,7 +222,8 @@ int qualcomm_init(int fd, int speed, struct termios *ti, const char *bdaddr)
} while (resp[3] != 0 && resp[4] != 2);
- snprintf(fw, sizeof(fw), "/etc/firmware/%c%c%c%c%c%c_%c%c%c%c.bin",
+ snprintf(fw, sizeof(fw), "%s/%c%c%c%c%c%c_%c%c%c%c.bin",
+ FIRMWARE_DIR,
resp[18], resp[19], resp[20], resp[21],
resp[22], resp[23],
resp[32], resp[33], resp[34], resp[35]);