Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hi this is my first try on askubuntu, i hope you can understand what i say

here's the thing, I'm trying to patch a kernel, but patch says i put an invalid option in, which i have no idea where it is or what it is

    root@guilherme-HP-Pavilion-dv6-Notebook-PC:/usr/src/zen-kernel-3.14-master# patch -p1 home/guilherme/Downloads/kernel-314-gcc49-0.patch -march=amdfam10

    patch: invalid option -- 'a'
    patch: Try 'patch --help' for more information.
share|improve this question
    
What tutorial are you following to get this done? From where did you get the command to patch? –  i08in May 11 at 7:00
add comment

1 Answer 1

Check the command usage is correct! Is the option "-march" available with the version of the patch command you are running ?

Generally used as follows:

patch -p1 < [/path/to/patch/file]

https://www.kernel.org/doc/Documentation/applying-patches.txt

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.