Landau, Bracha wrote:
 > I have encountered trouble upgrading from xenomai-2.2 rc2 to xenomai 2.2 rc3.
 > If the "prepare-script" file encounters a kernel which already has the 
 > "xenomai" directories included (from a previous version of xenomai), the 
 > "prepare-kernel" script will not do anything.
 > 
 > In order to bypass this problem I had to search for all the "xenomai" 
 > subdirectories in the linux tree and rename them. (I searched for the 
 > "patch_link" commands inside "prepare-kernel" in order to know what had to 
 > be re-patched.)
 > 
 > Is there a way you can indicate that you want to upgrade your kernel?

Revision 1298 should fix this. See attached patch.

 > 
 > Also, for some reason I had to comment out "unset CDPATH" in the 
 > "prepare-kernel" script (2nd line) to get it to do anything.

Do you experience this problem even when passing fully qualified pathes ?

-- 


                                            Gilles Chanteperdrix.
Index: scripts/prepare-kernel.sh
===================================================================
--- scripts/prepare-kernel.sh   (revision 1297)
+++ scripts/prepare-kernel.sh   (revision 1298)
@@ -113,7 +113,9 @@
             d=`dirname $f`
             if test "x$output_patch" = "x"; then
                 mkdir -p $linux_tree/$link_dir/$d
-                if test x$forcelink = x1 -o ! -h $linux_tree/$link_dir/$f; then
+                if test x$forcelink = x1 -o \
+                  ! $xenomai_root/$target_dir/$f -ef $linux_tree/$link_dir/$f;
+               then
                     ln -sf $xenomai_root/$target_dir/$f 
$linux_tree/$link_dir/$f
                 fi
             else
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to