summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:45:53 +0000
commit65535bff09afd21b6d9f129651df6c70570c3aa0 (patch)
tree4035133e5bc8ce78b7b81d6031c79684675bf94b /meta/classes
parent44b2cf59e23e1d59947477ee0cffd2ca5a0c5a0f (diff)
downloadast2050-yocto-poky-65535bff09afd21b6d9f129651df6c70570c3aa0.zip
ast2050-yocto-poky-65535bff09afd21b6d9f129651df6c70570c3aa0.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 rev: c9d56308bfa9ee7f4a9b22eae86390626ddc1c35) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 b7ea851..29890e3 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
OpenPOWER on IntegriCloud