aboutsummaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-07-01 12:26:11 +0000
committerStefan Reinauer <stepan@openbios.org>2009-07-01 12:26:11 +0000
commit0d4a08e7da73c1a24a7bb092ba6ef2c09af37239 (patch)
tree5d417ad1f1f5b0186090a6619482ead025ef6614 /util/abuild
parent3c6bd6c7736d00cdd45aca84ccac01c7e8278f42 (diff)
let abuild autodetect the coreboot path a bit better. So in the top level of
coreboot you can now do: $ util/abuild/abuild -t foo/bar instead of $ util/abuild/abuild -t foo/bar $PWD Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4388 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 11dbea2fe3..5aacd6989f 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -603,9 +603,12 @@ EOF
# default options
target=""
buildall=false
-LBROOT=$( cd ../..; pwd )
verbose=false
+test -f util/newconfig/config.g && LBROOT=$( pwd )
+test -f ../util/newconfig/config.g && LBROOT=$( cd ..; pwd )
+test "$LBROOT" = "" && LBROOT=$( cd ../..; pwd )
+
# parse parameters.. try to find out whether we're running GNU getopt
getoptbrand="`getopt -V`"
if [ "${getoptbrand:0:6}" == "getopt" ]; then