aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-03-06 04:35:09 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2021-04-06 16:56:10 +0300
commitc4d7e0ed73b107ef8efee9709a551bf528022c73 (patch)
tree5b6073bba921376117cb0461c74791f101d152ff
parent1726c040e09bcd856bc357df76e0cae12962d5f1 (diff)
downloadmeta-qcom-c4d7e0ed73b107ef8efee9709a551bf528022c73.tar.gz
meta-qcom-c4d7e0ed73b107ef8efee9709a551bf528022c73.tar.bz2
meta-qcom-c4d7e0ed73b107ef8efee9709a551bf528022c73.zip
fastrpc: provide unit files for adsprpcd/cdsprpcd
Provide unit files for fastrpc daemons. Note, that they are disabled by default. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
-rw-r--r--recipes-support/fastrpc/fastrpc/adsprpcd.service9
-rw-r--r--recipes-support/fastrpc/fastrpc/cdsprpcd.service9
-rw-r--r--recipes-support/fastrpc/fastrpc_git.bb12
3 files changed, 30 insertions, 0 deletions
diff --git a/recipes-support/fastrpc/fastrpc/adsprpcd.service b/recipes-support/fastrpc/fastrpc/adsprpcd.service
new file mode 100644
index 0000000..c2b09bf
--- /dev/null
+++ b/recipes-support/fastrpc/fastrpc/adsprpcd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=aDSP RPC daemon
+
+[Service]
+Type=exec
+ExecStart=/usr/bin/adsprpcd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/recipes-support/fastrpc/fastrpc/cdsprpcd.service b/recipes-support/fastrpc/fastrpc/cdsprpcd.service
new file mode 100644
index 0000000..39b7300
--- /dev/null
+++ b/recipes-support/fastrpc/fastrpc/cdsprpcd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=cDSP RPC daemon
+
+[Service]
+Type=exec
+ExecStart=/usr/bin/cdsprpcd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/recipes-support/fastrpc/fastrpc_git.bb b/recipes-support/fastrpc/fastrpc_git.bb
index da0225c..2cc343e 100644
--- a/recipes-support/fastrpc/fastrpc_git.bb
+++ b/recipes-support/fastrpc/fastrpc_git.bb
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://src/fastrpc_apps_user.c;beginline=1;endline=29;md5=f9
SRCREV = "bc36c705c9b057ca880a423021d3c19f02edeadd"
SRC_URI = "\
git://git.linaro.org/landing-teams/working/qualcomm/fastrpc.git;branch=automake;protocol=https \
+ file://adsprpcd.service \
+ file://cdsprpcd.service \
file://usr-lib-rfsa.service \
file://mount-dsp.sh \
"
@@ -18,13 +20,23 @@ S = "${WORKDIR}/git"
inherit autotools systemd
+PACKAGES += "${PN}-systemd"
+RRECOMMENDS_${PN} += "${PN}-systemd"
+
+SYSTEMD_PACKAGES = "${PN} ${PN}-systemd"
+
SYSTEMD_SERVICE_${PN} = "usr-lib-rfsa.service"
+SYSTEMD_SERVICE_${PN}-systemd = "adsprpcd.service cdsprpcd.service"
+SYSTEMD_AUTO_ENABLE_${PN}-systemd = "disable"
+
do_install_append() {
install -d ${D}${libdir}/rfsa
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/usr-lib-rfsa.service ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/adsprpcd.service ${D}${systemd_unitdir}/system
+ install -m 0644 ${WORKDIR}/cdsprpcd.service ${D}${systemd_unitdir}/system
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/mount-dsp.sh ${D}${sbindir}