mirror of
https://github.com/rancher/os-kernel.git
synced 2025-08-31 04:18:38 +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
|
||||
|
||||
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}
|
||||
|
Reference in New Issue
Block a user