From 74f84ce53181ec5df006150c859a3e76f54b618d Mon Sep 17 00:00:00 2001 From: Christian Hitz Date: Mon, 18 Aug 2025 08:42:35 +0200 Subject: [PATCH] package/systemd: bump required toolchain headers for systemd-networkd Since 256.12 systemd-networkd requires kernel >=5.4 due to the inclusion of the sockios.h header, which uses the SIOCGSTAMP_OLD macro. The same change has already been applied to master/2025.08 in 7d8d48cd2ba1396ea146e94020939f4dfe08c5cb Signed-off-by: Christian Hitz Signed-off-by: Thomas Perale --- package/systemd/Config.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/package/systemd/Config.in b/package/systemd/Config.in index 851b91aeba..320d416203 100644 --- a/package/systemd/Config.in +++ b/package/systemd/Config.in @@ -52,9 +52,11 @@ menuconfig BR2_PACKAGE_SYSTEMD an elaborate transactional dependency-based service control logic. It can work as a drop-in replacement for sysvinit. - Kernel versions below 4.15 ("recommended baseline") have + Kernel versions below 5.4 ("recommended baseline") have significant gaps in functionality and are not recommended - for use with this version of systemd. + for use with this version of systemd. (e.g. lack race-free + process tracking by pidfd, systemd-networkd, and new mount + API support). Systemd requires a Linux kernel >= 3.15 with the following options enabled: @@ -354,7 +356,8 @@ config BR2_PACKAGE_SYSTEMD_MYHOSTNAME config BR2_PACKAGE_SYSTEMD_NETWORKD bool "enable network manager" - default y + default y if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 help systemd-networkd is a system service that manages networks. It detects and configures network devices as they appear, as @@ -365,6 +368,9 @@ config BR2_PACKAGE_SYSTEMD_NETWORKD https://www.freedesktop.org/software/systemd/man/systemd-networkd.html +comment "systemd-networkd needs a toolchain with kernel headers >= 5.4" + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4 + config BR2_PACKAGE_SYSTEMD_OOMD bool "enable out-of-memory killer" help