summaryrefslogtreecommitdiffstats
path: root/meta-uhmi/meta-rvgpu/recipes-kernel/virtio-loopback-driver/virtio-loopback-driver_git.bb
blob: 7a2037676363e83e3c4f4ebbb6e3cc7c5e7b5625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SUMMARY = "Virtio Loopback Driver for Remote virtual display device"

LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=688693ebbe31e3eadf819d7d007fa654"

require virtio-loopback-driver.inc

SRC_URI:append = " \
    file://0001-Remove-card_index-option.patch \
"

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"