Skip to contentSkip to conversation

prevent endless loop in prepare-kernel.sh

PATCH Applied Hillier, Gernot 2 participants 2 messages May 7, 2008 – May 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prevent endless loop in prepare-kernel.sh

Hi there!

Just noted that prepare-kernel.sh ends up in an endless loop when you use "--default" together with an invalid "--arch" parameter.

Here's a small patch. Please apply. TIA!

prepare-kernel.sh +2 -0
Index: scripts/prepare-kernel.sh
===================================================================
@@ -327,6 +327,7 @@
    *)
       echo "$me: unsupported architecture: $linux_arch" >&2
       linux_arch=
+      usedefault=
       ;;
    esac
    if test \! x$linux_arch = x; then
@@ -384,6 +385,7 @@
       fi
       if test \! -r "$adeos_patch"; then
          echo "$me: cannot read Adeos patch from $adeos_patch" >&2
+         usedefault=
          adeos_patch=
       fi
    done
Signature · 5 lines
With kind regards,
Gernot Hillier

Siemens AG, CT SE 2
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 21 lines · Gernot

Hi there!

Just noted that prepare-kernel.sh ends up in an endless loop when you use "--default" together with an invalid "--arch" parameter.

Here's a small patch. Please apply. TIA!

Index: scripts/prepare-kernel.sh
===================================================================

prepare-kernel.sh +1 -0
@@ -327,6 +327,7 @@
     *)
        echo "$me: unsupported architecture: $linux_arch" >&2
        linux_arch=
+      usedefault=
        ;;
     esac
     if test \! x$linux_arch = x; then

prepare-kernel.sh line 391

Quoted 7 lines
prepare-kernel.sh +1 -0
@@ -384,6 +385,7 @@
        fi
        if test \! -r "$adeos_patch"; then
           echo "$me: cannot read Adeos patch from $adeos_patch" >&2
+         usedefault=
           adeos_patch=
        fi
     done

Merged, thanks.

Signature · 1 line
Philippe.