package/linux-headers: do not default to any version for custom headers
PATCH 1/1 package/linux-headers: do not default to any version for custom headers
Currently, for a custom headers version, or for the same headers as the kernel, wedefault to a "very old" version (i.e. 2.6.x in practice).
However, as Vivien explained, when using the same headers as the kernel, and the kernel is set to use the default version (aka latest version known to Buildroot) of the kernel, one would expect the headers are automatically tracking the latest version. Off course, that expectation is broken because of the above.
However, whatever version we default to, it will probably not be correct, whether we default to the latest version or to the "very old" version.
So, simply drop the specific default version, so the default is now the latest version.
Note: that has the potential to break existing defconfig files that relied on the "very old" version to be the default. Well, whatever, they'll get a build failre quite early, and it is easy to fix.
--- package/linux-headers/Config.in.host | 1 - 1 file changed, 1 deletion(-)
package/linux-headers/Config.in.host +0 -1
@@ -106,7 +106,6 @@ config BR2_DEFAULT_KERNEL_VERSION choice bool "Custom kernel headers series" depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL - default BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD help Specify the kernel headers series you manually selected, above.
Signature · 1 line
2.7.4
Thomas Petazzoni
AppliedPATCH 1/1 package/linux-headers: do not default to any version for custom headers
Hello,
Quoted 20 lines · Yann E. MORIN
Currently, for a custom headers version, or for the same headers as the kernel, wedefault to a "very old" version (i.e. 2.6.x in practice).
However, as Vivien explained, when using the same headers as the kernel, and the kernel is set to use the default version (aka latest version known to Buildroot) of the kernel, one would expect the headers are automatically tracking the latest version. Off course, that expectation is broken because of the above.
However, whatever version we default to, it will probably not be correct, whether we default to the latest version or to the "very old" version.
So, simply drop the specific default version, so the default is now the latest version.
Note: that has the potential to break existing defconfig files that relied on the "very old" version to be the default. Well, whatever, they'll get a build failre quite early, and it is easy to fix.
Quoted 6 lines
Reported-by Vivien Didelot <[email protected]>Signed-off-by "Yann E. MORIN" <[email protected]>Cc Thomas Petazzoni <[email protected]>--- package/linux-headers/Config.in.host | 1 - 1 file changed, 1 deletion(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 package/linux-headers: do not default to any version for custom headers
In reply to Yann E. MORINHi,
Quoted 16 lines · Yann E. MORIN
Currently, for a custom headers version, or for the same headers as the kernel, wedefault to a "very old" version (i.e. 2.6.x in practice).
However, as Vivien explained, when using the same headers as the kernel, and the kernel is set to use the default version (aka latest version known to Buildroot) of the kernel, one would expect the headers are automatically tracking the latest version. Off course, that expectation is broken because of the above.
However, whatever version we default to, it will probably not be correct, whether we default to the latest version or to the "very old" version.
So, simply drop the specific default version, so the default is now the latest version.
Quoted 7 lines
Note: that has the potential to break existing defconfig files that relied on the "very old" version to be the default. Well, whatever, they'll get a build failre quite early, and it is easy to fix.
Reported-by Vivien Didelot <[email protected]>Signed-off-by "Yann E. MORIN" <[email protected]>Cc Thomas Petazzoni <[email protected]>
Sorry I didn't get time to get back on this... Thanks Yann for digging that up! I like this new approach.
For what it's worth:
Thanks,
Vivien