summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/populate_sdk_base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 893afbb..06112dc 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.
288for perl_script in $($SUDO_EXEC grep "^#!.*perl" -rl $native_sysroot); do 288for 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
291done 291done