inherit systemd
SRC_URI = " \
- file://weston-mapviewer-demo.ini \
- file://weston-mapviewer-demo.conf \
file://weston-ready.conf \
file://mapviewer-demo-network-conf.service \
"
do_install() {
- # Install tweaked weston configuration
- install -d ${D}${sysconfdir}/xdg/weston
- install -m 0644 ${WORKDIR}/weston-${PN}.ini ${D}${sysconfdir}/xdg/weston/weston-${PN}.ini
-
- # Install weston service unit configuration over-ride drop-in
- install -d ${D}${systemd_system_unitdir}/weston.service.d
- install -m 0644 ${WORKDIR}/weston-mapviewer-demo.conf ${D}${systemd_system_unitdir}/weston.service.d
-
# Install cluster demo network configuration service unit
+ install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/mapviewer-demo-network-conf.service ${D}${systemd_system_unitdir}
+
# Add symlink to network.target.wants
install -d ${D}${sysconfdir}/systemd/system/network.target.wants
ln -s ${systemd_system_unitdir}/mapviewer-demo-network-conf.service ${D}${sysconfdir}/systemd/system/network.target.wants/
+++ /dev/null
-[Unit]
-# Add dependency on network, since the recorder feature requires it
-After=network.target
-Requires=network.target
-
-[Service]
-# GSM?
-ExecStartPre=/bin/sleep 2
-# Replace default ExecStart line with one that uses the cluster demo specific ini
-ExecStart=
-ExecStart=/usr/bin/weston --idle-time=0 --tty=1 --gst-record --config=weston-mapviewer-demo.ini --log=/run/platform/display/weston.log