Skip to contentSkip to conversation

fix automatic patch election

PATCH New Jan Kiszka 1 participant 1 message Jun 22, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/2 fix automatic patch election

Currently, the patch election algorithm does not take the kernel sub-level version into account, thus one gets offered 2.6.20, although the kernel is 2.6.19. This patch fixes it.

Should go into 2.3.x as well.

scripts/prepare-kernel.sh +1 -1
Index: xenomai/scripts/prepare-kernel.sh
===================================================================
@@ -357,7 +357,7 @@ elif test -r $linux_tree/include/linux/a
    exit 2
 else
    if test x$adeos_patch = x; then
-      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL*|sort -r ) 2>/dev/null | head -n1`
+      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL.$linux_SUBLEVEL*|sort -r ) 2>/dev/null | head -n1`
    fi
    if test x$default_adeos_patch = x; then
       default_adeos_patch=/dev/null