소스 검색

allow for overriding the default -p1 arguement to patch

Mike Frysinger 21 년 전
부모
커밋
a72e82f6dc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      toolchain/patch-kernel.sh

+ 1 - 1
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