mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-01 21:07:09 +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:
@@ -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}
|
||||||
|
Reference in New Issue
Block a user