arm/trusted-firmware-a: fix TC0 build when host doesn't have openssl-dev

The TC0 bbappend needs the cert_create tool to be built, which hard-codes the
fact that openssl is installed in /usr.

Change-Id: I8a7ed54fe7d75697509f7873e7d73b3bf1b2b903
Signed-off-by: Ross Burton <ross.burton@arm.com>
This commit is contained in:
Ross Burton committed 2020-07-24 17:59:33 +01:00
1 parent 86be37565a
commit d5e8453cb9
1 file changed
+2 -1
@@ -117,9 +117,10 @@ BUILD_DIR .= "/${@'debug' if d.getVar("TFA_DEBUG") == '1' else 'release'}"
do_compile() {
cd ${S}
# These changes are needed to have the fiptool compiling and executing properly
# These changes are needed to have the native tools compiling and executing properly
sed -i '/^LDLIBS/ s,$, \$\{BUILD_LDFLAGS},' ${S}/tools/fiptool/Makefile
sed -i '/^INCLUDE_PATHS/ s,$, \$\{BUILD_CFLAGS},' ${S}/tools/fiptool/Makefile
sed -i 's^OPENSSL_DIR.*=.*$^OPENSSL_DIR = ${STAGING_DIR_NATIVE}/${prefix_native}^' ${S}/tools/*/Makefile
oe_runmake ${TFA_BUILD_TARGET}
}