diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2012-09-23 17:14:27 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-24 11:30:30 +0100 |
commit | b294e904b61d58320b65e0bf44c3d8f2115b6d16 (patch) | |
tree | 30a74ddcc971285246cdc846aaee2e2ce51f0aa9 /meta/recipes-devtools/installer | |
parent | df74f8d9a8b1500da3fffd77f12ec8d1900d0bf6 (diff) | |
download | poky-b294e904b61d58320b65e0bf44c3d8f2115b6d16.tar.gz |
adt-installer: add sudo when relocating symlinks
This is needed if installation is done in a directory that needs root
privileges.
(From OE-Core rev: 28823486ba8ce4d88bbad3cea696ce9fba0cc165)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/installer')
-rwxr-xr-x | meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | 2 |
1 files changed, 1 insertions, 1 deletions
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 63fcf60012..9a1357366b 100755 --- a/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +++ b/meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal | |||
@@ -217,7 +217,7 @@ find $OECORE_NATIVE_SYSROOT -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut | |||
217 | 217 | ||
218 | # change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION} | 218 | # change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION} |
219 | for l in $(find $NATIVE_INSTALL_DIR -type l); do | 219 | for l in $(find $NATIVE_INSTALL_DIR -type l); do |
220 | ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l | 220 | $SUDO ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l |
221 | done | 221 | done |
222 | 222 | ||
223 | echo_info "\nSuccessfully installed selected native ADT!" | 223 | echo_info "\nSuccessfully installed selected native ADT!" |