From e97eebc18d726aa55738d7e19513491cf58a6e3a Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 8 Feb 2018 16:49:02 +0100 Subject: Avoid duplicate SDK install dir - SPEC-1252 - install sdk in a directory that includes a unique id (built from install url or path). SDKs are now install under: //// Signed-off-by: Sebastien Douheret --- scripts/sdks/agl/get-sdk-info | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/sdks/agl/get-sdk-info') diff --git a/scripts/sdks/agl/get-sdk-info b/scripts/sdks/agl/get-sdk-info index 19bf685..8840bf0 100755 --- a/scripts/sdks/agl/get-sdk-info +++ b/scripts/sdks/agl/get-sdk-info @@ -113,14 +113,18 @@ fi profile=$(echo "${filename}" | sed -r 's/(.*)-glibc.*/\1/') version=$(echo "${filename}" | sed -r 's/.*toolchain-(.*).sh/\1/') arch=$(echo "${filename}" | sed -r 's/.*crosssdk-(.*)-toolchain.*/\1/') -installPath=${SDK_ROOT_DIR}/${profile}/${version}/${arch} [ "${profile}" = "" ] && { echo "profile not set"; exit 7; } [ "${version}" = "" ] && { echo "version not set"; exit 8; } [ "${arch}" = "" ] && { echo " arch not set"; exit 9; } +# Define a unique ID to be able to distinguish for example corei7-64 from qemux86-64 +uuid=$(echo "${sdkUrl}" | md5sum |cut -d' ' -f1) + +installPath=${SDK_ROOT_DIR}/${profile}/${version}/${arch}/${uuid} + status="Not Installed" -if [ -d ${installPath} ]; then +if [ -d "${installPath}" ]; then envFile=$(find "${installPath}" -maxdepth 1 -name "${SDK_ENV_SETUP_FILENAME}") [ "${envFile}" != "" ] && status="Installed" fi -- cgit 1.2.3-korg