how to use patch?

王凯 wang__kai__ at hotmail.com
Tue Oct 12 09:56:56 CEST 2004


The kernel I'm using is 2.6.8.1, so I should patch the corresponding patch to rtai. The question is, where to patch, the folder of linux-2.8.6.1 or rtai-3.1? I mean in which folder should the hal7-2.6.8.1.patch be applied?

I tried to patch it in the folder rtai-3.1 by this command:
patch -p1 < rtai-core/arch/i386/patches/hal7-2.6.8.1.patch

It showed me that:
|diff -uNrp linux-2.6.8.1/Makefile linux-2.6.8.1-adeos/Makefile
|--- linux-2.6.8.1/Makefile     2004-08-14 12:55:35.000000000 +0200
|+++ linux-2.6.8.1-adeos/Makefile       2004-08-15 12:42:35.000000000 +0200

And tell me it can't find the file.

So, what's wrong?  Or should I apply the patch in the folder Linux-2.8.6.1 instead of rtai-3.1?

By the way, is there any one can tell me what the "source tree" mentioned in file README.INSALL is, the linux-source-folder or the rtai-source-folder? And what the "$source_tree" and "$linux-src-dir" are as well.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20041012/4042f703/attachment.htm 


More information about the Rtai mailing list