Skip to contentSkip to conversation

Paul Barker : ti-softhsmv2: Use target includes for zlib and openssl

PATCH Arago Project git 1 participant 1 message Jan 22, 2016

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: fido
Commit: 80ad03680a5758a2d0db462cb98552a669b5ca06
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=80ad03680a5758a2d0db462cb98552a669b5ca06
Author: Paul Barker <[email protected]>
Date:   Wed Jan 20 20:04:26 2016 +0000

ti-softhsmv2: Use target includes for zlib and openssl

ti-softhsmv2 needs to look at the target include directories instead of the host include directories for zlib and openssl header files. By using STAGING_EXECPREFIXDIR we can support changes to exec_prefix.

---

 recipes-ti/ti-softhsmv2/ti-softhsmv2_git.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
recipes-ti/ti-softhsmv2/ti-softhsmv2_git.bb +4 -1
index c1e1654..3143acd 100644
@@ -21,7 +21,10 @@ S = "${WORKDIR}/git"
 CFLAGS += " -mno-unaligned-access"
 CPPFLAGS += " -mno-unaligned-access"
 
-EXTRA_OECONF += "--with-zlib=${STAGING_DIR_HOST}/usr"
+EXTRA_OECONF += " \
+    --with-zlib=${STAGING_EXECPREFIXDIR} \
+    --with-openssl=${STAGING_EXECPREFIXDIR} \
+    "
 
 INITSCRIPT_NAME = "softhsm-daemon.sh"
 INITSCRIPT_PARAMS = "defaults 10"