]> 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)
committerSteve Sakoman <steve@sakoman.com>
Sat, 19 Feb 2022 19:59:34 +0000 (09:59 -1000)
commitc95695c220a1bd1984920b893418d6822b75ebac
tree47b32b43726628d764a83d2e56a2bb7363db9878
parenta28a6d31e84f59c4cfe47ddbd28bbe258d5d094f
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>
(cherry picked from commit baec04b936ab6b3d2039978fd568c3824cd0a501)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/files/toolchain-shar-relocate.sh