summaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-10-14 03:05:04 +0000
committerEric Biederman <ebiederm@xmission.com>2003-10-14 03:05:04 +0000
commit34323b52e34aadaa9b1afe70031eb6dde0340232 (patch)
tree8af541fad7f2fa3ad5031b5c110ffa9801c40353 /targets
parentad1b35a12b724b2083102fce493d4b03937a0cb1 (diff)
downloadcoreboot-34323b52e34aadaa9b1afe70031eb6dde0340232.tar.xz
- 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
Diffstat (limited to 'targets')
-rwxr-xr-xtargets/buildtarget5
1 files changed, 3 insertions, 2 deletions
diff --git a/targets/buildtarget b/targets/buildtarget
index f90e040084..ac9326ea4d 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