summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-18 20:57:31 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-18 20:57:31 +0000
commita72e82f6dce4a01911a128fc5b8cd6b0828c2bc8 (patch)
tree271c4da24b4e9058f56f4bc0f6175d315ad1ea60
parentd9e09adac2e1ad37bddb6725c1eafcc7b0efae35 (diff)
downloadbuildroot-novena-a72e82f6dce4a01911a128fc5b8cd6b0828c2bc8.tar.gz
buildroot-novena-a72e82f6dce4a01911a128fc5b8cd6b0828c2bc8.zip
allow for overriding the default -p1 arguement to patch
-rwxr-xr-xtoolchain/patch-kernel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/patch-kernel.sh b/toolchain/patch-kernel.sh
index 79401c2a7..4156c2298 100755
--- a/toolchain/patch-kernel.sh
+++ b/toolchain/patch-kernel.sh
@@ -36,7 +36,7 @@ for i in ${patchdir}/${patchpattern} ; do
esac
echo ""
echo "Applying ${i} using ${type}: "
- ${uncomp} ${i} | patch -p1 -E -d ${targetdir}
+ ${uncomp} ${i} | patch ${patch_level:--p1} -E -d ${targetdir}
if [ $? != 0 ] ; then
echo "Patch failed! Please fix $i!"
exit 1