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>2014-02-09 11:04:13 +0000
commit32c7150b046df43f9d69d1a7d5eac2c71d137aa0 (patch)
tree7823f075cec1d63f37580f700542beafa735b27b /meta/classes
parent89a5d5ec5b9bde6afa73c6c6ef5179804e254120 (diff)
downloadpoky-32c7150b046df43f9d69d1a7d5eac2c71d137aa0.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) (From OE-Core rev: 7565b6220e596687ee97cf06256a7065a55bb297) 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> 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 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