diff options
Diffstat (limited to 'meta/recipes-devtools/installer')
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/adt_installer | 6 | ||||
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer/adt_installer b/meta/recipes-devtools/installer/adt-installer/adt_installer index 2d252b72ad..0be5a1d607 100755 --- a/meta/recipes-devtools/installer/adt-installer/adt_installer +++ b/meta/recipes-devtools/installer/adt-installer/adt_installer | |||
@@ -340,7 +340,11 @@ if [ "$INSTALL_FOLDER" = "" ]; then | |||
340 | fi | 340 | fi |
341 | 341 | ||
342 | eval INSTALL_FOLDER=$INSTALL_FOLDER | 342 | eval INSTALL_FOLDER=$INSTALL_FOLDER |
343 | export INSTALL_FOLDER=$(readlink -m $INSTALL_FOLDER) | 343 | if [ -d $INSTALL_FOLDER ]; then |
344 | export INSTALL_FOLDER=$(cd $INSTALL_FOLDER; pwd) | ||
345 | else | ||
346 | export INSTALL_FOLDER=$(readlink -m $INSTALL_FOLDER) | ||
347 | fi | ||
344 | 348 | ||
345 | clear | 349 | clear |
346 | 350 | ||
diff --git a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal index f113aa4b80..76acaa7e8a 100755 --- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | |||
@@ -207,7 +207,7 @@ $SUDO scripts/relocate_sdk_tmp.py $INSTALL_FOLDER $dl_path $executable_files | |||
207 | check_result | 207 | check_result |
208 | 208 | ||
209 | # replace /opt/${DISTRO}/${SDK_VERSION} with the install folder in all configs | 209 | # replace /opt/${DISTRO}/${SDK_VERSION} with the install folder in all configs |
210 | env_setup_script=$(find $NATIVE_INSTALL_DIR -name "environment-setup-*") | 210 | env_setup_script=$(find $NATIVE_INSTALL_DIR/ -name "environment-setup-*") |
211 | $SUDO sed -i -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:g" $env_setup_script | 211 | $SUDO sed -i -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:g" $env_setup_script |
212 | 212 | ||
213 | find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':' -f1|\ | 213 | find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':' -f1|\ |