mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
kernel: apply arm-multi grsecurity fixes only at arm-multi build
This commit is contained in:
@@ -186,6 +186,7 @@ ifeq "$(KCFG)" "-multi"
|
||||
|
||||
# Apply Arm7-multiarch kernel patches.
|
||||
cd $(DIR_APP) && xzcat $(DIR_DL)/arm7-multi-patches-$(A7M_PATCHES).patch.xz | patch -Np1
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/arm-multi-grsec-compile-fixes.patch
|
||||
|
||||
# Install switch api userspace header
|
||||
cd $(DIR_APP) && install -v -m644 include/uapi/linux/switch.h /usr/include/linux/
|
||||
@@ -197,11 +198,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user