summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README28
-rw-r--r--arch/arm/aarch64.cfg29
-rw-r--r--arch/arm/aarch64.scc2
-rw-r--r--bsp/virtio/agl-virtio.cfg4
-rw-r--r--bsp/virtio/agl-virtio.scc2
5 files changed, 65 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..64e2cd0
--- /dev/null
+++ b/README
@@ -0,0 +1,28 @@
+agl-yocto-kernel-meta
+=====================
+
+Yocto Project kernel rich Metadata [1] for AGL based on YP's kernel rich
+metadata [2].
+
+Using Yocto Linux Kernel is recommended in "Yocto Project Board Support Package
+Developer's Guide" [3]:
+
+> Kernel recipes in the BSP should be based on a Yocto Linux kernel. Basing your
+> recipes on these kernels reduces the costs for maintaining the BSP and
+> increases its scalability.
+
+YP advanced kernel metadata besides configuration fragments and patches,
+realizes scc description files (scc stands for Series Configuration Control, but
+the naming has less significance in the current implementation of the tooling
+than it had in the past) which allow to:
+
+* group configuration fragments and patches into a reusable unit
+* include scc files from other scc files
+* besides BSP description scc file, additional scc files can be easily applied
+ by adding them to KERNEL_FEATURES variable
+
+and much more.
+
+[1]: https://docs.yoctoproject.org/4.0.2/kernel-dev/advanced.html
+[2]: https://git.yoctoproject.org/yocto-kernel-cache
+[3]: https://docs.yoctoproject.org/4.0.2/bsp-guide/bsp.html#released-bsp-recommendations
diff --git a/arch/arm/aarch64.cfg b/arch/arm/aarch64.cfg
new file mode 100644
index 0000000..25381e1
--- /dev/null
+++ b/arch/arm/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/arch/arm/aarch64.scc b/arch/arm/aarch64.scc
new file mode 100644
index 0000000..1de6faf
--- /dev/null
+++ b/arch/arm/aarch64.scc
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+kconf hardware aarch64.cfg
diff --git a/bsp/virtio/agl-virtio.cfg b/bsp/virtio/agl-virtio.cfg
new file mode 100644
index 0000000..118aecb
--- /dev/null
+++ b/bsp/virtio/agl-virtio.cfg
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: MIT
+
+# Remove since PCI is not enabled
+# CONFIG_SERIAL_8250_PCI is not set
diff --git a/bsp/virtio/agl-virtio.scc b/bsp/virtio/agl-virtio.scc
new file mode 100644
index 0000000..5b8f06c
--- /dev/null
+++ b/bsp/virtio/agl-virtio.scc
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+kconf hardware agl-virtio.cfg