From 9caee8b3e31197ea80bfb0246e158691410b7849 Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 2 Nov 2016 11:14:45 +0900 Subject: [PATCH] Support the bcm43xx firmware download using the hciattach tool Change-Id: I25f23970c8af078d8869bbab415f03286e3529d4 Signed-off-by: DoHyun Pyun --- packaging/bluez.spec | 2 +- tools/hciattach_bcm43xx.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/bluez.spec b/packaging/bluez.spec index 38807c1..19cd218 100644 --- a/packaging/bluez.spec +++ b/packaging/bluez.spec @@ -94,7 +94,7 @@ cp %{SOURCE1001} . %build autoreconf -fiv -%if "%{?tizen_target_name}" == "TM1" +%if "%{?tizen_target_name}" == "TM1" || "%{?profile}" == "ivi" export CFLAGS="${CFLAGS} -D__TIZEN_PATCH__ -DBLUEZ5_27_GATT_CLIENT" %else export CFLAGS="${CFLAGS} -D__TIZEN_PATCH__ -D__BROADCOM_PATCH__ -DBLUEZ5_27_GATT_CLIENT" diff --git a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c index 81f38cb..b876d87 100644 --- a/tools/hciattach_bcm43xx.c +++ b/tools/hciattach_bcm43xx.c @@ -43,8 +43,12 @@ #include "hciattach.h" #ifndef FIRMWARE_DIR +#ifdef __TIZEN_PATCH__ +#define FIRMWARE_DIR "/usr/etc/bluetooth" +#else #define FIRMWARE_DIR "/etc/firmware" #endif +#endif #define FW_EXT ".hcd" -- 2.7.4