From 405bba38642c4558611f0058a4fcdab2fe4e2ee3 Mon Sep 17 00:00:00 2001 From: unitexe Date: Tue, 20 Jan 2026 22:46:52 -0600 Subject: Enable kernel PSI by default --- meta-unit-core/conf/layer.conf | 2 ++ .../raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend | 3 +++ meta-unit-core/recipes-kernel/linux/files/psi.cfg | 1 + meta-unit-core/recipes-kernel/linux/psi.inc | 2 ++ 4 files changed, 8 insertions(+) create mode 100644 meta-unit-core/dynamic-layers/raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend create mode 100644 meta-unit-core/recipes-kernel/linux/files/psi.cfg create mode 100644 meta-unit-core/recipes-kernel/linux/psi.inc (limited to 'meta-unit-core') 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" -- cgit v1.2.3