mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
df74f8d9a8
commit
b294e904b6
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user