- Correct the logic in buildtarget to match the logic in config.g for select which
authorEric Biederman <ebiederm@xmission.com>
Tue, 14 Oct 2003 03:05:04 +0000 (03:05 +0000)
committerEric Biederman <ebiederm@xmission.com>
Tue, 14 Oct 2003 03:05:04 +0000 (03:05 +0000)
  directory to build in.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

targets/buildtarget

index f90e0400848ac0c2efde9c54991ec0ef1018add1..ac9326ea4d7aa5343f384d532c258da60fbb41f5 100755 (executable)
@@ -36,8 +36,9 @@ if [ ! -f $config_lb ]; then
        exit 1
 fi
 
-target_subdir=$target_dir/`sed -n -e 's/^target \(.*\)$/\1/p' $config_lb`
-config_py=$target_subdir/config.py
+build_dir=`dirname $config_lb`/`sed -n -e 's/^target \(.*\)$/\1/p' $config_lb`
+echo $build_dir
+config_py=$build_dir/config.py
 
 if [ ! -d $target_subdir ] ; then
        mkdir -p $target_subdir