]> code.ossystems Code Review - openembedded-core.git/commit
sdk: fix search for dynamic loader
authorChristian Eggers <ceggers@arri.de>
Thu, 10 Feb 2022 10:28:10 +0000 (11:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Feb 2022 17:02:56 +0000 (17:02 +0000)
commitbaec04b936ab6b3d2039978fd568c3824cd0a501
tree90632fd8436a48291e39053b964795725b9bc3df
parent138df1940fff303de48c98a95ac1bbaef4f120e2
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>
meta/files/toolchain-shar-relocate.sh