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>
This commit is contained in:
parent
89a5d5ec5b
commit
32c7150b04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue