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 authored and Christophe Priouzeau committed 2022-08-26 09:48:54 +02:00
1 parent 281a8202bd
commit 96bffa5378
1 file changed
+8
@@ -20,6 +20,14 @@ EXTRA_OEMAKE += "certtool fiptool"
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() {
install -d ${D}${bindir}
install -m 0755 \