]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
kernel: fix toolchain header install
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 15 Jun 2021 17:39:26 +0000 (17:39 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 5 Jul 2021 05:42:38 +0000 (07:42 +0200)
the header was built with hostcompiler instead of the pass1 gcc.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/linux

index 0d0a29cce303602eb7ec8d66babaf70d845da55a..ec768912844ca6866f1e282f192a5d11dc0ed093 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -58,6 +58,7 @@ VERSUFIX=ipfire$(KCFG)
 ifeq "$(TOOLCHAIN)" "1"
        TARGET = $(DIR_INFO)/linux-$(VER)-$(VERSUFIX)-tools
        HEADERS_PREFIX = $(TOOLS_DIR)
+       EXTRAMAKE = CROSS_COMPILE=$(CROSSTARGET)-
 else
        TARGET = $(DIR_INFO)/linux-$(VER)-$(VERSUFIX)
        HEADERS_PREFIX = /usr
@@ -149,7 +150,7 @@ endif
 
 ifeq "$(KCFG)" "-headers"
        # Install the header files
-       cd $(DIR_APP) && make ARCH=$(HEADERS_ARCH) headers
+       cd $(DIR_APP) && make ARCH=$(HEADERS_ARCH) $(EXTRAMAKE) headers
        -mkdir -pv $(BUILDROOT)/$(HEADERS_PREFIX)/include
        cd $(DIR_APP) && find usr/include -name '.*' -delete
        cd $(DIR_APP) && rm usr/include/Makefile