summaryrefslogtreecommitdiff
path: root/packages/linux-kernel/build-accel-ppp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/linux-kernel/build-accel-ppp.sh')
-rwxr-xr-xpackages/linux-kernel/build-accel-ppp.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/linux-kernel/build-accel-ppp.sh b/packages/linux-kernel/build-accel-ppp.sh
index 01fd7bd8..1685ff8d 100755
--- a/packages/linux-kernel/build-accel-ppp.sh
+++ b/packages/linux-kernel/build-accel-ppp.sh
@@ -13,6 +13,16 @@ if [ ! -f ${KERNEL_VAR_FILE} ]; then
exit 1
fi
+PATCH_DIR=${CWD}/patches/accel-ppp
+if [ -d $PATCH_DIR ]; then
+ cd ${ACCEL_SRC}
+ for patch in $(ls ${PATCH_DIR})
+ do
+ echo "I: Apply patch: ${PATCH_DIR}/${patch}"
+ patch -p1 < ${PATCH_DIR}/${patch}
+ done
+fi
+
. ${KERNEL_VAR_FILE}
mkdir -p ${ACCEL_SRC}/build
cd ${ACCEL_SRC}/build