build: linker-script generator pattern argument handling fix.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 19 Apr 2012 08:03:37 +0000 (11:03 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 19 Apr 2012 08:08:18 +0000 (11:08 +0300)
build-aux/gen-linker-script

index 2f3a3b8..e314c15 100755 (executable)
@@ -46,13 +46,8 @@ while [ -n "${1#-}" ]; do
             fi
             ;;
         -p)
-            if [ -z "$PATTERN" ]; then
-                shift
-                PATTERN="$1"
-            else
-                error "Multiple patterns given ($PATTERN, $1)."
-                usage
-            fi
+           shift;
+            PATTERN="$1"
             ;;
         -I)
             shift
@@ -85,8 +80,7 @@ if [ -z "$SOURCES" ]; then
 fi
 
 if [ -z "$PATTERN" ]; then
-    error "Invalid (empty) pattern."
-    usage
+    PATTERN="^mrp_"
 fi
 
 if [ -n "$IGNORE" ]; then