[oe-commits] yzhu1 : populate_sdk: verify executable or dynamically linked library
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 9 11:01:50 UTC 2014
Module: openembedded-core.git
Branch: dora
Commit: 7565b6220e596687ee97cf06256a7065a55bb297
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7565b6220e596687ee97cf06256a7065a55bb297
Author: yzhu1 <yanjun.zhu at windriver.com>
Date: Tue Nov 26 08:38:28 2013 +0000
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Openembedded-commits
mailing list