From ffea9709f83fae4f9b7e249d7f5cdc2501259607 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 22 Dec 2015 22:25:18 +0000 Subject: [PATCH] linux: Fix build of kernel and headers package Signed-off-by: Michael Tremer --- lfs/linux | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lfs/linux b/lfs/linux index e1d6a4ecb9..2f762097fb 100644 --- a/lfs/linux +++ b/lfs/linux @@ -132,7 +132,6 @@ ifneq "$(KCFG)" "-headers" cd $(DIR_APP) && xz -c -d $(DIR_DL)/$(GRS_PATCHES) | patch -Np1 cd $(DIR_APP) && rm localversion-grsec cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.7-disable-compat_vdso.patch - cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel-grsec-compile-fixes.patch endif # DVB Patches @@ -198,6 +197,11 @@ ifeq "$(KCFG)" "-rpi" cd $(DIR_APP) && xzcat $(DIR_DL)/rpi-patches-$(RPI_PATCHES).patch.xz | patch -Np1 endif + # Compile fixes +ifeq "$(KCFG)" "-headers" + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/kernel-grsec-compile-fixes.patch +endif + ifeq "$(KCFG)" "-headers" # Install the header files cd $(DIR_APP) && make ARCH=$(HEADERS_ARCH) INSTALL_HDR_PATH=dest headers_install -- 2.39.5