From 57bf2ca47599058eb39e7d151bfb574fd31f883f Mon Sep 17 00:00:00 2001 From: Robert Hak Date: Sat, 12 Oct 2002 08:34:57 +0000 Subject: how do i apply a patch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2598 a1c6a512-1295-4272-9138-f99709370657 --- docs/FAQ | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/FAQ b/docs/FAQ index 9007e7f509..f8f9bd8d0f 100644 --- a/docs/FAQ +++ b/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". -- cgit v1.2.3