• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/scripts/

Lines Matching refs:patch

3 #   usage: patch-kernel [ sourcedir [ patchdir [ stopversion ] [ -acxx ] ] ]
4 # The source directory defaults to /usr/src/linux, and the patch
7 # scripts/patch-kernel . ..
10 # scripts/patch-kernel . .. -ac
11 # Get the latest Linux kernel and patch it with the latest ac patch
12 # scripts/patch-kernel . .. 2.4.9
14 # scripts/patch-kernel . .. 2.4.9 -ac
16 # scripts/patch-kernel . .. 2.4.9 -ac11
17 # Gets 2.4.9 with ac patch ac11
22 # It then looks for patches for the next sublevel in the patch directory.
23 # This is applied using "patch -p1 -s" from within the kernel directory.
24 # A check is then made for "*.rej" files to see if the patch was
38 # Fixed previous patch so that if we are already at the correct version
39 # not to patch up.
52 # increments the SUBLEVEL (x in 2.6.x.y) until no more patch files are found;
56 # patch-kernel does not normally support reverse patching, but does so when
61 PNAME=patch-kernel
72 patch directory defaults to the current directory,
91 echo "cannot find patch file: ${patch}"
139 # Apply a patch and check it goes in cleanly
140 # First param is patch name (e.g. patch-2.4.9-ac5) - without path or extension
144 if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
163 # arg1 is patch filename
166 if $uncomp ${patchdir}/"$1"${ext} | patch -p1 -Rs -N -E -d $sourcedir
238 patch="patch-${CURRENTFULLVERSION}"
239 findFile $patchdir/${patch} || noFile ${patch}
240 reversePatch ${patch} || exit 1
268 patch=patch-$FULLVERSION
270 findFile $patchdir/${patch} || noFile ${patch}
272 # Apply the patch and check all is OK
273 applyPatch $patch || break
285 patch=patch-$FULLVERSION
288 findFile $patchdir/${patch} || noFile ${patch}
290 # Apply the patch and check all is OK
291 applyPatch $patch || break
303 for PATCHNAMES in $patchdir/patch-${CURRENTFULLVERSION}-ac*\.*
305 ACVALUE=`echo $PATCHNAMES | sed -e 's/^.*patch-[0-9.]*-ac\([0-9]*\).*/\1/'`
306 # Check it is actually a recognised patch type
307 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${ACVALUE} || break
315 findFile $patchdir/patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH} || break
316 applyPatch patch-${CURRENTFULLVERSION}-ac${HIGHESTPATCH}
322 findFile $patchdir/patch-${CURRENTFULLVERSION}${gotac} || {
323 echo "Sorry, I couldn't find the $gotac patch for $CURRENTFULLVERSION. Hohum."
326 applyPatch patch-${CURRENTFULLVERSION}${gotac}