如何打patch p0 p1区别

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 00:05:45
如何打patch p0 p1区别

如何打patch p0 p1区别
如何打patch p0 p1区别

如何打patch p0 p1区别
面是我出现的错误备份一下,//原因是patch的目录不对,应该在kernel同级的drivers/usb/目录下进行的哦
[root@localhost usb]# tar zxvf usb-2.6.12LE06.patch.tar.gz
usb-2.6.12.patch
[root@localhost usb]# ls
usb-2.6.12LE06.patch.tar.gz usb-2.6.12.patch
[root@localhost usb]# patch -p1 < usb-2.6.12.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN usb_old/Makefile usb/Makefile
|--- usb_old/Makefile 2005-06-19 19:09:13.000000000 +0200
|+++ usb/Makefile 2005-11-06 00:44:46.000000000 +0100
--------------------------
File to patch:
Skip this patch?[y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 15
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN usb_old/media/Kconfig usb/media/Kconfig
|--- usb_old/media/Kconfig 2005-06-19 17:49:07.000000000 +0200
|+++ usb/media/Kconfig 2005-11-25 21:14:39.000000000 +0100
--------------------------
File to patch:
Skip this patch?[y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 38
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ruN usb_old/media/Makefile usb/media/Makefile
|--- usb_old/media/Makefile 2005-06-19 17:49:07.000000000 +0200
|+++ usb/media/Makefile 2005-11-05 23:05:56.000000000 +0100
--------------------------
File to patch:
Skip this patch?[y] y
Skipping patch.
1 out of 1 hunk ignored
patching file media/spca5xx/cs2102.h
patching file media/spca5xx/hdcs2020.h
patching file media/spca5xx/hv7131b.h
patching file media/spca5xx/hv7131c.h
patching file media/spca5xx/icm105a.h
patching file media/spca5xx/Makefile
patching file media/spca5xx/Makefile.2.4
patching file media/spca5xx/Makefile.org
patching file media/spca5xx/pas106b.h
patching file media/spca5xx/pb0330.h
patching file media/spca5xx/sn9cxxx.h
patching file media/spca5xx/sp5xxfw2.dat
patching file media/spca5xx/sp5xxfw2.h
patching file media/spca5xx/spca5xx.h
patching file media/spca5xx/spcaCompat.h
patching file media/spca5xx/spca_core.c
patching file media/spca5xx/spcadecoder.c
patching file media/spca5xx/spcadecoder.h
patching file media/spca5xx/spcausb.h
patching file media/spca5xx/tas5130c.h
patching file media/spca5xx/zc3xx.h
[root@localhost usb]#
#####################
下面来自无名博客:vcdog.cublog.cn 的具体内容:
今天上QQ的时候发现eva不能用了,后来又看到了解决方法,所以想打个补丁,-).后来查了查明白了,写了个总结,分享一下,也不知道以前有没有这方面的东西,希望我这个不是多余的.