summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-unit-core/conf/layer.conf2
-rw-r--r--meta-unit-core/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend3
-rw-r--r--meta-unit-core/recipes-kernel/linux/files/psi.cfg1
-rw-r--r--meta-unit-core/recipes-kernel/linux/psi.inc2
4 files changed, 8 insertions, 0 deletions
diff --git a/meta-unit-core/conf/layer.conf b/meta-unit-core/conf/layer.conf
index fd90f46..64e7d24 100644
--- a/meta-unit-core/conf/layer.conf
+++ b/meta-unit-core/conf/layer.conf
@@ -15,6 +15,8 @@ BBFILES_DYNAMIC += " \
raspberrypi-extra-layer:${LAYERDIR}/dynamic-layers/raspberrypi-extra-layer/recipes-*/*/*.bbappend \
unit-profiling-layer:${LAYERDIR}/dynamic-layers/unit-profiling-layer/recipes-*/*/*.bb \
unit-profiling-layer:${LAYERDIR}/dynamic-layers/unit-profiling-layer/recipes-*/*/*.bbappend \
+ raspberrypi:${LAYERDIR}/dynamic-layers/raspberrypi/recipes-*/*/*.bb \
+ raspberrypi:${LAYERDIR}/dynamic-layers/raspberrypi/recipes-*/*/*.bbappend \
"
UNIT_CORE_LAYERDIR = "${LAYERDIR}"
diff --git a/meta-unit-core/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend b/meta-unit-core/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
new file mode 100644
index 0000000..27a1031
--- /dev/null
+++ b/meta-unit-core/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS:prepend := "${UNIT_CORE_LAYERDIR}/recipes-kernel/linux/files:"
+
+require recipes-kernel/linux/psi.inc
diff --git a/meta-unit-core/recipes-kernel/linux/files/psi.cfg b/meta-unit-core/recipes-kernel/linux/files/psi.cfg
new file mode 100644
index 0000000..51ea6c1
--- /dev/null
+++ b/meta-unit-core/recipes-kernel/linux/files/psi.cfg
@@ -0,0 +1 @@
+CONFIG_PSI_DEFAULT_DISABLED=n
diff --git a/meta-unit-core/recipes-kernel/linux/psi.inc b/meta-unit-core/recipes-kernel/linux/psi.inc
new file mode 100644
index 0000000..8ed87b9
--- /dev/null
+++ b/meta-unit-core/recipes-kernel/linux/psi.inc
@@ -0,0 +1,2 @@
+# Allows prometheus to get pressure metrics.
+SRC_URI:append = " file://psi.cfg"