mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
populate_sdk_base.bbclass: use new perm option for find
Old way find -perm +mode is no longer supported in newer
versions of find (Fedora 19). Man page says:
-perm +mode
This is no longer supported (and has been deprecated since
2005). Use -perm /mode instead.
[YOCTO #4853]
(From OE-Core rev: 21b079e01873e2fb4d8674541e8c5818ba73554e)
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
16e1e1fa2d
commit
8db36429ef
@@ -254,7 +254,7 @@ if [ "$dl_path" = "" ] ; then
|
|||||||
echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
|
echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm +111)
|
executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111)
|
||||||
|
|
||||||
tdir=`mktemp -d`
|
tdir=`mktemp -d`
|
||||||
if [ x$tdir = x ] ; then
|
if [ x$tdir = x ] ; then
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ $SUDO sh -c "sed -e '"s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:"' scripts/relo
|
|||||||
$SUDO chmod +x scripts/relocate_sdk_tmp.py
|
$SUDO chmod +x scripts/relocate_sdk_tmp.py
|
||||||
|
|
||||||
dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*")
|
dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*")
|
||||||
executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm +111)
|
executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm /111)
|
||||||
|
|
||||||
$SUDO scripts/relocate_sdk_tmp.py $INSTALL_FOLDER $dl_path $executable_files
|
$SUDO scripts/relocate_sdk_tmp.py $INSTALL_FOLDER $dl_path $executable_files
|
||||||
check_result
|
check_result
|
||||||
|
|||||||
Reference in New Issue
Block a user