forked from len0rd/rockbox
how do i apply a patch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2598 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8a2bd30baa
commit
57bf2ca475
1 changed files with 18 additions and 0 deletions
18
docs/FAQ
18
docs/FAQ
|
|
@ -473,3 +473,21 @@ Q56: I keep shutting off my player in my pocket. Can the OFF (Recorder) or
|
|||
A56: No. Unfortunately, the ON/OFF mechanisms are handled entirely in
|
||||
hardware. The firmware can read the keys, but can't prevent them from
|
||||
shutting off the player.
|
||||
|
||||
Q57: Could you tell me how to apply a patch?
|
||||
A57: There are a ton of ways to apply a patch. One way is to use the (GNU)
|
||||
'patch' program. It used like this:
|
||||
|
||||
$ cd rockbox-root
|
||||
$ patch < magic.patch
|
||||
|
||||
Sometimes, the diff has path info you want to strip so that patch can
|
||||
find your file names. -p then takes off a number of "path parts" from
|
||||
left:
|
||||
|
||||
$ patch -p0 < magic.patch
|
||||
- or -
|
||||
$ patch -p1 < magic.patch
|
||||
|
||||
If patch can't apply some changes that are in the diff, you'll get those
|
||||
particular changes in a file named "[source-file].rej".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue