Support the bcm43xx firmware download using the hciattach tool 84/94884/1 accepted/tizen/3.0/ivi/20161103.002137 accepted/tizen/3.0/mobile/20161103.002050 accepted/tizen/3.0/tv/20161103.002107 accepted/tizen/3.0/wearable/20161103.002123 submit/tizen_3.0/20161102.022329
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 2 Nov 2016 02:14:45 +0000 (11:14 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 2 Nov 2016 02:14:45 +0000 (11:14 +0900)
Change-Id: I25f23970c8af078d8869bbab415f03286e3529d4
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluez.spec
tools/hciattach_bcm43xx.c

index 38807c1..19cd218 100644 (file)
@@ -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"
index 81f38cb..b876d87 100644 (file)
 #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"