WIFI-SUSPEND: remove service
With new kernel 5.10, the service are no more needed. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> Change-Id: I3d169c2c62a4de61681fa7e437629085f341bb28
This commit is contained in:
parent
7d21671b77
commit
7d5ccd002b
|
|
@ -1,28 +0,0 @@
|
|||
# Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
||||
|
||||
DESCRIPTION = "Systemd service to suspend/resume correctly the wifi"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
SRC_URI = " \
|
||||
file://wifi_brcmfmac_driver.sh \
|
||||
file://wifi-brcmfmac-sleep.service \
|
||||
"
|
||||
|
||||
inherit systemd
|
||||
SYSTEMD_PACKAGES += "${PN}"
|
||||
SYSTEMD_SERVICE_${PN} = "wifi-brcmfmac-sleep.service"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/wifi_brcmfmac_driver.sh ${D}${bindir}/
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system/
|
||||
|
||||
install -m 0644 ${WORKDIR}/wifi-brcmfmac-sleep.service ${D}${systemd_unitdir}/system/
|
||||
fi
|
||||
}
|
||||
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
[Unit]
|
||||
Description=Wifi brcmfmac sleep hook
|
||||
Before=sleep.target
|
||||
StopWhenUnneeded=yes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=-/usr/bin/wifi_brcmfmac_driver.sh unbind
|
||||
ExecStop=-/usr/bin/wifi_brcmfmac_driver.sh bind
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
#!/bin/sh
|
||||
SDMMC_PATH=/sys/bus/amba/drivers/mmci-pl18x
|
||||
|
||||
COMPATIBLE_BOARD=$(cat /proc/device-tree/compatible | sed "s|st,|,|g" | cut -d ',' -f2)
|
||||
|
||||
case $COMPATIBLE_BOARD in
|
||||
stm32mp151a-dk2*)
|
||||
# supported
|
||||
;;
|
||||
stm32mp151f-dk2*)
|
||||
# supported
|
||||
;;
|
||||
stm32mp153a-dk2*)
|
||||
# supported
|
||||
;;
|
||||
stm32mp153f-dk2*)
|
||||
# supported
|
||||
;;
|
||||
stm32mp157c-dk2*)
|
||||
# supported
|
||||
;;
|
||||
stm32mp157f-dk2*)
|
||||
# supported
|
||||
;;
|
||||
*)
|
||||
exit 1;
|
||||
esac
|
||||
|
||||
if [ -d $SDMMC_PATH ];
|
||||
then
|
||||
|
||||
if [ ! -d /sys/bus/sdio/drivers/brcmfmac ];
|
||||
then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
case $1 in
|
||||
bind)
|
||||
echo "bind driver brcmfmac/sdmmc";
|
||||
echo "bind driver brcmfmac/sdmmc" > /dev/kmsg
|
||||
echo 58007000.sdmmc > $SDMMC_PATH/bind
|
||||
;;
|
||||
unbind)
|
||||
echo "unbind driver brcmfmac/sdmmc";
|
||||
echo "unbind driver brcmfmac/sdmmc" > /dev/kmsg
|
||||
echo 58007000.sdmmc > $SDMMC_PATH/unbind
|
||||
;;
|
||||
*)
|
||||
echo "$0 [bind|unbind]"
|
||||
echo "Bind/Unbind wifi driver brcmfmac."
|
||||
;;
|
||||
esac
|
||||
|
||||
fi
|
||||
Loading…
Reference in New Issue