[Buildroot] [git commit branch/next] system: Warn if systemd is used with kernel < 4.15

Arnout Vandecappelle arnout at mind.be
Tue Feb 7 21:51:26 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=9a095643b4dd34eb7acb69662aa64fa945f4b542
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

To quote the README:

> Kernel versions below 4.15 have significant gaps in functionality and
> are not recommended for use with this version of systemd. Taint flag
> 'old-kernel' will be set. Systemd will most likely still function, but
> upstream support and testing are limited.

Signed-off-by: Norbert Lange <nolange79 at gmail.com>
Reviewed-by: James Hilliard <james.hilliard1 at gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout at mind.be>
---
 system/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/system/Config.in b/system/Config.in
index 6100d965e7..1ca7690ea3 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -140,6 +140,10 @@ comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.15, host and targe
 		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
 		!BR2_HOST_GCC_AT_LEAST_5
 
+comment "systemd highly recommends Linux >= 4.15"
+	depends on BR2_INIT_SYSTEMD
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
+
 config BR2_INIT_NONE
 	bool "None"
 	select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT



More information about the buildroot mailing list