summaryrefslogtreecommitdiffstats
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
parent44b2cf59e23e1d59947477ee0cffd2ca5a0c5a0f (diff)
downloadpoky-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>
-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
253 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!" 253 echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
254 exit 1 254 exit 1
255fi 255fi
256executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111) 256executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
257 257
258tdir=`mktemp -d` 258tdir=`mktemp -d`
259if [ x$tdir = x ] ; then 259if [ x$tdir = x ] ; then