package/systemd: enable required oomd kernel options

In order for systemd-oomd to run CONFIG_PSI and CONFIG_MEMCG must be
enabled in the kernel config.

See:
e7b3f1a6c3
aa329b8922

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
(cherry picked from commit be5f14657a)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
James Hilliard 2024-07-04 19:11:14 -06:00 committed by Peter Korsgaard
parent e0cb58f1ca
commit 5703b1a03e

View File

@ -480,6 +480,10 @@ endif
ifeq ($(BR2_PACKAGE_SYSTEMD_OOMD),y)
SYSTEMD_CONF_OPTS += -Doomd=true
SYSTEMD_OOMD_USER = systemd-oom -1 systemd-oom -1 * - - - systemd Userspace OOM Killer
define SYSTEMD_OOMD_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_PSI)
$(call KCONFIG_ENABLE_OPT,CONFIG_MEMCG)
endef
else
SYSTEMD_CONF_OPTS += -Doomd=false
endif
@ -804,6 +808,8 @@ define SYSTEMD_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS4_FS)
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_ACL)
$(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_XATTR)
$(SYSTEMD_OOMD_LINUX_CONFIG_FIXUPS)
endef
# We need a very minimal host variant, so we disable as much as possible.