From: Eric Biederman Date: Tue, 14 Oct 2003 03:05:04 +0000 (+0000) Subject: - Correct the logic in buildtarget to match the logic in config.g for select which X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=34323b52e34aadaa9b1afe70031eb6dde0340232;p=coreboot.git - Correct the logic in buildtarget to match the logic in config.g for select which directory to build in. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/targets/buildtarget b/targets/buildtarget index f90e04008..ac9326ea4 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -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