From dd48c93dc7ca4e37156413652ba716d008c2edcd Mon Sep 17 00:00:00 2001 From: Kenta Date: Thu, 10 Oct 2024 18:10:32 +0900 Subject: Unified HMI: Consolidate recipes under meta-uhmi Move all recipes from meta-rvgpu and meta-distributed-display-fw into meta-uhmi. And, document the build instructions for RVGPU and DDFW in the README. Bug-AGL: SPEC-5254 Change-Id: I0f3362b0f79105de39584d0a5659ac9e3c9d3a2b Signed-off-by: Kenta --- .../uhmi-ivi-wm/files/uhmi-ivi-wm.service | 17 +++++++++ .../recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb | 44 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 meta-uhmi/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service create mode 100644 meta-uhmi/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb (limited to 'meta-uhmi/recipes-core/uhmi-ivi-wm') diff --git a/meta-uhmi/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service b/meta-uhmi/recipes-core/uhmi-ivi-wm/files/uhmi-ivi-wm.service new file mode 100644 index 00000000..aad36411 --- /dev/null +++ b/meta-uhmi/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/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb b/meta-uhmi/recipes-core/uhmi-ivi-wm/uhmi-ivi-wm_git.bb new file mode 100644 index 00000000..daa5fff4 --- /dev/null +++ b/meta-uhmi/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/*" -- cgit 1.2.3-korg