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
committerRobert Yang <liezhi.yang@windriver.com>2014-01-26 14:08:14 +0800
commit7565b6220e596687ee97cf06256a7065a55bb297 (patch)
tree4b2b496699bbe90abfd3d8e5f97fa663c4d35fca /meta/classes/populate_sdk_base.bbclass
parentf6496a471d8944357067c7573d23f612f3af1f72 (diff)
downloadopenembedded-core-contrib-7565b6220e596687ee97cf06256a7065a55bb297.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. (From OE-Core master rev: c9d56308bfa9ee7f4a9b22eae86390626ddc1c35) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
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