diff options
Diffstat (limited to 'meta-uhmi/recipes-kernel/virtio-loopback-driver')
-rw-r--r-- | meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver.inc | 6 | ||||
-rw-r--r-- | meta-uhmi/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb | 28 |
2 files changed, 34 insertions, 0 deletions
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" |