From a72e82f6dce4a01911a128fc5b8cd6b0828c2bc8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 18 Oct 2004 20:57:31 +0000 Subject: [PATCH] allow for overriding the default -p1 arguement to patch --- toolchain/patch-kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2