Linux kernel 5.0 support
cover Linux kernel 5.0 support
Joel Stanley (3):
package/linux-headers: add support for Linux 5.0 kernel headers
toolchain: Add necessary options to support 5.0 kernel headers
linux: add support for Linux 5.0
linux/Config.in | 6 ++---- linux/linux.hash | 2 ++ package/linux-headers/Config.in.host | 13 ++++++++++--- toolchain/Config.in | 5 +++++ 4 files changed, 19 insertions(+), 7 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/3 package/linux-headers: add support for Linux 5.0 kernel headers
This sets 5.0 to be the default, moving from 4.19 which was used instead of 4.20 for the LTS branch.
We need to update linux/linux.hash as part of this commit, because package/linux-headers/linux-headers.hash is a symlink to linux/linux.hash.
--
I kept Thomas' message about the hash as a reminder. We could drop that text.
--- linux/linux.hash | 2 ++ package/linux-headers/Config.in.host | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-)
linux/linux.hash +2 -0
@@ -1,3 +1,5 @@ +# From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc +sha256 43bfea3a6b24b4e5f63190409a199bee8cb93dbea01c52ad7f017078ebdf7c9b linux-5.0.2.tar.xz # From https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc sha256 1cf544308195250805e0731c716691bea4c1ed29e03e6f9ae5be6dc16785a504 linux-4.20.12.tar.xz sha256 7ec71d90d6e96e6f741676d157ac06f30c75be4eaf1649143a3c8b7d4f919731 linux-4.19.25.tar.xz
package/linux-headers/Config.in.host +10 -3
@@ -6,9 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS choice prompt "Kernel Headers" default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL - # We are intentionally staying at 4.19 for the next Buildroot - # LTS release (2019.02) - default BR2_KERNEL_HEADERS_4_19 + default BR2_KERNEL_HEADERS_5_0 help Select the kernel version to get headers from.
@@ -51,6 +49,10 @@ config BR2_KERNEL_HEADERS_4_20 bool "Linux 4.20.x kernel headers" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 +config BR2_KERNEL_HEADERS_5_0 + bool "Linux 5.0.x kernel headers" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 + config BR2_KERNEL_HEADERS_VERSION bool "Manually specified Linux version" help
@@ -116,6 +118,10 @@ choice This is used to hide/show some packages that have strict requirements on the version of kernel headers. +config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0 + bool "5.0.x" + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 + config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_20 bool "4.20.x" select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
@@ -292,6 +298,7 @@ config BR2_DEFAULT_KERNEL_HEADERS default "4.14.103" if BR2_KERNEL_HEADERS_4_14 default "4.19.25" if BR2_KERNEL_HEADERS_4_19 default "4.20.12" if BR2_KERNEL_HEADERS_4_20 + default "5.0.2" if BR2_KERNEL_HEADERS_5_0 default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
Signature · 1 line
2.20.1
PATCH 2/3 toolchain: Add necessary options to support 5.0 kernel headers
In reply to Joel Stanley--- toolchain/Config.in | 5 +++++ 1 file changed, 5 insertions(+)
toolchain/Config.in +5 -0
@@ -397,10 +397,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 bool select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 +config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 + bool + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 + # This order guarantees that the highest version is set, as kconfig # stops affecting a value on the first matching default. config BR2_TOOLCHAIN_HEADERS_AT_LEAST string + default "5.0" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 default "4.20" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 default "4.19" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 default "4.18" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
Signature · 1 line
2.20.1
PATCH 2/3 toolchain: Add necessary options to support 5.0 kernel headers
Hello Joel,
Quoted 10 lines · On Tue, 19 Mar 2019 10:36:37 +1030 Joel Stanley <[email protected]> wrote:
Signed-off-by Joel Stanley <[email protected]>--- toolchain/Config.in | 5 +++++ 1 file changed, 5 insertions(+)toolchain/Config.in +0
-0
toolchain/Config.in config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 · line 402
Quoted 6 lines
toolchain/Config.in +3
-0@@ -397,10 +397,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20 bool select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19 +config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 + bool + select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
This patch should come first in your series, because your PATCH 1/3 does this:
+ select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
i.e PATCH 1/3 depends on PATCH 2/3.
Another thing that is missing in your series is another patch to add the 5.0 kernel header selection to toolchain/toolchain-external/toolchain-external-custom/Config.in.options.
Could you fix these two issues and resend ?
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 3/3 linux: add support for Linux 5.0
In reply to Joel StanleyThis sets 5.0 to be the default, moving from 4.19 which was used instead of 4.20 for the LTS branch.
--- linux/Config.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
linux/Config.in +2 -4
@@ -30,10 +30,8 @@ config BR2_LINUX_NEEDS_MODULES choice prompt "Kernel version" -# We are intentionally staying at 4.19 for the next Buildroot LTS -# release (2019.02) config BR2_LINUX_KERNEL_LATEST_VERSION - bool "Latest version (4.19)" + bool "Latest version (5.0)" config BR2_LINUX_KERNEL_LATEST_CIP_VERSION bool "Latest CIP SLTS version (v4.4.171-cip30)"
@@ -123,7 +121,7 @@ endif config BR2_LINUX_KERNEL_VERSION string - default "4.19.25" if BR2_LINUX_KERNEL_LATEST_VERSION + default "5.0.2" if BR2_LINUX_KERNEL_LATEST_VERSION default "v4.4.171-cip30" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \ if BR2_LINUX_KERNEL_CUSTOM_VERSION
Signature · 1 line
2.20.1