diff options
-rw-r--r-- | meta/classes/populate_sdk_base.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass index 893afbbb3d..06112dcf81 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -285,7 +285,7 @@ done | |||
285 | 285 | ||
286 | # find out all perl scripts in $native_sysroot and modify them replacing the | 286 | # find out all perl scripts in $native_sysroot and modify them replacing the |
287 | # host perl with SDK perl. | 287 | # host perl with SDK perl. |
288 | for perl_script in $($SUDO_EXEC grep "^#!.*perl" -rl $native_sysroot); do | 288 | for perl_script in $($SUDO_EXEC find $native_sysroot -type f -exec grep "^#!.*perl" -l '{}' \;); do |
289 | $SUDO_EXEC sed -i -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" -e \ | 289 | $SUDO_EXEC sed -i -e "s:^#! */usr/bin/perl.*:#! /usr/bin/env perl:g" -e \ |
290 | "s: /usr/bin/perl: /usr/bin/env perl:g" $perl_script | 290 | "s: /usr/bin/perl: /usr/bin/env perl:g" $perl_script |
291 | done | 291 | done |