diff options
Diffstat (limited to 'meta-uhmi/meta-distributed-display-fw/recipes-core')
-rw-r--r-- | meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service | 17 | ||||
-rw-r--r-- | meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb | 44 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service b/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service new file mode 100644 index 00000000..aad36411 --- /dev/null +++ b/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service @@ -0,0 +1,17 @@ +[Unit] +Description=uhmi ivi window manager +After=weston.service + +[Service] +Environment="XDG_RUNTIME_DIR=/run/user/1001" +Environment="WAYLAND_DISPLAY=wayland-0" +EnvironmentFile=-/etc/default/uhmi-ivi-wm + +Type=simple +ExecStart=/usr/bin/uhmi-ivi-wm +KillSignal=SIGKILL +Restart=always +RestartSec=1s + +[Install] +WantedBy=multi-user.target diff --git a/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb b/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb new file mode 100644 index 00000000..daa5fff4 --- /dev/null +++ b/meta-uhmi/meta-distributed-display-fw/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb @@ -0,0 +1,44 @@ +DESCRIPTION = "Panasonic UHMI ivi-window-manager" +DEPENDS = " weston wayland-ivi-extension jansson" + +RDEPENDS:${PN} = " jansson" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=e789951aab02a3028d2e58b90fc933ba" + +FILESEXTRAPATHS:prepend := "${THISDIR}/files:" + +PN="uhmi-ivi-wm" + +SRCREV = "ae86a2803f7a56bbc24d13756a2de78d58da854e" +BRANCH ?= "main" +SRC_URI = " \ + git://github.com/unified-hmi/uhmi-ivi-wm.git;protocol=https;branch=${BRANCH} \ +" +PV = "0.0+git${SRCPV}" + +S = "${WORKDIR}/git" + +inherit cmake + + +inherit systemd +SRC_URI += " file://uhmi-ivi-wm.service" +REQUIRED_DISTRO_FEATURES = "systemd" +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN} = "uhmi-ivi-wm.service" +SYSTEMD_AUTO_ENABLE:${PN} = "enable" +FILES:${PN} += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_system_unitdir}/${SYSTEMD_SERVICE}', '', d)} \ + " + +do_install:append() { + if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${systemd_system_unitdir} + install -m 644 ${WORKDIR}/*.service ${D}/${systemd_system_unitdir} + fi +} + + +FILES:${PN} += " /usr/bin/uhmi-ivi-wm" +FILES:${PN} += " /usr/share/*" |