aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Savoye <rob.savoye@linaro.org>2015-03-23 15:12:35 -0600
committerChristophe Lyon <christophe.lyon@linaro.org>2015-04-02 21:15:02 +0100
commit4bb89851b342baedd6b0f691b94e635d04ddc9a3 (patch)
treea28e4dcc91b2f25fd9681c6771b267565827af81
parent6536fc3010ac87eba7adb975598c6a8f8c930333 (diff)
use the component to determine which conf file to load
-rwxr-xr-xlib/configure.sh19
1 files changed, 8 insertions, 11 deletions
diff --git a/lib/configure.sh b/lib/configure.sh
index a693153b..e60001fb 100755
--- a/lib/configure.sh
+++ b/lib/configure.sh
@@ -41,17 +41,6 @@ configure_build()
local stamp="`get_stamp_name configure ${gitinfo} ${2:+$2}`"
local builddir="`get_builddir ${gitinfo} ${2:+$2}`"
- # Since Binutils and GDB have a shared git repository, this confuses the logic
- # of loading the right config file. If Binutils is already configured, then
- # assume GDB.
- if test "`echo $1 | grep -c binutils`" -gt 0; then
- if test -e ${local_builds}/${binutils_version}-configure-stamp; then
- local tool="gdb"
- else
- local tool="binutils"
- fi
- fi
-
# Don't look for the stamp in the builddir because it's in builddir's
# parent directory.
local stampdir="`dirname ${builddir}`"
@@ -76,6 +65,14 @@ configure_build()
# fi
fi
+ # Since Binutils and GDB have a shared git repository, this confuses the logic
+ # of loading the right config file. If Binutils is already configured, then
+ # assume GDB.
+ echo "FOO"
+ if test x"${2}" = x"gdb" -o x"${2}" = x"binutils"; then
+ local tool="${2}"
+ fi
+
local configure="`grep ^configure= ${topdir}/config/${tool}.conf | cut -d '\"' -f 2`"
if test x"${configure}" = x; then
configure="yes"