tf-a-tools: fix the RPATH for the native target

the libcrypto.so.3 is provide on the native sysroot of the fiptool
but the fiptool don't search the native sysroot so it will work
in hosts with the library libcrypto.so.3 and fail when the libcrypto.so.3
not found. this patch fix this host contamination bug.

| fiptool: error while loading shared libraries: libcrypto.so.3: cannot open shared object file: No such file or directory

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
This commit is contained in:
Jose Quaresma 2022-08-24 14:01:47 +00:00 committed by Christophe Priouzeau
parent 281a8202bd
commit 96bffa5378
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ EXTRA_OEMAKE += "certtool fiptool"
do_configure[noexec] = "1" do_configure[noexec] = "1"
do_compile:prepend () {
# This is still needed to have the native fiptool executing properly by
# setting the RPATH
sed -e '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' \
-e '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' \
-i ${S}/tools/fiptool/Makefile
}
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}
install -m 0755 \ install -m 0755 \