From 6e4923c0c9b218271fd44d78df9987b5cabb1c03 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Thu, 20 Sep 2012 14:58:48 +0300 Subject: SDK: relocate symlinks too The directory usr/libexec/ in the SDK sysroot contains the default symlinks to the toolchain binaries and these, too, need to point to the correct toolchain path. [YOCTO #3090] Signed-off-by: Laurentiu Palcu Signed-off-by: Saul Wold --- meta/classes/populate_sdk_base.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 10f3975b98..42c0d39749 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass @@ -174,6 +174,11 @@ fi # replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc find $native_sysroot -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':' -f1|xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" +# change all symlinks pointing to ${SDKPATH} +for l in $(find $native_sysroot -type l); do + ln -sf $(readlink $l|sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l +done + echo done # delete the relocating script, so that user is forced to re-run the installer -- cgit 1.2.3-korg