diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-10-13 19:48:13 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-10-13 19:48:13 +0000 |
commit | f3f7c9e655d9ec8cd44bbffbd33b56f3e47764e2 (patch) | |
tree | fc441ce3356bea1b5cfd6ca01e703040ee8e47c5 /targets | |
parent | 02560b5fa2339f2b1701b25e8628cca2f7df865e (diff) | |
download | coreboot-f3f7c9e655d9ec8cd44bbffbd33b56f3e47764e2.tar.xz |
- Move config.py into the appropriate target subdirectory
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1213 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'targets')
-rwxr-xr-x | targets/buildtarget | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/targets/buildtarget b/targets/buildtarget index 88d09b7c88..a72cbf7997 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -19,7 +19,6 @@ config_lb=$1 config_dir=$lbpath/util/newconfig yapps2_py=$config_dir/yapps2.py config_g=$config_dir/config.g -config_py=$config_lb/config.py if [ ! -d $target_dir ]; then echo "Target directory not found" @@ -31,13 +30,19 @@ cd $target_dir if [ ! -f $config_lb ]; then config_lb=$1/Config.lb fi - if [ ! -f $config_lb ]; then echo "No target config file found" echo "Tried both $1 and $config_lb" exit 1 fi +target_subdir=`sed -n -e 's/^target \(.*\)$/\1/p' $config_lb` +target_subdir=`dirname $config_lb`/$target_subdir +config_py=$target_subdir/config.py + +if [ ! -d $target_subdir ] ; then + mkdir -p $target_subdir +fi if [ ! -f $config_py ]; then echo "No linuxbios config script found. Rebuilding it.." $PYTHON $yapps2_py $config_g $config_py |