]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sdk: fix search for dynamic loader
authorChristian Eggers <ceggers@arri.de>
Mon, 14 Feb 2022 10:49:36 +0000 (11:49 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 21 Feb 2022 06:02:00 +0000 (14:02 +0800)
commit950536bc9cc78ab3c58586e67acb602cd78e3dac
treed4369c9e3062230f7c2179b5083ff01959e7c29a
parent9a3a1a806f0c6963c671f0a46f6e910c6206e681
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