summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/populate_sdk_base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 5e4ed51d4a..55285d946e 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -183,6 +183,13 @@ fi
183# replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc 183# replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc
184find $native_sysroot -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':' -f1|xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" 184find $native_sysroot -type f -exec file '{}' \;|grep ":.*ASCII.*text"|cut -d':' -f1|xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g"
185 185
186# find out all perl scripts in $native_sysroot and modify them replacing the
187# host perl with SDK perl.
188for perl_script in $(grep "^#!.*perl" -rls $native_sysroot); do
189 sed -i -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" -e \
190 "s: /usr/bin/perl: /usr/bin/env perl:g" $perl_script
191done
192
186# change all symlinks pointing to ${SDKPATH} 193# change all symlinks pointing to ${SDKPATH}
187for l in $(find $native_sysroot -type l); do 194for l in $(find $native_sysroot -type l); do
188 ln -sfn $(readlink $l|sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l 195 ln -sfn $(readlink $l|sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l