@@ -7,6 +7,7 @@ installs="gcc"
# This is a file that gets installed that is used to determine if the toolchain
# component is already installed.
latest="gcc.git/linaro-4.8-branch"
+#latest="gcc.git"
# If yes, only static linking will be used
static_link=no
@@ -32,8 +32,7 @@ checkout()
fi
fi
- local dir="`echo $1 | sed -e "s:^.*/${tool}.git:${tool}.git:" -e 's:/:-:'`"
- local srcdir="${local_snapshots}/${dir}"
+ srcdir="`get_srcdir $1`"
notice "Checking out sources for $1 into ${srcdir}"
case $1 in
@@ -482,7 +482,15 @@ get_srcdir()
eglibc*)
# Eglibc has no top level configure script, it's in the libc
# subdirectory.
- local srcdir="${srcdir}${branch}${revision}/libc"
+ if test ! -d "${srcdir}${branch}${revision}/libc"; then
+ # If the directory does not yet exist the caller wants to know
+ # where to put the eglibc sources.
+ local srcdir="${srcdir}${branch}${revision}"
+ else
+ # If the directory already exists the caller wants to know
+ # where the sources are.
+ local srcdir="${srcdir}${branch}${revision}/libc"
+ fi
;;
# binutils*)
# local srcdir="${srcdir}${branch}${revision}"
From: "Ryan S. Arnold" <ryan.arnold@linaro.org> This also required that get_srcdir knows how to return the srcdir for eglibc before it's installed and once it's installed (since it's actually in the eglibc.git/libc directory. --- config/gcc.conf | 1 + lib/checkout.sh | 3 +-- lib/common.sh | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-)