summaryrefslogtreecommitdiffstats
path: root/meta-egvirt/recipes-kernel/linux
diff options
context:
space:
mode:
Diffstat (limited to 'meta-egvirt/recipes-kernel/linux')
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.cfg29
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.scc2
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio-aarch64-standard.scc13
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.cfg16
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.scc2
-rw-r--r--meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend7
6 files changed, 69 insertions, 0 deletions
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.cfg
new file mode 100644
index 00000000..25381e13
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.cfg
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: MIT
+#
+# ARM64
+#
+CONFIG_ARM64=y
+CONFIG_64BIT=y
+
+#
+# Bus support
+#
+CONFIG_ARM_AMBA=y
+
+#
+# Non-8250 serial port support
+#
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+
+#
+# RTC
+#
+CONFIG_RTC_HCTOSYS=y
+CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
+
+#
+# on-CPU RTC drivers
+#
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_PL031=y
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.scc b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.scc
new file mode 100644
index 00000000..1de6faf9
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/aarch64.scc
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+kconf hardware aarch64.cfg
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio-aarch64-standard.scc b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio-aarch64-standard.scc
new file mode 100644
index 00000000..3a241a0e
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio-aarch64-standard.scc
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: MIT
+define KMACHINE virtio-aarch64
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+include aarch64.scc
+include cfg/8250.scc
+include cfg/virtio.scc
+include virtio.scc
+
+# enable the ability to run 32 bit apps
+include arch/arm/32bit-compat.scc
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.cfg b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.cfg
new file mode 100644
index 00000000..b8b36e7a
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.cfg
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: MIT
+
+# TODO: upstream to yocto-kernel-cache/cfg/8250.cfg
+CONFIG_SERIAL_OF_PLATFORM=y
+
+# Remove since PCI is not enabled
+# CONFIG_SERIAL_8250_PCI is not set
+
+# TODO: upstream to yocto-kernel-cache/cfg/virtio.cfg
+CONFIG_VSOCKETS=y
+CONFIG_VSOCKETS_DIAG=y
+CONFIG_VIRTIO_VSOCKETS=y
+CONFIG_VIRTIO_VSOCKETS_COMMON=y
+
+# Needed for CONFIG_DRM_VIRTIO_GPU
+CONFIG_DRM=y
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.scc b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.scc
new file mode 100644
index 00000000..333ac42b
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto/virtio-aarch64/virtio.scc
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+kconf hardware virtio.cfg
diff --git a/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend b/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend
new file mode 100644
index 00000000..ed48a135
--- /dev/null
+++ b/meta-egvirt/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
+
+SRC_URI_append_virtio-aarch64 = " \
+ file://virtio-aarch64;type=kmeta;destsuffix=virtio-aarch64 \
+"
+
+COMPATIBLE_MACHINE_virtio-aarch64 = "virtio-aarch64"