From: Mike Frysinger Date: Mon, 18 Oct 2004 20:57:31 +0000 (-0000) Subject: allow for overriding the default -p1 arguement to patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a72e82f6dce4a01911a128fc5b8cd6b0828c2bc8;p=buildroot.git allow for overriding the default -p1 arguement to patch --- diff --git a/toolchain/patch-kernel.sh b/toolchain/patch-kernel.sh index 79401c2a74..4156c22985 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