Skip to contentSkip to conversation

Added support for linux headers for testing versions to build cross-compile tools

PATCH New Lucas Zampar Bernardi 2 participants 2 messages Feb 25, 2014 – Apr 20, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Added support for linux headers for testing versions to build cross-compile tools

From: Lucas Zampar Bernardi <[email protected]>

This patch add support to buildroot compile an internal cross-compiler using linux hearders with releases candidates versions (testing).

---
 package/linux-headers/linux-headers.mk |    6 ++++++
 1 file changed, 6 insertions(+)
package/linux-headers/linux-headers.mk +6 -0
index 086e5d5..d6e9dbb 100644
@@ -13,6 +13,12 @@ LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/
 else
 LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x/
 endif
+
+# release candidates are in testing/ subdir
+ifneq ($(findstring -rc,$(LINUX_HEADERS_VERSION)),)
+LINUX_HEADERS_SITE := $(LINUX_HEADERS_SITE)testing/
+endif
+
 LINUX_HEADERS_SOURCE = linux-$(LINUX_HEADERS_VERSION).tar.xz
 
 LINUX_HEADERS_INSTALL_STAGING = YES
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 Added support for linux headers for testing versions to build cross-compile tools

Dear Lucas Zampar Bernardi,

Quoted 13 lines · Lucas Zampar Bernardi

From: Lucas Zampar Bernardi <[email protected]>

This patch add support to buildroot compile an internal cross-compiler using linux hearders with releases candidates versions (testing).

---
 package/linux-headers/linux-headers.mk |    6 ++++++
 1 file changed, 6 insertions(+)
package/linux-headers/linux-headers.mk +0 -0
index 086e5d5..d6e9dbb 100644

package/linux-headers/linux-headers.mk LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/ · line 21

Quoted 9 lines
package/linux-headers/linux-headers.mk +6 -0
@@ -13,6 +13,12 @@ LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v2.6/
 else
 LINUX_HEADERS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/v3.x/
 endif
+
+# release candidates are in testing/ subdir
+ifneq ($(findstring -rc,$(LINUX_HEADERS_VERSION)),)
+LINUX_HEADERS_SITE := $(LINUX_HEADERS_SITE)testing/
+endif
+

Thanks for your patch, and sorry for the slow response. However, instead of having a special case for -rc kernels, I'd prefer to either have a way of specifying a custom Linux kernel tarball for linux-headers, or even better, a way of using the same kernel headers source code as the ones used to build the Linux kernel package itself.

So, for now, I'll mark this specific patch as Rejected, but I'll definitely welcome improvements in one of the two directions proposed above.

Thanks again!

Thomas

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