diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index b99dc75fd1..88de1e48ac 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -274,6 +274,13 @@ fi | |||
274 | # replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc | 274 | # replace ${SDKPATH} with the new prefix in all text files: configs/scripts/etc |
275 | $SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\|source\).*text"|cut -d':' -f1|$SUDO_EXEC xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" | 275 | $SUDO_EXEC find $native_sysroot -type f -exec file '{}' \;|grep ":.*\(ASCII\|script\|source\).*text"|cut -d':' -f1|$SUDO_EXEC xargs sed -i -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:g" |
276 | 276 | ||
277 | # find out all perl scripts in $native_sysroot and modify them replacing the | ||
278 | # host perl with SDK perl. | ||
279 | for perl_script in $($SUDO_EXEC grep "^#!.*perl" -rl $native_sysroot); do | ||
280 | $SUDO_EXEC sed -i -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" -e \ | ||
281 | "s: /usr/bin/perl: /usr/bin/env perl:g" $perl_script | ||
282 | done | ||
283 | |||
277 | # change all symlinks pointing to ${SDKPATH} | 284 | # change all symlinks pointing to ${SDKPATH} |
278 | for l in $($SUDO_EXEC find $native_sysroot -type l); do | 285 | for l in $($SUDO_EXEC find $native_sysroot -type l); do |
279 | $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l | 286 | $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l |