From 9a095643b4dd34eb7acb69662aa64fa945f4b542 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Sun, 15 Jan 2023 12:48:39 +0100 Subject: [PATCH] system: Warn if systemd is used with kernel < 4.15 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 Reviewed-by: James Hilliard Signed-off-by: Arnout Vandecappelle --- 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