aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/qrtr/qrtr_git.bb
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-06-15 10:41:58 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-06-15 10:41:58 +0100
commitdc1548af1af6bc591e16b596f59185099ad01d5c (patch)
tree139d594af344209853abbd053a68828a18e53bb9 /recipes-support/qrtr/qrtr_git.bb
parentcc825d819ea701156c1236eec671f0a00592d9d5 (diff)
downloadmeta-qcom-dc1548af1af6bc591e16b596f59185099ad01d5c.tar.gz
meta-qcom-dc1548af1af6bc591e16b596f59185099ad01d5c.tar.bz2
meta-qcom-dc1548af1af6bc591e16b596f59185099ad01d5c.zip
qrtr: add systemd init service
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'recipes-support/qrtr/qrtr_git.bb')
-rw-r--r--recipes-support/qrtr/qrtr_git.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-support/qrtr/qrtr_git.bb b/recipes-support/qrtr/qrtr_git.bb
index f76e437..74ccb79 100644
--- a/recipes-support/qrtr/qrtr_git.bb
+++ b/recipes-support/qrtr/qrtr_git.bb
@@ -5,8 +5,11 @@ SECTION = "devel"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=15329706fbfcb5fc5edcc1bc7c139da5"
+inherit systemd
+
SRCREV = "56074bd5fe8f487b3a681b73e669cdbfe3b7b555"
SRC_URI = "git://github.com/andersson/${BPN}.git;branch=master;protocol=https"
+SRC_URI += "file://qrtr.service"
PV = "0.0+${SRCPV}"
@@ -14,7 +17,13 @@ S = "${WORKDIR}/git"
do_install () {
oe_runmake install DESTDIR=${D}
+
+ sed -i -e s:/usr/bin:${bindir}:g ${WORKDIR}/qrtr.service
+ install -d ${D}${systemd_unitdir}/system/
+ install -m 0644 ${WORKDIR}/qrtr.service ${D}${systemd_unitdir}/system
}
+SYSTEMD_SERVICE_${PN} = "qrtr.service"
+
PACKAGES =+ "qrtr-apps"
FILES_qrtr-apps = "${bindir}/*"