diff options
-rwxr-xr-x | tools/configure | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure index 44f359b97c..d95f965d43 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -77,9 +77,10 @@ esac | |||
77 | 77 | ||
78 | firmfile="start.s" # a file to check for in the firmware root dir | 78 | firmfile="start.s" # a file to check for in the firmware root dir |
79 | 79 | ||
80 | for dir in . .. ../firmware ../../firmware; do | 80 | for dir in firmware . .. ../firmware ../../firmware; do |
81 | if [ -f $dir/$firmfile ]; then | 81 | if [ -f $dir/$firmfile ]; then |
82 | firmdir=$dir | 82 | firmdir=$dir |
83 | break | ||
83 | fi | 84 | fi |
84 | done | 85 | done |
85 | 86 | ||
@@ -96,9 +97,10 @@ fi | |||
96 | 97 | ||
97 | appsfile="credits.c" # a file to check for in the apps root dir | 98 | appsfile="credits.c" # a file to check for in the apps root dir |
98 | 99 | ||
99 | for dir in $firmdir/apps $firmdir/../apps . .. ../apps ../../apps; do | 100 | for dir in apps $firmdir/apps $firmdir/../apps . .. ../apps ../../apps; do |
100 | if [ -f $dir/$appsfile ]; then | 101 | if [ -f $dir/$appsfile ]; then |
101 | appsdir=$dir | 102 | appsdir=$dir |
103 | break | ||
102 | fi | 104 | fi |
103 | done | 105 | done |
104 | 106 | ||