diff mbox series

[v8,4/4] system: Warn if systemd is used with kernel < 4.15

Message ID 20230115114840.9027-4-nolange79@gmail.com
State Accepted
Headers show
Series [v8,1/4] package/systemd: bump to version 252.4 | expand

Commit Message

Norbert Lange Jan. 15, 2023, 11:48 a.m. UTC
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@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
---
 system/Config.in | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Arnout Vandecappelle Feb. 7, 2023, 9:57 p.m. UTC | #1
On 15/01/2023 12:48, Norbert Lange wrote:
> 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@gmail.com>
> Reviewed-by: James Hilliard <james.hilliard1@gmail.com>

  Finally applied to master and pushed.

  Regards,
  Arnout

> ---
>   system/Config.in | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/system/Config.in b/system/Config.in
> index 232bdfe763..70ddf8df3c 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -141,6 +141,15 @@ 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 headers >= 4.15"
> +	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
> +	depends on BR2_USE_MMU
> +	depends on BR2_TOOLCHAIN_USES_GLIBC
> +	depends on BR2_TOOLCHAIN_HAS_SSP
> +	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
> +	depends on BR2_HOST_GCC_AT_LEAST_5
> +	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
diff mbox series

Patch

diff --git a/system/Config.in b/system/Config.in
index 232bdfe763..70ddf8df3c 100644
--- a/system/Config.in
+++ b/system/Config.in
@@ -141,6 +141,15 @@  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 headers >= 4.15"
+	depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
+	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_TOOLCHAIN_HAS_SSP
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
+	depends on BR2_HOST_GCC_AT_LEAST_5
+	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