* [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel
@ 2016-09-12 16:15 Fabio Estevam
2016-09-12 16:15 ` [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5 Fabio Estevam
2016-09-12 21:02 ` [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2016-09-12 16:15 UTC (permalink / raw)
To: buildroot
From: Fabio Estevam <fabio.estevam@nxp.com>
It is useful to be able to build the latest rc kernel, so
add support for it.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- Do not make 4.8-rc the default kernel (Thomas)
| 8 ++++++++
toolchain/toolchain-common.in | 5 +++++
toolchain/toolchain-external/Config.in | 4 ++++
3 files changed, 17 insertions(+)
--git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
index 7fea748..8601eff 100644
--- a/package/linux-headers/Config.in.host
+++ b/package/linux-headers/Config.in.host
@@ -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
diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index 03fa880..b682e4d 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -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
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index 63b7712..c3822ed 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5
2016-09-12 16:15 [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Fabio Estevam
@ 2016-09-12 16:15 ` Fabio Estevam
2016-09-12 21:02 ` Thomas Petazzoni
2016-09-12 21:02 ` [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2016-09-12 16:15 UTC (permalink / raw)
To: buildroot
From: Fabio Estevam <fabio.estevam@nxp.com>
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")
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
Changes since v1:
- None
board/technexion/imx6ulpico/linux.fragment | 1 -
configs/imx6ulpico_defconfig | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/board/technexion/imx6ulpico/linux.fragment b/board/technexion/imx6ulpico/linux.fragment
index 88e323e..892d0cb 100644
--- a/board/technexion/imx6ulpico/linux.fragment
+++ b/board/technexion/imx6ulpico/linux.fragment
@@ -1,2 +1 @@
CONFIG_CFG80211_WEXT=y
-CONFIG_SMP=n
diff --git a/configs/imx6ulpico_defconfig b/configs/imx6ulpico_defconfig
index 8406226..02507c9 100644
--- a/configs/imx6ulpico_defconfig
+++ b/configs/imx6ulpico_defconfig
@@ -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
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel
2016-09-12 16:15 [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Fabio Estevam
2016-09-12 16:15 ` [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5 Fabio Estevam
@ 2016-09-12 21:02 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-09-12 21:02 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 12 Sep 2016 13:15:54 -0300, Fabio Estevam wrote:
> diff --git a/package/linux-headers/Config.in.host b/package/linux-headers/Config.in.host
> index 7fea748..8601eff 100644
> --- a/package/linux-headers/Config.in.host
> +++ b/package/linux-headers/Config.in.host
> @@ -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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5
2016-09-12 16:15 ` [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5 Fabio Estevam
@ 2016-09-12 21:02 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-09-12 21:02 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 12 Sep 2016 13:15:55 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> 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")
>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> Changes since v1:
> - None
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-12 21:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-12 16:15 [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Fabio Estevam
2016-09-12 16:15 ` [Buildroot] [PATCH v2 2/2] mx6ulpico: Use kernel 4.8-rc5 Fabio Estevam
2016-09-12 21:02 ` Thomas Petazzoni
2016-09-12 21:02 ` [Buildroot] [PATCH v2 1/2] linux-headers: Allow building a 4.8-rc kernel Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox