Rockbox General > Rockbox General Discussion

A Weird Problem With Patches

(1/1)

GuitarRocker2562:
I am learning how to add patches to the source and compile. I put the patch in my rockbox-latest folder and (I am using an example) type "patch < powermgmt.c.patch" this is what I am supposed to do, right? If I enter that and the .patch file empties no new files are made, and the command never finishes (I have to do ctrl-c to type another command). The patch is not applied, what's wrong?

stuffedspacedog:
patch  --binary -p0 < powermgmt.patch

(if patch is called powermgmt.patch)

check the twiki for more details:

http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling#Patching

cpchan:

--- Quote from: stuffedspacedog on July 12, 2007, 11:33:35 PM ---patch  --binary -p0 < powermgmt.patch
--- End quote ---

You might also need to adjust the patch level (the -p option) depending on where the patch is created. Please read the manpage to patch by using the command:


--- Code: ---man patch
--- End code ---

Charles

Navigation

[0] Message Index

Go to full version