[Buildroot] [PATCH 2020.02.x] package/systemd: bump required toolchain headers for systemd-networkd

Arnout Vandecappelle arnout at rnout.be
Mon Sep 1 06:07:46 UTC 2025



On 18/08/2025 08:42, Christian Hitz via buildroot wrote:
> From: Christian Hitz <christian.hitz at bbv.ch>
> 
> 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 <christian.hitz at bbv.ch>

  Applied to 2025.02.x and 2025.05.x, thanks.

  Regards,
  Arnout

> ---
>   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



More information about the buildroot mailing list