From 9f40106ff471d77ecd978d4b0b48f560a591420e Mon Sep 17 00:00:00 2001 From: Timos Ampelikiotis Date: Thu, 3 Oct 2024 14:54:11 +0300 Subject: Add dynamic layer for raspberrypi and rcar-gen3 Updates [v2]: It backports the virtio-sound module for rcar-gen3 and enables virtio-sound, virtio-can, virtio-input, virtio-console, virtio-loopback for both cases. Updates [v1]: Add linux-renesas kernel configuration Specifically this commit creates a new directory 'linux-renesas' for configuring the required modules to be loaded by that kernel. It is also backports the virtio-sound module and enables virtio-sound, virtio-can, virtio-input, virtio-console and virtio-loopback. Virtio-sound module sources: Source: https://lore.kernel.org/alsa-devel/20210302164709.3142702-1-anton.yakovlev@opensynergy.com Bug-AGL: SPEC-4966 Change-Id: Ie143e690695a526958e07a66ba481887b2e4a248 Signed-off-by: Timos Ampelikiotis --- .../recipes-kernel/linux/linux-common/enable-virtio.cfg | 6 ++++++ .../recipes-kernel/linux/linux-common/virtio_can.cfg | 1 + .../recipes-kernel/linux/linux-common/virtio_input.cfg | 2 ++ .../recipes-kernel/linux/linux-common/virtio_loopback.cfg | 7 +++++++ .../recipes-kernel/linux/linux-common/virtio_sound.cfg | 6 ++++++ .../recipes-kernel/linux/linux-raspberrypi_%.bbappend | 10 ++++++++++ 6 files changed, 32 insertions(+) create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/enable-virtio.cfg create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_can.cfg create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_input.cfg create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_loopback.cfg create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_sound.cfg create mode 100644 meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend (limited to 'meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux') diff --git a/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/enable-virtio.cfg b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/enable-virtio.cfg new file mode 100644 index 00000000..82ff9ea1 --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/enable-virtio.cfg @@ -0,0 +1,6 @@ +CONFIG_VIRTIO=y +CONFIG_VIRTIO_MMIO=y +CONFIG_VIRTIO_BLK=y +CONFIG_VIRTIO_BLK_SCSI=y +CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_PCI_LEGACY=y diff --git a/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_can.cfg b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_can.cfg new file mode 100644 index 00000000..302e4ddb --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_can.cfg @@ -0,0 +1 @@ +CONFIG_CAN_DEV=m diff --git a/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_input.cfg b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_input.cfg new file mode 100644 index 00000000..55e65d1b --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_input.cfg @@ -0,0 +1,2 @@ +CONFIG_INPUT=y +CONFIG_INPUT_EVDEV=y diff --git a/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_loopback.cfg b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_loopback.cfg new file mode 100644 index 00000000..51c8a2d3 --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_loopback.cfg @@ -0,0 +1,7 @@ +CONFIG_HW_RANDOM_VIRTIO=m +CONFIG_VIRTIO_INPUT=m +CONFIG_VIRTIO_CAN=m +CONFIG_VIRTIO_GPIO=m +CONFIG_VIRTIO_CONSOLE=m +CONFIG_VIRTIO_BLK=m +CONFIG_SND_VIRTIO=m diff --git a/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_sound.cfg b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/virtio_sound.cfg new file mode 100644 index 00000000..2e9486e2 --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-common/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/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend new file mode 100644 index 00000000..1de2965f --- /dev/null +++ b/meta-egvirt/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend @@ -0,0 +1,10 @@ + +FILESEXTRAPATHS:prepend := "${THISDIR}/linux-common/:" + +SRC_URI:append = " \ + file://enable-virtio.cfg \ + file://virtio_can.cfg \ + file://virtio_input.cfg \ + file://virtio_loopback.cfg \ + file://virtio_sound.cfg \ +" -- cgit 1.2.3-korg