systemd: make PACKAGECONFIG depend on package version

This commit is contained in:
Andreas Cord-Landwehr
2024-10-05 11:19:38 +02:00
parent 51fb0d69fe
commit 0060e75954

View File

@@ -13,7 +13,9 @@
# #
# cgroupv2 # cgroupv2
# -------- # --------
# Enable cgroupv2 (aka: unified hierarchy). Since task T11914, support # cgroupv2 (aka: unified hierarchy) is required since https://phabricator.kde.org/T11914
# for systemd and slices was added. # enable it explicitly for Yocto < Scarthgap; it is on unconditionally enabled
# in later versions
# #
PACKAGECONFIG:append = " xdg-autostart cgroupv2" CONFIG_CGROUPS = "${@bb.utils.contains('PV', '255.4', 'cgroupv2', '', d)}"
PACKAGECONFIG:append = " xdg-autostart ${CONFIG_CGROUPS}"