Don't know where to extract pre-compiled tool chain(genode-10.08.tar.bz2)
norman.feske at ...1...
Mon Sep 20 19:18:54 CEST 2010
On 09/20/2010 06:41 PM, Janith Widarshana wrote:
> As you said I run syscall_pic.patch file using following command and got
> this messege.
> patch < syscall_pic.patch
> patching file syscalls.h
> Hunk #1 FAILED at 97.
> Hunk #20 FAILED at 611.
> 20 out of 20 hunks FAILED -- saving rejects to file syscalls.h.rej
> Is that problem with my patching command?
your problem is certainly a path issue. If you take a look at the first
lines of the 'syscall_pic.patch file', you will see to which file the
patch is referring:
diff -r e2bca488e43b arch/ia32/libs/l4/include/syscalls.h
--- a/arch/ia32/libs/l4/include/syscalls.h Tue Aug 03 12:58:05 2010 +0200
+++ b/arch/ia32/libs/l4/include/syscalls.h Mon Aug 16 15:51:08 2010 +0200
The 'a/' and 'b/' directory prefixes do not actually exists but are an
artifact put there by the tool the patch was created with. You have to
tell the patch command to strip the leading directory using the '-p'
argument. When being at the base directory of the OKL4 kernel, the
correct command would be:
patch -p1 < syscall_pic.patch
More information about the users