]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - build.sh
TX53 Release 2011-12-20
[karo-tx-redboot.git] / build.sh
index b09c9afa451447ee668a735a4bdeaa60de23ab29..2fec628ffe8213b06af7034aa48b47612bb5727d 100644 (file)
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-options="cnqrR"
+options="cnqrRp:"
 release=false
 tools_dir="$PWD/tools/bin"
 ecosconfig="$tools_dir/tools/configtool/standalone/common/ecosconfig"
@@ -9,6 +9,7 @@ clean=false
 rebuild=false
 doit=true
 make_opts=
+pattern="*"
 
 error() {
     if [ -n "${target}" ];then
@@ -56,6 +57,9 @@ while getopts "$options" opt;do
            doit=false
            make_opts="${make_opts} -n"
            ;;
+       p)
+           pattern="$OPTARG"
+           ;;
        q)
            quiet=true
            ;;
@@ -78,7 +82,7 @@ shift $(($OPTIND - 1))
 if [ $# -gt 0 ];then
     targets="$@"
 else
-    targets=$(cd config;ls *.ecc)
+    targets=$(cd config;ls $pattern.ecc)
 fi
 
 set -e