From 08febd8b675ca1d32e535e11b631e7a655b510ba Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 1 Oct 2003 05:42:31 +0000 Subject: new epia target for 512k: targets/via/epia/Config.512kflash.lb buildtarget now takes either a directory, and uses directory/Config.lb, or takes a file epia defaults to 256k flash git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1166 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- targets/buildtarget | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'targets/buildtarget') diff --git a/targets/buildtarget b/targets/buildtarget index 273a26bab2..9f8cb31619 100755 --- a/targets/buildtarget +++ b/targets/buildtarget @@ -15,7 +15,7 @@ else fi target_dir=$lbpath/targets -config_lb=$1/Config.lb +config_lb=$1 config_dir=$lbpath/util/newconfig config_py=$config_dir/config.py @@ -26,8 +26,13 @@ fi 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 -- cgit v1.2.3