From 3c7ae78792cf85ec53bc898c099a97c300d27fbc Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 15 Jun 2021 17:39:26 +0000 Subject: [PATCH] kernel: fix toolchain header install the header was built with hostcompiler instead of the pass1 gcc. Signed-off-by: Arne Fitzenreiter --- lfs/linux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lfs/linux b/lfs/linux index 0d0a29cce3..ec76891284 100644 --- 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 -- 2.39.5