Skip to contentSkip to conversation

Jacob Stiffler : ti-softhsmv2: Stop recipe from using headers from host build machine.

PATCH Arago Project git 1 participant 1 message Jul 2, 2015

lore
Share & tools
lore
#0 lore raw
Module: meta-ti
Branch: fido
Commit: 8e8311e4755210634a326ccbb2a6f28b37c1bd24
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=8e8311e4755210634a326ccbb2a6f28b37c1bd24
Author: Jacob Stiffler <[email protected]>
Date:   Wed Jul  1 21:19:54 2015 +0000

ti-softhsmv2: Stop recipe from using headers from host build machine.

* Without the "--with-zlib" configure option, the zlib header will be obtained from the build machines "/usr/include" directory if the header exists there.
* From ${S}/m4/acx_zlib.m4:

AC_DEFUN([ACX_ZLIB],[

        AC_ARG_WITH(zlib,
                AC_HELP_STRING([--with-zlib=PATH],[Specify prefix of path of zlib]),
                [
                        ZLIB_PATH="$withval"
                ],
                [
                        ZLIB_PATH="/usr"
                ])

        AC_MSG_CHECKING(what are the zlib includes)
        ZLIB_INCLUDES="-I$ZLIB_PATH/include"

...

* Therefore add configure option to point to staging sysroot for zlib header and add dependency on zlib.

---

 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 518508c..329fbaa 100644
@@ -7,7 +7,7 @@ mntdir = "/mnt"
 
 inherit autotools pkgconfig
 
-DEPENDS = "openssl libdaemon"
+DEPENDS = "openssl libdaemon zlib"
 COMPATIBLE_MACHINE = "(tci6614-evm|keystone)"
 
 BRANCH="master"
@@ -15,12 +15,15 @@ SRC_URI = "git://git.ti.com/keystone-linux/ti-softhsmv2.git;protocol=git;branch=
 #Following commit corresponds to tag DEV.SOFTHSM-01.03.00.01
 SRCREV = "c79d93ac2a326567a7245dda1b903ef340b5650c"
 PV = "1.3.0.1"
+PR = "r1"
 
 S = "${WORKDIR}/git"
 
 CFLAGS += " -mno-unaligned-access"
 CPPFLAGS += " -mno-unaligned-access"
 
+EXTRA_OECONF += "--with-zlib=${STAGING_DIR_HOST}/usr"
+
 INITSCRIPT_NAME = "softhsm-daemon.sh"
 INITSCRIPT_PARAMS = "defaults 10"