linux-dey: rt: apply sysvinit RT fragment only when sysvinit is enabled

The fragment-07-rt-sysvinit.config disables several cgroup
controllers (PIDS, CPUACCT, DEVICE, FREEZER, etc.) and is
intended for minimal RT configurations using sysvinit.

It is currently applied unconditionally for STM32MP RT builds,
including systemd-based systems. This breaks container runtimes
such as podman, which require full cgroup support (notably
CONFIG_CGROUP_PIDS) when running on PREEMPT_RT kernels.

Apply the sysvinit RT fragment only when the 'sysvinit'
DISTRO_FEATURE is enabled, leaving systemd configurations
unaffected.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-03-03 08:54:05 +01:00
parent 280594fce6
commit fd54946eb0
1 changed files with 6 additions and 1 deletions

View File

@ -35,10 +35,15 @@ SRC_URI:append:ccmp25 = " \
RT_CONFIG_FRAGS:use-nxp-bsp = " ${WORKDIR}/fragment-nxp-rt.config"
RT_CONFIG_FRAGS:stm32mpcommon = " \
${S}/arch/arm64/configs/fragment-07-rt.config \
${S}/arch/arm64/configs/fragment-07-rt-sysvinit.config \
${WORKDIR}/fragment-08-deactivate-rng.config \
${WORKDIR}/fragment-10-network-improvment.config \
"
RT_CONFIG_FRAGS:stm32mpcommon:append = " \
${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \
'${S}/arch/arm64/configs/fragment-07-rt-sysvinit.config', \
'', d)} \
"
KERNEL_CONFIG_FRAGMENTS:append = " \
${@bb.utils.contains('DISTRO_FEATURES', 'rt', '${RT_CONFIG_FRAGS}', '', d)} \
"