summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-09-23 17:14:27 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 11:07:16 +0100
commit28823486ba8ce4d88bbad3cea696ce9fba0cc165 (patch)
tree30c4b64dbc597cf0e0e99e3a63b4fd993dfd3ce3 /meta/recipes-devtools
parent5e03d1e83d0536a2fc69a88d3e5407108836203f (diff)
downloadopenembedded-core-28823486ba8ce4d88bbad3cea696ce9fba0cc165.tar.gz
adt-installer: add sudo when relocating symlinks
This is needed if installation is done in a directory that needs root privileges. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-xmeta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal2
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
# change all symlinks pointing to /opt/${DISTRO}/${SDK_VERSION}
for l in $(find $NATIVE_INSTALL_DIR -type l); do
- ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
+ $SUDO ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_FOLDER:$NATIVE_INSTALL_DIR:") $l
done
echo_info "\nSuccessfully installed selected native ADT!"