Skip to contentSkip to conversation

ti-softhsmv2: Use target includes for zlib and openssl

PATCH In review Paul Barker 2 participants 2 messages Jan 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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 file changed, 4 insertions(+), 1 deletion(-)
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"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 7 lines · Paul Barker

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.

this looks good

Quoted 24 lines

---
recipes-ti/ti-softhsmv2/ti-softhsmv2_git.bb | 5 ++++-

1 file changed, 4 insertions(+), 1 deletion(-)
recipes-ti/ti-softhsmv2/ti-softhsmv2_git.bb +0 -0
index c1e1654..3143acd 100644
@@ -21,7 +21,10 @@ S = "${WORKDIR}/git"

CFLAGS += " -mno-unaligned-access"
CPPFLAGS += " -mno-unaligned-access"

recipes-ti/ti-softhsmv2/ti-softhsmv2_git.bb +4 -1
-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"
--
1.9.1