Download BT firmware on the booting time 66/180266/1 accepted/tizen/unified/20180611.015230 submit/tizen/20180531.061844 submit/tizen/20180607.003351
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 28 May 2018 01:56:43 +0000 (10:56 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 28 May 2018 01:56:43 +0000 (10:56 +0900)
Change-Id: Ia3e241aeb0134e91d9a1cc1f27852695723451d9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
packaging/bluetooth-firmware-marvell.spec
packaging/bt-driver-insmod.path [deleted file]
packaging/bt-driver-insmod.service

index 0eee6b5c6fd46f857b52f0a0906c4628817b3d56..722be7f5984f8d5b90ed368b79f248afb9bc4a5a 100644 (file)
@@ -36,14 +36,10 @@ rm -rf %{buildroot}
 %make_install
 
 install -D -m 0644 packaging/bt-driver-insmod.service %{buildroot}%{_libdir}/systemd/system/bt-driver-insmod.service
-install -D -m 0644 packaging/bt-driver-insmod.path %{buildroot}%{_libdir}/systemd/system/bt-driver-insmod.path
 
 %post artik530
-mkdir -p %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
 mkdir -p %{_libdir}/systemd/system/multi-user.target.wants/
-ln -sf %{_libdir}/systemd/system/bt-driver-insmod.service %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
-ln -sf %{_libdir}/systemd/system/bt-driver-insmod.path %{_sysconfdir}/systemd/default-extra-dependencies/ignore-units.d/
-ln -sf %{_libdir}/systemd/system/bt-driver-insmod.path %{_libdir}/systemd/system/multi-user.target.wants/
+ln -sf %{_libdir}/systemd/system/bt-driver-insmod.service %{_libdir}/systemd/system/multi-user.target.wants/
 
 %files
 %manifest %{name}.manifest
@@ -57,4 +53,3 @@ ln -sf %{_libdir}/systemd/system/bt-driver-insmod.path %{_libdir}/systemd/system
 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-dev-start.sh
 %attr(755,-,-) %{_prefix}/etc/bluetooth/bt-set-addr.sh
 %{_libdir}/systemd/system/bt-driver-insmod.service
-%{_libdir}/systemd/system/bt-driver-insmod.path
diff --git a/packaging/bt-driver-insmod.path b/packaging/bt-driver-insmod.path
deleted file mode 100644 (file)
index 2418979..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[Unit]
-Description=Path activation for the bt-driver-insmod
-
-[Path]
-PathExists=/run/.bt_driver_insmod
index ba2d5d6cf4d675d4da9050220d886068724c4bbd..5c1556042ebc8d4a62d25a2043fc5ea9e25b2e64 100644 (file)
@@ -5,6 +5,7 @@ Description=Bluetooth driver insmod
 Type=oneshot
 ExecStartPre=/bin/sh -c "/bin/systemctl set-environment BT_KERNEL_DIR=$(uname -a | cut -d' ' -f3); /bin/systemctl set-environment BT_DRIVER_PRE=/usr/lib/modules/; /bin/systemctl set-environment BT_DRIVER_APPEND=/kernel/drivers/net/wireless/sd8977/mbt_src/bt8xxx.ko;"
 ExecStart=/usr/sbin/insmod ${BT_DRIVER_PRE}/${BT_KERNEL_DIR}/${BT_DRIVER_APPEND}
+ExecStartPost=/usr/bin/sh -c "/bin/echo 2 > /sys/devices/platform/sd8x-rfkill/pwr_ctrl"
 
 [Install]
 WantedBy=multi-user.target