blob: a914c3bb6650198aef2a4fcefa1af0a63111e577 (
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
43
44
45
46
47
48
|
SUMMARY = "Tools for TPM2."
DESCRIPTION = "tpm2.0-tools"
SECTION = "tpm"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=91b7c548d73ea16537799e8060cea819"
DEPENDS += "tpm2.0-tss tpm2-abrmd openssl curl autoconf-archive pkgconfig"
RDEPENDS_${PN} += "libtss2 libtctidevice"
SRC_URI = " \
git://github.com/01org/tpm2.0-tools.git;branch=master;name=tpm2.0-tools;destsuffix=tpm2.0-tools \
file://ax_check_compile_flag.m4 \
file://ax_check_preproc_flag.m4 \
file://ax_check_link_flag.m4 \
file://0001-tpm2-tools-use-dynamic-linkage-with-tpm2-abrmd.patch \
file://0002-Fix-build-failure-with-glib-2.0.patch \
"
S = "${WORKDIR}/${BPN}"
SRCREV = "ada4c20d23d99b4b489c6c793e4132c1d5234b66"
PV = "2.0.0+git${SRCPV}"
inherit autotools pkgconfig
EXTRA_OECONF += " \
--with-tcti-device \
--without-tcti-socket \
--with-tcti-tabrmd \
"
EXTRA_OEMAKE += " \
CFLAGS="${CFLAGS} -Wno-implicit-fallthrough" \
"
do_configure_prepend() {
mkdir -p "${S}/m4"
cp "${WORKDIR}/ax_check_compile_flag.m4" "${S}/m4"
cp "${WORKDIR}/ax_check_preproc_flag.m4" "${S}/m4"
cp "${WORKDIR}/ax_check_link_flag.m4" "${S}/m4"
# execute the bootstrap script
currentdir=$(pwd)
cd "${S}"
ACLOCAL="aclocal --system-acdir=${STAGING_DATADIR}/aclocal" \
./bootstrap --force
cd "${currentdir}"
}
|