aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/populate_sdk_base.bbclass
diff options
context:
space:
mode:
authoryzhu1 <yanjun.zhu@windriver.com>2013-11-26 08:38:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 17:35:34 +0000
commitc9d56308bfa9ee7f4a9b22eae86390626ddc1c35 (patch)
tree10ba16a24b97c3b56a3b569f35253132b73749fd /meta/classes/populate_sdk_base.bbclass
parentd60cf44deb297119f97d7e792eae5ab01977e2fc (diff)
downloadopenembedded-core-contrib-c9d56308bfa9ee7f4a9b22eae86390626ddc1c35.tar.gz
populate_sdk: verify executable or dynamically linked library
When toolchain directory is changed to execute mode, some non-executable files or empty files are sorted. This will result in some errors. Thus when sorting executable files or dynamically linked library, additional conditions are to exclude non-executable files or empty files. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_base.bbclass')
-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 b7ea85159c..29890e38c9 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -253,7 +253,7 @@ if [ "$dl_path" = "" ] ; then
echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
exit 1
fi
-executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111)
+executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
tdir=`mktemp -d`
if [ x$tdir = x ] ; then