1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-02 05:14:29 +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 cp ${CONFIG}/kernel-config ${DIR}/.config
if [ -e "${PATCHES}" ]; then pushd .
pushd . cd ${DIR}
cd ${DIR} echo "are there patches in ${PATCHES}"
patch -p1 -i ${PATCHES}/*.patch for p in ${PATCHES}/*.patch; do
popd echo "patching $p"
fi patch -p1 -i $p
done
popd
tar zcvf ${DIST}/kernel/linux-${KERNEL_VERSION}-src.tgz ${DIR} tar zcvf ${DIST}/kernel/linux-${KERNEL_VERSION}-src.tgz ${DIR}