1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-08-31 12:26:37 +00:00

Fix applying multiple patches - used it for a test build of 4.9.34rc

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-06-21 11:31:55 +00:00
parent c5e983d655
commit 2f9646f1aa

View File

@@ -24,11 +24,14 @@ fi
cp ${CONFIG}/kernel-config ${DIR}/.config
if [ -e "${PATCHES}" ]; then
pushd .
cd ${DIR}
patch -p1 -i ${PATCHES}/*.patch
popd
fi
pushd .
cd ${DIR}
echo "are there patches in ${PATCHES}"
for p in ${PATCHES}/*.patch; do
echo "patching $p"
patch -p1 -i $p
done
popd
tar zcvf ${DIST}/kernel/linux-${KERNEL_VERSION}-src.tgz ${DIR}