Skip to contentSkip to conversation

{linux, linux-headers}: add version 5.12

PATCH New Michael Walle 2 participants 3 messages Apr 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 {linux, linux-headers}: add version 5.12

---

Hi,

c6x was removed in 5.12. But that architecture was never supported in buildroot.

See also:
https://kernelnewbies.org/Linux_5.12

-michael

 linux/Config.in                                     |  4 ++--
 linux/linux.hash                                    |  1 +
 package/linux-headers/Config.in.host                | 13 +++++++++++--
 toolchain/Config.in                                 |  5 +++++
 .../toolchain-external-custom/Config.in.options     |  6 +++++-
 5 files changed, 24 insertions(+), 5 deletions(-)
linux/Config.in +2 -2
index cf790963dd..7f1d9e3342 100644
@@ -28,7 +28,7 @@ choice
 	prompt "Kernel version"
 
 config BR2_LINUX_KERNEL_LATEST_VERSION
-	bool "Latest version (5.11)"
+	bool "Latest version (5.12)"
 
 config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	bool "Latest CIP SLTS version (4.19.182-cip45)"
@@ -125,7 +125,7 @@ endif
 
 config BR2_LINUX_KERNEL_VERSION
 	string
-	default "5.11.8" if BR2_LINUX_KERNEL_LATEST_VERSION
+	default "5.12" if BR2_LINUX_KERNEL_LATEST_VERSION
 	default "4.19.182-cip45" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	default "4.19.165-cip41-rt18" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
 	default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
linux/linux.hash +1 -0
index 992ae22d11..eedda7e007 100644
@@ -1,4 +1,5 @@
 # From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
+sha256  7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366  linux-5.12.tar.xz
 sha256  91f939263a350da676b274e3ec84ad5b57f27ffdf4bd6b74cd002ce21fc0c89f  linux-5.11.8.tar.xz
 sha256  930ae76b9a3b64b98802849aca332d17a706f20595de21e1ae729b55ee461add  linux-5.10.25.tar.xz
 sha256  1c3cef545f366b56332c11c28d074c9d9148c28059a970ec8710826652237560  linux-5.4.107.tar.xz
package/linux-headers/Config.in.host +11 -2
index 6d83ecf952..52b67f31df 100644
@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS
 choice
 	prompt "Kernel Headers"
 	default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
-	default BR2_KERNEL_HEADERS_5_11
+	default BR2_KERNEL_HEADERS_5_12
 	help
 	  Select the kernel version to get headers from.
 
@@ -61,6 +61,10 @@ config BR2_KERNEL_HEADERS_5_10
 config BR2_KERNEL_HEADERS_5_11
 	bool "Linux 5.11.x kernel headers"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
+
+config BR2_KERNEL_HEADERS_5_12
+	bool "Linux 5.12.x kernel headers"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
 	select BR2_KERNEL_HEADERS_LATEST
 
 config BR2_KERNEL_HEADERS_VERSION
@@ -135,8 +139,12 @@ choice
 	  If your kernel headers are more recent than the latest version
 	  in the choice, then select the latest version.
 
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12
+	bool "5.12.x or later"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_11
-	bool "5.11.x or later"
+	bool "5.11.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10
@@ -361,6 +369,7 @@ config BR2_DEFAULT_KERNEL_HEADERS
 	default "5.4.107"	if BR2_KERNEL_HEADERS_5_4
 	default "5.10.25"	if BR2_KERNEL_HEADERS_5_10
 	default "5.11.8"	if BR2_KERNEL_HEADERS_5_11
+	default "5.12"		if BR2_KERNEL_HEADERS_5_12
 	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 \
toolchain/Config.in +5 -0
index dc1e710603..c4df5f1274 100644
@@ -500,6 +500,10 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	bool
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
+
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+	bool
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	select BR2_TOOLCHAIN_HEADERS_LATEST
 
 # This should be selected by the latest version, above, to indicate that
@@ -513,6 +517,7 @@ config BR2_TOOLCHAIN_HEADERS_LATEST
 # stops affecting a value on the first matching default.
 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
 	string
+	default "5.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
 	default "5.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	default "5.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
 	default "5.9"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +5 -1
index 4331c2528a..ba9aeb29ad 100644
@@ -119,8 +119,12 @@ choice
 	  If your toolchain uses headers newer than the latest version
 	  in the choice, then select the latest version.
 
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_12
+	bool "5.12.x or later"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_11
-	bool "5.11.x or later"
+	bool "5.11"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_10
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 configs/kontron_smarc_sal28: use kernel 5.12

---
 configs/kontron_smarc_sal28_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configs/kontron_smarc_sal28_defconfig +2 -2
index d09ba0a2fc..853c7c308a 100644
@@ -1,6 +1,6 @@
 BR2_aarch64=y
 BR2_cortex_a72=y
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_11=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12=y
 BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
 BR2_ROOTFS_OVERLAY="board/kontron/smarc-sal28/rootfs_overlay"
@@ -9,7 +9,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c $(BINARIES_DIR)/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.11"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.12"
 BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="freescale/fsl-ls1028a-kontron-sl28 freescale/fsl-ls1028a-kontron-sl28-var2 freescale/fsl-ls1028a-kontron-sl28-var3-ads2 freescale/fsl-ls1028a-kontron-sl28-var4 freescale/fsl-ls1028a-kontron-kbox-a-230-ls"
Signature · 1 line
2.20.1
#2 lore raw

PATCH 1/2 {linux, linux-headers}: add version 5.12

In reply to Michael Walle
Quoted 1 line · Michael Walle

Both applied to master, thanks.

Regards,
Arnout

Quoted 139 lines

---

Hi,

c6x was removed in 5.12. But that architecture was never supported in buildroot.

See also:
https://kernelnewbies.org/Linux_5.12

(quoted diff) +0 -1
-michael
 
 linux/Config.in                                     |  4 ++--
 linux/linux.hash                                    |  1 +
 package/linux-headers/Config.in.host                | 13 +++++++++++--
 toolchain/Config.in                                 |  5 +++++
 .../toolchain-external-custom/Config.in.options     |  6 +++++-
 5 files changed, 24 insertions(+), 5 deletions(-)
linux/Config.in +2 -2
index cf790963dd..7f1d9e3342 100644
@@ -28,7 +28,7 @@ choice
 	prompt "Kernel version"
 
 config BR2_LINUX_KERNEL_LATEST_VERSION
-	bool "Latest version (5.11)"
+	bool "Latest version (5.12)"
 
 config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	bool "Latest CIP SLTS version (4.19.182-cip45)"
@@ -125,7 +125,7 @@ endif
 
 config BR2_LINUX_KERNEL_VERSION
 	string
-	default "5.11.8" if BR2_LINUX_KERNEL_LATEST_VERSION
+	default "5.12" if BR2_LINUX_KERNEL_LATEST_VERSION
 	default "4.19.182-cip45" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	default "4.19.165-cip41-rt18" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
 	default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
linux/linux.hash +1 -0
index 992ae22d11..eedda7e007 100644
@@ -1,4 +1,5 @@
 # From https://www.kernel.org/pub/linux/kernel/v5.x/sha256sums.asc
+sha256  7d0df6f2bf2384d68d0bd8e1fe3e071d64364dcdc6002e7b5c87c92d48fac366  linux-5.12.tar.xz
 sha256  91f939263a350da676b274e3ec84ad5b57f27ffdf4bd6b74cd002ce21fc0c89f  linux-5.11.8.tar.xz
 sha256  930ae76b9a3b64b98802849aca332d17a706f20595de21e1ae729b55ee461add  linux-5.10.25.tar.xz
 sha256  1c3cef545f366b56332c11c28d074c9d9148c28059a970ec8710826652237560  linux-5.4.107.tar.xz
package/linux-headers/Config.in.host +11 -2
index 6d83ecf952..52b67f31df 100644
@@ -6,7 +6,7 @@ config BR2_PACKAGE_HOST_LINUX_HEADERS
 choice
 	prompt "Kernel Headers"
 	default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
-	default BR2_KERNEL_HEADERS_5_11
+	default BR2_KERNEL_HEADERS_5_12
 	help
 	  Select the kernel version to get headers from.
 
@@ -61,6 +61,10 @@ config BR2_KERNEL_HEADERS_5_10
 config BR2_KERNEL_HEADERS_5_11
 	bool "Linux 5.11.x kernel headers"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
+
+config BR2_KERNEL_HEADERS_5_12
+	bool "Linux 5.12.x kernel headers"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
 	select BR2_KERNEL_HEADERS_LATEST
 
 config BR2_KERNEL_HEADERS_VERSION
@@ -135,8 +139,12 @@ choice
 	  If your kernel headers are more recent than the latest version
 	  in the choice, then select the latest version.
 
+config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12
+	bool "5.12.x or later"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_11
-	bool "5.11.x or later"
+	bool "5.11.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10
@@ -361,6 +369,7 @@ config BR2_DEFAULT_KERNEL_HEADERS
 	default "5.4.107"	if BR2_KERNEL_HEADERS_5_4
 	default "5.10.25"	if BR2_KERNEL_HEADERS_5_10
 	default "5.11.8"	if BR2_KERNEL_HEADERS_5_11
+	default "5.12"		if BR2_KERNEL_HEADERS_5_12
 	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 \
toolchain/Config.in +5 -0
index dc1e710603..c4df5f1274 100644
@@ -500,6 +500,10 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
 config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	bool
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
+
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+	bool
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	select BR2_TOOLCHAIN_HEADERS_LATEST
 
 # This should be selected by the latest version, above, to indicate that
@@ -513,6 +517,7 @@ config BR2_TOOLCHAIN_HEADERS_LATEST
 # stops affecting a value on the first matching default.
 config BR2_TOOLCHAIN_HEADERS_AT_LEAST
 	string
+	default "5.12" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
 	default "5.11" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 	default "5.10" if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
 	default "5.9"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +5 -1
index 4331c2528a..ba9aeb29ad 100644
@@ -119,8 +119,12 @@ choice
 	  If your toolchain uses headers newer than the latest version
 	  in the choice, then select the latest version.
 
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_12
+	bool "5.12.x or later"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
+
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_11
-	bool "5.11.x or later"
+	bool "5.11"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
 
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_10