]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
linux: Fix build of kernel and headers package
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Dec 2015 22:25:18 +0000 (22:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Dec 2015 22:25:18 +0000 (22:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/linux

index e1d6a4ecb9a3dfd89339b4f7af787e1c162f5365..2f762097fbd399fd8ba6db3897d15ffcb3465a20 100644 (file)
--- 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