summaryrefslogtreecommitdiffstats
path: root/meta-uhmi/recipes-kernel
diff options
context:
space:
mode:
authorKenta <murakami.kenta002@jp.panasonic.com>2024-10-10 18:10:32 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2024-10-24 08:24:43 +0000
commitdd48c93dc7ca4e37156413652ba716d008c2edcd (patch)
tree0e7d6833f00b2290b8696b2a1e76fc287ef1912f /meta-uhmi/recipes-kernel
parent58da6681f4cd53670cb10d63f37ffaae3e6346c4 (diff)
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 <murakami.kenta002@jp.panasonic.com>
Diffstat (limited to 'meta-uhmi/recipes-kernel')
-rw-r--r--meta-uhmi/recipes-kernel/linux/linux-common/uinput.cfg2
-rw-r--r--meta-uhmi/recipes-kernel/linux/linux-common/virtio-gpu.cfg1
-rw-r--r--meta-uhmi/recipes-kernel/linux/linux-rvgpu.inc8
-rw-r--r--meta-uhmi/recipes-kernel/linux/linux-yocto_%.bbappend1
-rw-r--r--meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver.inc6
-rw-r--r--meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb28
6 files changed, 46 insertions, 0 deletions
diff --git a/meta-uhmi/recipes-kernel/linux/linux-common/uinput.cfg b/meta-uhmi/recipes-kernel/linux/linux-common/uinput.cfg
new file mode 100644
index 00000000..fd1f78ea
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/linux/linux-common/uinput.cfg
@@ -0,0 +1,2 @@
+CONFIG_INPUT_UINPUT=y
+CONFIG_INPUT_MISC=y
diff --git a/meta-uhmi/recipes-kernel/linux/linux-common/virtio-gpu.cfg b/meta-uhmi/recipes-kernel/linux/linux-common/virtio-gpu.cfg
new file mode 100644
index 00000000..5db61502
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/linux/linux-common/virtio-gpu.cfg
@@ -0,0 +1 @@
+CONFIG_DRM_VIRTIO_GPU=y
diff --git a/meta-uhmi/recipes-kernel/linux/linux-rvgpu.inc b/meta-uhmi/recipes-kernel/linux/linux-rvgpu.inc
new file mode 100644
index 00000000..5d405afd
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/linux/linux-rvgpu.inc
@@ -0,0 +1,8 @@
+DESCRIPTION = "Enable linux virtio-loopback driver"
+
+FILESEXTRAPATHS:prepend := "${THISDIR}/linux-common/:"
+
+SRC_URI:append = " \
+ file://virtio-gpu.cfg \
+ file://uinput.cfg \
+"
diff --git a/meta-uhmi/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-uhmi/recipes-kernel/linux/linux-yocto_%.bbappend
new file mode 100644
index 00000000..9dd82e3c
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -0,0 +1 @@
+require linux-rvgpu.inc
diff --git a/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver.inc b/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver.inc
new file mode 100644
index 00000000..a7c0111b
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver.inc
@@ -0,0 +1,6 @@
+PV = "0.0+git${SRCPV}"
+SRCREV = "cf40e4d295c75567cb7d1d03f9fe291e9593e882"
+BRANCH ?= "main"
+SRC_URI = " \
+ git://github.com/unified-hmi/virtio-loopback-driver.git;protocol=https;branch=${BRANCH} \
+"
diff --git a/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb b/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb
new file mode 100644
index 00000000..b9682aee
--- /dev/null
+++ b/meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb
@@ -0,0 +1,28 @@
+SUMMARY = "Remote virtual display device driver"
+
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE.md;md5=688693ebbe31e3eadf819d7d007fa654"
+
+require virtio-loopback-driver.inc
+
+S = "${WORKDIR}/git"
+
+inherit module
+
+EXTRA_OEMAKE = "M=${S} -C ${STAGING_KERNEL_DIR}"
+
+do_install:append() {
+ install -d ${D}${PKG_CONFIG_SYSTEM_INCLUDE_PATH}/linux
+ install -m 755 ${S}/virtio_lo.h ${D}${PKG_CONFIG_SYSTEM_INCLUDE_PATH}/linux/
+ # Add this section to install virtio_lo.conf
+ install -d ${D}${sysconfdir}/modules-load.d
+ echo "virtio_lo" > ${D}${sysconfdir}/modules-load.d/virtio_lo.conf
+}
+
+FILES:${PN} = " \
+ ${libdir}/modules/${KERNEL_VERSION}/extra/virtio_lo* \
+ ${sysconfdir}/modules-load.d \
+"
+
+# Autoload virtio lo driver
+KERNEL_MODULE_AUTOLOAD:append = " virtio_lo"