blob: 89a70aaf716bab832e206e5cb5ea8ad7f0be4391 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
SUMMARY = "Testcases to exercise the TSS stack/TSS API"
DESCRIPTION = "\
These are the testcases that exercise the TSS stack. They can be run \
either through the the LTP framework or standalone. The testcases \
have been tested against the 20040304 version of LTP. \
\
Please do not execute these testcases on a machine where you are actively \
using the TPM. \
"
HOMEPAGE = "${SOURCEFORGE_MIRROR}/projects/trousers"
SECTION = "security/tpm"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "trousers"
PV = "git${SRCPV}"
SRC_URI = "\
git://git.code.sf.net/p/trousers/testsuite;branch=master \
file://fix-failure-of-.so-LD-with-cortexa8t-neon-wrswrap-linux.patch \
file://testsuite-transport-init.patch \
file://Tspi_TPM_LoadMaintenancePubKey01.patch \
file://transport-Tspi_TPM_Delegate.patch \
file://common_c_no_des.patch \
file://Tspi_TPM_CreateIdentity_no_des.patch \
file://Tspi_TPM_CreateIdentityWithCallbacks_no_des.patch \
"
SRCREV = "f8f5c8684fd18522f8b8a82c416b088e886a1b7d"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = "-C tcg 'CC=${CC}'"
testsuite_SUBDIRS = "\
cmk context data delegation hash highlevel init key nv \
pcrcomposite policy tpm transport tspi \
"
CFLAGS += "-DOPENSSL_NO_DES"
LDFLAGS += "-L${STAGING_LIBDIR} -lcrypto -lpthread"
do_configure:prepend() {
cp -f "${S}/tcg/Makefile" "${S}"
cp -f "${S}/tcg/init/makefile" "${S}/tcg/init/Makefile"
# remove test case about DES
rm -rf "${S}/tcg/context/Tspi_Context_GetCapability13.c"
}
do_install() {
install -d "${D}/opt/tss-testsuite/tcg"
for i in ${testsuite_SUBDIRS}; do \
echo "Installing ${i}"; \
cp -rf "tcg/${i}" "${D}/opt/tss-testsuite/tcg/"; \
done;
install -m 0755 tsstests.sh "${D}/opt/tss-testsuite"
}
FILES:${PN} += "/opt/*"
FILES:${PN}-dbg += "\
/opt/tss-testsuite/tcg/*/.debug \
/opt/tss-testsuite/tcg/*/*/.debug \
"
RDEPENDS:${PN} += "tpm-tools openssl bash"
|