aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Sarbu <florin.sarbu@windriver.com>2014-10-17 12:49:07 +0300
committerHolger Behrens <holger.behrens@windriver.com>2014-10-17 17:29:18 +0200
commit4e3fe333e3873eba59ef2cd38c60466d95ed4e18 (patch)
tree988aae401c7a8dd1cba3974744e076727c394b39
parentbb985e81e51af1c2d42b45cb1db50c73f017fe80 (diff)
downloadmeta-ivi-4e3fe333e3873eba59ef2cd38c60466d95ed4e18.tar.gz
meta-ivi-4e3fe333e3873eba59ef2cd38c60466d95ed4e18.tar.bz2
meta-ivi-4e3fe333e3873eba59ef2cd38c60466d95ed4e18.zip
AudioManager_PoC: Add systemd user service
NOTE: This service does not autostart Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com> Signed-off-by: Holger Behrens <holger.behrens@windriver.com>
-rw-r--r--meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc.bb6
-rw-r--r--meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc/AudioManager_PoC.service8
2 files changed, 14 insertions, 0 deletions
diff --git a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc.bb b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc.bb
index f169180..0a42a52 100644
--- a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc.bb
+++ b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc.bb
@@ -11,6 +11,7 @@ VERSION = "6.1"
SRC_URI = "git://git.projects.genivi.org/AudioManager.git;branch=${BRANCH};tag=${VERSION} \
file://0001-AudioManager-Proof-of-Concept.patch \
+ file://AudioManager_PoC.service \
"
S = "${WORKDIR}/git"
@@ -21,5 +22,10 @@ QMAKE_PROFILES = "${S}/AudioManagerPoC"
inherit qmake5
+do_install_append() {
+ mkdir -p ${D}/etc/systemd/user
+ cp ${WORKDIR}/AudioManager_PoC.service ${D}/etc/systemd/user
+}
+
FILES_${PN} += "/opt/audiomanager-poc/*"
FILES_${PN}-dbg += "/usr/bin/am-poc/.debug/*"
diff --git a/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc/AudioManager_PoC.service b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc/AudioManager_PoC.service
new file mode 100644
index 0000000..ffed36e
--- /dev/null
+++ b/meta-ivi-demo/recipes-multimedia/audiomanager/audiomanager-poc/AudioManager_PoC.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Genivi AudioManager PoC
+Requires=pulseaudio.service AudioManager.service
+
+[Service]
+Environment=DBUS_FATAL_WARNINGS=0
+Environment=LD_PRELOAD=/usr/lib/libEGL.so
+ExecStart=/usr/bin/AudioManager_PoC \ No newline at end of file