]> code.ossystems Code Review - openembedded-core.git/commit
sdk: fix search for dynamic loader
authorChristian Eggers <ceggers@arri.de>
Mon, 14 Feb 2022 10:50:20 +0000 (11:50 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 15 Feb 2022 04:29:06 +0000 (12:29 +0800)
commitd57b748ef22d75b863356a97bfc585e1e967a44a
treefd13a64ece70629d92a6628e41ab579210356646
parenta32cee6c9e1ff53e424b8386c36555e6cf3bf3af
sdk: fix search for dynamic loader

if the package "nativesdk-glibc-dbg" is installed as part of the SDK,
the existing search expression finds two files:

$OECORE_NATIVE_SYSROOT/lib/.debug/ld-linux-x86-64.so.2
$OECORE_NATIVE_SYSROOT/lib/ld-linux-x86-64.so.2

The generated relocate_sdk.sh shell script contains then an extra
newline and segfaults during SDK relocation.

Limit the search depth to 1, to avoid finding the file in the .debug
directory.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/files/toolchain-shar-relocate.sh