1 Name: bluetooth-firmware-bcm
2 Summary: firmware and tools for bluetooth
3 # Version/Release/Group are based on mobile package
6 Group: Hardware Support/Handset
7 License: Apache License, Version 2.0
8 Source0: bluetooth-firmware-bcm-%{version}.tar.gz
13 firmware and tools for bluetooth
16 Summary: c210 firmware and tools for bluetooth
20 c210 firmware and tools for bluetooth
23 Summary: e4412 firmware and tools for bluetooth
27 e4412 firmware and tools for bluetooth
30 Summary: msm8974 firmware and tools for bluetooth
34 firmware and tools for bluetooth for redwood msm8974
37 %setup -q -n bluetooth-firmware-bcm-%{version}
40 export CFLAGS+=" -fpie -fvisibility=hidden"
41 export LDFLAGS+=" -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
43 %if "%{?tizen_profile_name}" == "wearable"
44 export CFLAGS="$CFLAGS -DTIZEN_WEARABLE"
48 %if "%{?tizen_profile_name}" == "wearable"
49 -DTIZEN_WEARABLE=YES \
50 %elseif "%{?tizen_profile_name}" == "mobile"
54 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
55 cmake ./ -DCMAKE_INSTALL_PREFIX=%{_prefix} -DPLUGIN_INSTALL_PREFIX=%{_prefix}
63 mkdir -p %{buildroot}/usr/share/license
64 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
65 cat %{_builddir}/%{name}-%{version}/LICENSE.Broadcom >> %{buildroot}/usr/share/license/%{name}
68 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
69 ln -s %{_prefix}/etc/bluetooth/bt-dev-start-c210.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
72 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
73 ln -s %{_prefix}/etc/bluetooth/bt-dev-start-e4412.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
76 rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh
77 ln -s %{_prefix}/etc/bluetooth/bt-dev-start-msm8974.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh
80 %manifest bluetooth-firmware-bcm.manifest
81 %defattr(-,root,root,-)
82 %{_bindir}/bcmtool_4330b1
84 %{_prefix}/etc/bluetooth/BCM4330B1_002.001.003.0221.0265.hcd
85 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
86 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-c210.sh
87 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
88 /usr/share/license/%{name}
91 %manifest bluetooth-firmware-bcm.manifest
92 %defattr(-,root,root,-)
93 %{_bindir}/bcmtool_4330b1
95 %if "%{?tizen_profile_name}" == "wearable"
96 %{_prefix}/etc/bluetooth/BCM20710A1_001.002.014.0059.0060.hcd
97 %{_prefix}/etc/bluetooth/BCM4334B0_002.001.013.1675.1676_B2_ORC.hcd
98 %{_prefix}/etc/bluetooth/BCM4334W_Rinato_TestOnly.hcd
99 %{_prefix}/etc/bluetooth/BCM4334W_001.002.003.0997.1027_B58_ePA.hcd
100 %exclude %{_prefix}/etc/bluetooth/BCM4334B0_002.001.013.0079.0081.hcd
102 %{_prefix}/etc/bluetooth/BCM4334B0_002.001.013.0079.0081.hcd
103 %exclude %{_prefix}/etc/bluetooth/BCM20710A1_001.002.014.0059.0060.hcd
104 %exclude %{_prefix}/etc/bluetooth/BCM4334B0_002.001.013.1675.1676_B2_ORC.hcd
105 %exclude %{_prefix}/etc/bluetooth/BCM4334W_Rinato_TestOnly.hcd
106 %exclude %{_prefix}/etc/bluetooth/BCM4334W_001.002.003.0997.1027_B58_ePA.hcd
108 /usr/share/license/%{name}
109 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
110 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-e4412.sh
111 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
114 %manifest bluetooth-firmware-bcm.manifest
115 %defattr(-,root,root,-)
116 %{_bindir}/bcmtool_4330b1
118 %{_prefix}/etc/bluetooth/BCM4335B0_002.001.006.0233.0234_ORC_RedWood.hcd
119 %{_prefix}/etc/bluetooth/BCM4339_003.001.009.0030.0122_ORC_RedWood.hcd
120 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh
121 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-msm8974.sh
122 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
123 /usr/share/license/%{name}