From d0d69fddf69e544f6b594621754074169480b410 Mon Sep 17 00:00:00 2001 From: Timos Ampelikiotis Date: Thu, 3 Oct 2024 14:50:01 +0300 Subject: [PATCH] Enable the following virtio devices for linux-yocto kernel Specifically this commit enables virtio-can, virtio-input, virtio-sound and virtio-loopback for linux-yocto kernel. Bug-AGL: SPEC-4966 Change-Id: I856631c918129eb27f9dde7f594a0c601c8cc413 Signed-off-by: Timos Ampelikiotis --- meta-egvirt/recipes-kernel/linux/linux-yocto-dev.bbappend | 15 +++++++++++++++ .../recipes-kernel/linux/linux-yocto/virtio_can.cfg | 1 + .../recipes-kernel/linux/linux-yocto/virtio_input.cfg | 2 ++ .../recipes-kernel/linux/linux-yocto/virtio_loopback.cfg | 7 +++++-- .../recipes-kernel/linux/linux-yocto/virtio_sound.cfg | 6 ++++++ meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend | 15 +++++++++++++++ 6 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_can.cfg create mode 100644 meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_input.cfg create mode 100644 meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_sound.cfg diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto-dev.bbappend b/meta-egvirt/recipes-kernel/linux/linux-yocto-dev.bbappend index f1388a33..39fb82cb 100644 --- a/meta-egvirt/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto-dev.bbappend @@ -17,3 +17,18 @@ SRC_URI:append = " \ SRC_URI += " \ file://virtio_loopback.cfg \ " + +# virtio can +SRC_URI += " \ + file://virtio_can.cfg \ +" + +# virtio input +SRC_URI += " \ + file://virtio_input.cfg \ +" + +# virtio sound +SRC_URI += " \ + file://virtio_sound.cfg \ +" diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_can.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_can.cfg new file mode 100644 index 00000000..302e4ddb --- /dev/null +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_can.cfg @@ -0,0 +1 @@ +CONFIG_CAN_DEV=m diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_input.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_input.cfg new file mode 100644 index 00000000..55e65d1b --- /dev/null +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_input.cfg @@ -0,0 +1,2 @@ +CONFIG_INPUT=y +CONFIG_INPUT_EVDEV=y diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_loopback.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_loopback.cfg index f9ddb374..017f4bab 100644 --- a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_loopback.cfg +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_loopback.cfg @@ -1,3 +1,6 @@ CONFIG_HW_RANDOM_VIRTIO=m -CONFIG_VIRTIO_INPUT=y -CONFIG_VIRTIO_GPIO=y +CONFIG_VIRTIO_INPUT=m +CONFIG_VIRTIO_GPIO=m +CONFIG_SND_VIRTIO=m +CONFIG_VIRTIO_CONSOLE=m +CONFIG_VIRTIO_BLK=m diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_sound.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_sound.cfg new file mode 100644 index 00000000..2e9486e2 --- /dev/null +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio_sound.cfg @@ -0,0 +1,6 @@ +CONFIG_SND=y +CONFIG_SOUND=y +CONFIG_SND_TIMER=y +CONFIG_SND_PCM=y +CONFIG_SND_JACK=y +CONFIG_SND_JACK_INPUT_DEV=y diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend index b75875ba..26825294 100644 --- a/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend +++ b/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend @@ -16,3 +16,18 @@ SRC_URI += " \ SRC_URI += " \ file://virtio_loopback.cfg \ " + +# virtio can +SRC_URI += " \ + file://virtio_can.cfg \ +" + +# virtio input +SRC_URI += " \ + file://virtio_input.cfg \ +" + +# virtio sound +SRC_URI += " \ + file://virtio_sound.cfg \ +" -- 2.16.6