Skip to contentSkip to conversation

linux-headers: Allow building a 4.8-rc kernel

PATCH New Fabio Estevam 2 participants 4 messages Sep 12, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH v2 1/2 linux-headers: Allow building a 4.8-rc kernel

From: Fabio Estevam <[email protected]>

It is useful to be able to build the latest rc kernel, so add support for it.

---
Changes since v1:
- Do not make 4.8-rc the default kernel (Thomas)

 package/linux-headers/Config.in.host   | 8 ++++++++
 toolchain/toolchain-common.in          | 5 +++++
 toolchain/toolchain-external/Config.in | 4 ++++
 3 files changed, 17 insertions(+)
package/linux-headers/Config.in.host +8 -0
index 7fea748..8601eff 100644
@@ -86,6 +86,10 @@ choice
 		bool "Linux 4.7.x kernel headers"
 		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
 
+	config BR2_KERNEL_HEADERS_4_8
+		bool "Linux 4.8-rc kernel headers"
+		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
+
 	config BR2_KERNEL_HEADERS_VERSION
 		bool "Manually specified Linux version"
 endchoice
@@ -106,6 +110,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_4_8
+	bool "4.8.x"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
+
 config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7
 	bool "4.7.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
toolchain/toolchain-common.in +5 -0
index 03fa880..b682e4d 100644
@@ -222,10 +222,15 @@ config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
 	bool
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
 
+config BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
+	bool
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+
 # 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 "4.8"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
 	default "4.7"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
 	default "4.6"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
 	default "4.5"  if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
toolchain/toolchain-external/Config.in +4 -0
index 63b7712..c3822ed 100644
@@ -794,6 +794,10 @@ choice
 	    m = ( LINUX_VERSION_CODE >> 8  ) & 0xFF
 	    p = ( LINUX_VERSION_CODE >> 0  ) & 0xFF
 
+config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_8
+	bool "4.8.x"
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
+
 config BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_7
 	bool "4.7.x"
 	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
Signature · 1 line
2.7.4
author reviewer
#1 lore raw

PATCH v2 2/2 mx6ulpico: Use kernel 4.8-rc5

From: Fabio Estevam <[email protected]>

With kernel 4.8-rc5 we no longer need to use the "CONFIG_SMP=n" workaround as the reboot issue has been fixed upstream by commit 059e232089e4 ("irqchip/gic: Allow self-SGIs for SMP on UP configurations")

---
Changes since v1:
- None

 board/technexion/imx6ulpico/linux.fragment | 1 -
 configs/imx6ulpico_defconfig               | 6 +++---
 2 files changed, 3 insertions(+), 4 deletions(-)
board/technexion/imx6ulpico/linux.fragment +0 -1
index 88e323e..892d0cb 100644
@@ -1,2 +1 @@
 CONFIG_CFG80211_WEXT=y
-CONFIG_SMP=n
configs/imx6ulpico_defconfig +3 -3
index 8406226..02507c9 100644
@@ -2,8 +2,8 @@
 BR2_arm=y
 BR2_cortex_a7=y
 
-# Linux headers same as kernel, a 4.7 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=y
+# Linux headers same as kernel, a 4.8 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8=y
 
 # system
 BR2_TARGET_GENERIC_GETTY_PORT="ttymxc5"
@@ -17,7 +17,7 @@ BR2_GLOBAL_PATCH_DIR="board/technexion/imx6ulpico/patches"
 # kernel
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.7"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.8-rc5"
 BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
 BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/technexion/imx6ulpico/linux.fragment"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
Signature · 1 line
2.7.4
#3 lore raw

PATCH v2 1/2 linux-headers: Allow building a 4.8-rc kernel

In reply to Fabio Estevam

Hello,

package/linux-headers/Config.in.host choice · line 91

Quoted 11 lines · Fabio Estevam
package/linux-headers/Config.in.host +3 -0
index 7fea748..8601eff 100644
@@ -86,6 +86,10 @@ choice
 		bool "Linux 4.7.x kernel headers"
 		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
 
+	config BR2_KERNEL_HEADERS_4_8
+		bool "Linux 4.8-rc kernel headers"
+		select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8

Adding this is not good if you don't update the BR2_DEFAULT_KERNEL_HEADERS option. With this change, if an user selects BR2_KERNEL_HEADERS_4_8, he will get a build error as it will try to download linux-.tar.bz2.

So I've dropped this chunk. It will be added once 4.8 final is released, together with the BR2_DEFAULT_KERNEL_HEADERS change.

I've also updated the commit log to be more explanatory.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH v2 2/2 mx6ulpico: Use kernel 4.8-rc5

In reply to Fabio Estevam

Hello,

Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

With kernel 4.8-rc5 we no longer need to use the "CONFIG_SMP=n" workaround as the reboot issue has been fixed upstream by commit 059e232089e4 ("irqchip/gic: Allow self-SGIs for SMP on UP configurations")

---
Changes since v1:
- None

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com