Author: stepan Date: 2009-07-01 14:26:11 +0200 (Wed, 01 Jul 2009) New Revision: 4388
Modified: trunk/coreboot-v2/util/abuild/abuild Log: 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
Modified: trunk/coreboot-v2/util/abuild/abuild =================================================================== --- trunk/coreboot-v2/util/abuild/abuild 2009-07-01 12:22:26 UTC (rev 4387) +++ trunk/coreboot-v2/util/abuild/abuild 2009-07-01 12:26:11 UTC (rev 4388) @@ -603,9 +603,12 @@ # 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