Rockbox Development > Starting Development and Compiling
File to patch
(1/1)
kochciu:
Hi all,
I've a small problem with patching... after i'm typing command with patch name there is in line below a sentence: File to patch: My question is which file I should patch?
Domonoky:
Hi..
please give full details what you are doing, and the exact error messages, otherwise we can only guess..
but i think you used the wrong -p parameter, or no at all.
Normally you type something like "patch -p0 < patchfile.patch" when you are in the root of the rockbox source.
mschneider:
You have to make sure the patch is in your "rockbox" folder or wherever and then look at the patch to find out which -p you need to use. For example if the patch said
--- blablabla/apps/plugins/bubbles.c
+++ blablabla/apps/plugins/bubbles.c
You would use -p1 to strip the blablabla (that's assuming that your patch file is in the rockbox folder).
Mikerman:
If I understand your question, this happens when the patch won't apply directly. Try following the patching instructions and increase the p value; it also can work to place the patch in the folder(s) containing the file(s) to be patched, and to run the patch command from those folders. (Note that you'll have to go into the patch to see what files are to be patched.)
Navigation
[0] Message Index
Go to full version