All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support
@ 2019-03-21  0:28 Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 1/4] toolchain: Add necessary options to support 5.0 kernel headers Joel Stanley
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Joel Stanley @ 2019-03-21  0:28 UTC (permalink / raw)
  To: buildroot

v2 address Thomas' review
 - Fix 'toolchain: Add necessary options...' and move to the start of
   the series
 - Add toolchain-external-custom patch

Joel Stanley (4):
  toolchain: Add necessary options to support 5.0 kernel headers
  package/linux-headers: add support for Linux 5.0 kernel headers
  linux: add support for Linux 5.0
  toolchain/toolchain-external-custom: Support Linux 5.0 kernel headers

 linux/Config.in                                     |  6 ++----
 linux/linux.hash                                    |  2 ++
 package/linux-headers/Config.in.host                | 13 ++++++++++---
 toolchain/Config.in                                 |  5 +++++
 .../toolchain-external-custom/Config.in.options     |  4 ++++
 5 files changed, 23 insertions(+), 7 deletions(-)

-- 
2.20.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 1/4] toolchain: Add necessary options to support 5.0 kernel headers
  2019-03-21  0:28 [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support Joel Stanley
@ 2019-03-21  0:28 ` Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 2/4] package/linux-headers: add support for Linux " Joel Stanley
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2019-03-21  0:28 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
v2:
 Select correct n-1 kernel
 Make this the first patch, as it introduces _AT_LEAST_5_0

 toolchain/Config.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index bcbc3cf98432..3f297f6b433b 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -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_4_20
+
 # 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
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 2/4] package/linux-headers: add support for Linux 5.0 kernel headers
  2019-03-21  0:28 [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 1/4] toolchain: Add necessary options to support 5.0 kernel headers Joel Stanley
@ 2019-03-21  0:28 ` Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 3/4] linux: add support for Linux 5.0 Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 4/4] toolchain/toolchain-external-custom: Support Linux 5.0 kernel headers Joel Stanley
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2019-03-21  0:28 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: Joel Stanley <joel@jms.id.au>
--
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(-)

diff --git a/linux/linux.hash b/linux/linux.hash
index d7ddd1c87788..5f71e377f423 100644
--- a/linux/linux.hash
+++ b/linux/linux.hash
@@ -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
diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 15574689fa46..d04ccff8580b 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -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 \
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 3/4] linux: add support for Linux 5.0
  2019-03-21  0:28 [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 1/4] toolchain: Add necessary options to support 5.0 kernel headers Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 2/4] package/linux-headers: add support for Linux " Joel Stanley
@ 2019-03-21  0:28 ` Joel Stanley
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 4/4] toolchain/toolchain-external-custom: Support Linux 5.0 kernel headers Joel Stanley
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2019-03-21  0:28 UTC (permalink / raw)
  To: buildroot

This sets 5.0 to be the default, moving from 4.19 which was used instead
of 4.20 for the LTS branch.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 linux/Config.in | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/linux/Config.in b/linux/Config.in
index dc102380533c..7793f71cc3aa 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -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
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH v2 4/4] toolchain/toolchain-external-custom: Support Linux 5.0 kernel headers
  2019-03-21  0:28 [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support Joel Stanley
                   ` (2 preceding siblings ...)
  2019-03-21  0:28 ` [Buildroot] [PATCH v2 3/4] linux: add support for Linux 5.0 Joel Stanley
@ 2019-03-21  0:28 ` Joel Stanley
  3 siblings, 0 replies; 5+ messages in thread
From: Joel Stanley @ 2019-03-21  0:28 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 .../toolchain-external-custom/Config.in.options               | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
index 08a79ee4d958..4f355bb4548d 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
@@ -123,6 +123,10 @@ choice
 	    m = ( LINUX_VERSION_CODE >> 8  ) & 0xFF
 	    p = ( LINUX_VERSION_CODE >> 0  ) & 0xFF
 
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_0
+	bool "5.0.x"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
+
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_20
 	bool "4.20.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-21  0:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21  0:28 [Buildroot] [PATCH v2 0/4] Linux kernel 5.0 support Joel Stanley
2019-03-21  0:28 ` [Buildroot] [PATCH v2 1/4] toolchain: Add necessary options to support 5.0 kernel headers Joel Stanley
2019-03-21  0:28 ` [Buildroot] [PATCH v2 2/4] package/linux-headers: add support for Linux " Joel Stanley
2019-03-21  0:28 ` [Buildroot] [PATCH v2 3/4] linux: add support for Linux 5.0 Joel Stanley
2019-03-21  0:28 ` [Buildroot] [PATCH v2 4/4] toolchain/toolchain-external-custom: Support Linux 5.0 kernel headers Joel Stanley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.