X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Fbluetooth-firmware-bcm.spec;h=1672264ed02a4e1a61ceb3c807ab4c9036d305cb;hb=refs%2Ftags%2Fsubmit%2Ftizen%2F20190714.235650;hp=6f06d31121d2f0677617790ef514668849380a09;hpb=348c797dc3ba2eebec5e547bbc92ce2f1f855c1a;p=platform%2Fadaptation%2Fbluetooth-firmware-bcm.git diff --git a/packaging/bluetooth-firmware-bcm.spec b/packaging/bluetooth-firmware-bcm.spec index 6f06d31..1672264 100644 --- a/packaging/bluetooth-firmware-bcm.spec +++ b/packaging/bluetooth-firmware-bcm.spec @@ -3,7 +3,7 @@ Summary: firmware and tools for bluetooth Version: 0.2.0 Release: 1 Group: Hardware Support/Handset -License: Apache-2.0 +License: Apache-2.0 and Broadcom # NOTE: Source name does not match package name. This should be # resolved in the future, by I don't have that power. - Ryan Ware Source0: %{name}-%{version}.tar.gz @@ -33,6 +33,22 @@ Provides: bluetooth-scripts %description artik bcm firmware and tools for artik +%package exynos7270 +Summary: bcm firmware and tools for exynos7270 +Group: Hardware Support/Handset +Provides: bluetooth-scripts + +%description exynos7270 +BT firmware and tools for exynos7270 + +%package rpi3 +Summary: bcm firmware and tools for rpi3 +Group: Hardware Support/Handset +Provides: bluetooth-scripts + +%description rpi3 +BT firmware and tools for rpi3 + %prep %setup -q @@ -45,14 +61,12 @@ rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}/usr/share/license -cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name} -cat %{_builddir}/%{name}-%{version}/LICENSE.Broadcom >> %{buildroot}/usr/share/license/%{name} - install -D -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/bluetooth-hciattach@.service install -D -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/bluetooth-hci-device.service %files +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Broadcom %defattr(-,root,root,-) #%{_bindir}/bcmtool_4330b1 %exclude %{_bindir}/bcmtool_4343w @@ -72,6 +86,8 @@ rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh %files exynos3250 +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Broadcom %defattr(-,root,root,-) %{_bindir}/bcmtool_4343w %{_bindir}/setbd @@ -80,7 +96,6 @@ ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %{_prefix}/etc/bluetoo %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-exynos3250.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh -/usr/share/license/%{name} %{_libdir}/systemd/system/bluetooth-hciattach@.service %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest @@ -90,6 +105,8 @@ rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh ln -s %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh %files artik +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Broadcom %defattr(644,root,root,-) %{_bindir}/brcm_patchram_plus %{_bindir}/setbd @@ -98,7 +115,41 @@ ln -s %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %{_prefix}/etc/bluetooth/bt %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-artik.sh %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh -/usr/share/license/%{name} %{_libdir}/systemd/system/bluetooth-hciattach@.service %{_libdir}/systemd/system/bluetooth-hci-device.service %manifest %{name}.manifest + +%post exynos7270 +rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh +ln -s %{_prefix}/etc/bluetooth/bt-dev-start-exynos7270.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh +rm -rf /lib/firmware/43012B0.hex +ln -s /lib/firmware/bcm43012/BCM43012B0_002.001.021.0081.0087.hex /lib/firmware/43012B0.hex + +%files exynos7270 +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Broadcom +%defattr(-,root,root,-) +%{_bindir}/setbd +/lib/firmware/bcm43012/BCM43012B0_002.001.021.0081.0087.hex +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end.sh +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-exynos7270.sh +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh +%{_libdir}/systemd/system/bluetooth-hciattach@.service +%{_libdir}/systemd/system/bluetooth-hci-device.service +%manifest %{name}.manifest + +%post rpi3 +rm -rf %{_prefix}/etc/bluetooth/bt-dev-start.sh +rm -rf %{_prefix}/etc/bluetooth/bt-dev-end.sh +ln -s %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-start.sh +ln -s %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh %{_prefix}/etc/bluetooth/bt-dev-end.sh + +%files rpi3 +%manifest %{name}.manifest +%license LICENSE.APLv2 LICENSE.Broadcom +%defattr(-,root,root,-) +/lib/firmware/brcm/BCM43430A1.hcd +/lib/firmware/brcm/BCM4345C0.hcd +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-end-rpi3.sh +%attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start-rpi3.sh +%manifest %{name}.manifest