summaryrefslogtreecommitdiffstats
path: root/meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb
blob: a8244de31ed9980cba326db905387492752b8cf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SUMMARY = "Tools for TPM2."
DESCRIPTION = "tpm2-tools"
SECTION = "security/tpm"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=91b7c548d73ea16537799e8060cea819"

DEPENDS += "tpm2.0-tss tpm2-abrmd openssl curl autoconf-archive pkgconfig"

PV = "3.0.3+git${SRCPV}"

SRC_URI = "\
    git://github.com/tpm2-software/tpm2-tools.git;branch=3.X \
    file://0001-tpm2-tools-use-dynamic-linkage-with-tpm2-abrmd.patch \
"
SRCREV = "6b4385f098bd5d39e1cfc6cd2b038b68c960413f"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF += "\
    --with-tcti-device \
    --without-tcti-socket \
    --with-tcti-tabrmd \
"

EXTRA_OEMAKE += "\
    CFLAGS="${CFLAGS} -Wno-implicit-fallthrough" \
    LIBS=-ldl \
"

do_configure_prepend() {
    # execute the bootstrap script
    currentdir="$(pwd)"
    cd "${S}"
    ACLOCAL="aclocal --system-acdir=${STAGING_DATADIR}/aclocal" \
        ./bootstrap
    cd "${currentdir}"
}

RDEPENDS_${PN} += "libtss2 libtctidevice"