diff options
-rwxr-xr-x | tools/configure | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/configure b/tools/configure index c04ac4b39f..a2cdfda770 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -528,22 +528,7 @@ if [ -z "$rootdir" ]; then | |||
528 | ################################################################## | 528 | ################################################################## |
529 | # Figure out where the source code root is! | 529 | # Figure out where the source code root is! |
530 | # | 530 | # |
531 | 531 | rootdir=`dirname $0`/../ | |
532 | firmfile="app.lds" # a file to check for in the firmware root dir | ||
533 | |||
534 | for dir in . .. ../.. ../rockbox*; do | ||
535 | if [ -f $dir/firmware/$firmfile ]; then | ||
536 | rootdir=$dir | ||
537 | break | ||
538 | fi | ||
539 | done | ||
540 | |||
541 | if [ -z "$rootdir" ]; then | ||
542 | echo "This script couldn't find your source code root directory. Please enter the" | ||
543 | echo "full path to the source code directory here:" | ||
544 | |||
545 | rootdir=`input` | ||
546 | fi | ||
547 | 532 | ||
548 | ##################################################################### | 533 | ##################################################################### |
549 | # Convert the possibly relative directory name to an absolute version | 534 | # Convert the possibly relative directory name to an absolute version |