summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2017-07-20 13:51:38 +0800
committerLans Zhang <jia.zhang@windriver.com>2017-07-20 13:51:38 +0800
commitede9a4f871026a96afddee35fc65d7e4c82d3925 (patch)
tree31330ff4642063c90eecf1b783d37a1b4409eaff
parentd5ea27e293506333cc23548f763d66f986d5a1ee (diff)
downloadmeta-secure-core-ede9a4f871026a96afddee35fc65d7e4c82d3925.tar.gz
tpm-tools: update to the latest and code style fixup
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/files/03-fix-bool-error-parseStringWithValues.patch (renamed from meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch)0
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch (renamed from meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch)0
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-gcc-6.patch21
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb24
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/tpm-tools_git.bb43
5 files changed, 43 insertions, 45 deletions
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch b/meta-tpm/recipes-tpm/tpm-tools/files/03-fix-bool-error-parseStringWithValues.patch
index 9497e89..9497e89 100644
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/03-fix-bool-error-parseStringWithValues.patch
+++ b/meta-tpm/recipes-tpm/tpm-tools/files/03-fix-bool-error-parseStringWithValues.patch
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch b/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch
index ab5e683..ab5e683 100644
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-extendpcr.patch
+++ b/meta-tpm/recipes-tpm/tpm-tools/files/tpm-tools-extendpcr.patch
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-gcc-6.patch b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-gcc-6.patch
deleted file mode 100644
index eb4373d..0000000
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools-1.3.8/tpm-tools-gcc-6.patch
+++ /dev/null
@@ -1,21 +0,0 @@
1--- a/src/tpm_mgmt/tpm_present.c
2+++ b/src/tpm_mgmt/tpm_present.c
3@@ -349,13 +349,13 @@
4 }
5 } while (flags[++i].name);
6
7- out_success:
8+out_success:
9 logSuccess(argv[0]);
10 iRc = 0;
11- out_close:
12+out_close:
13 contextClose(hContext);
14- out:
15- if (szTpmPasswd && !isWellKnown)
16- shredPasswd( szTpmPasswd );
17+out:
18+ if (szTpmPasswd && !isWellKnown)
19+ shredPasswd( szTpmPasswd );
20 return iRc;
21 }
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb
deleted file mode 100644
index 5b5bbd8..0000000
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb
+++ /dev/null
@@ -1,24 +0,0 @@
1SUMMARY = "The tpm-tools package contains commands to allow the platform administrator the ability to manage and diagnose the platform's TPM."
2DESCRIPTION = " \
3 The tpm-tools package contains commands to allow the platform administrator \
4 the ability to manage and diagnose the platform's TPM. Additionally, the \
5 package contains commands to utilize some of the capabilities available \
6 in the TPM PKCS#11 interface implemented in the openCryptoki project. \
7 "
8SECTION = "tpm"
9PR = "r0"
10LICENSE = "CPL-1.0"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
12DEPENDS = "libtspi openssl"
13
14SRC_URI += " \
15 http://downloads.sourceforge.net/project/trousers/tpm-tools/1.3.8/tpm-tools-1.3.8.tar.gz \
16 file://tpm-tools-extendpcr.patch \
17 file://03-fix-bool-error-parseStringWithValues.patch \
18 file://tpm-tools-gcc-6.patch \
19"
20
21SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b"
22SRC_URI[sha256sum] = "66eb4ff095542403db6b4bd4b574e8a5c08084fe4e9e5aa9a829ee84e20bea83"
23
24inherit autotools gettext
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_git.bb b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_git.bb
new file mode 100644
index 0000000..cb59e8c
--- /dev/null
+++ b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_git.bb
@@ -0,0 +1,43 @@
1SUMMARY = "The tpm-tools package contains commands to allow the platform administrator the ability to manage and diagnose the platform's TPM."
2DESCRIPTION = "\
3The tpm-tools package contains commands to allow the platform administrator \
4the ability to manage and diagnose the platform's TPM. Additionally, the \
5package contains commands to utilize some of the capabilities available \
6in the TPM PKCS#11 interface implemented in the openCryptoki project. \
7"
8SECTION = "security/tpm"
9
10LICENSE = "CPL-1.0"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
12
13DEPENDS = "libtspi openssl"
14DEPENDS_class-native = "trousers-native"
15
16PV = "1.3.9.1+git${SRCPV}"
17
18SRC_URI = "\
19 git://git.code.sf.net/p/trousers/tpm-tools \
20 file://tpm-tools-extendpcr.patch \
21 file://03-fix-bool-error-parseStringWithValues.patch;apply=0 \
22"
23SRCREV = "bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84"
24
25S = "${WORKDIR}/git"
26
27inherit autotools-brokensep gettext
28
29do_configure_prepend() {
30 mkdir -p po
31 mkdir -p m4
32 cp -R po_/* po/
33 touch po/Makefile.in.in
34 touch m4/Makefile.am
35}
36
37do_install_append() {
38 #install -m 0755 "src/tpm_mgmt/tpm_startup" "${D}${sbindir}/tpm_startup"
39 #install -m 0744 "src/tpm_mgmt/tpm_reset" "${D}${sbindir}/tpm_reset"
40 #install -m 0744 "../tpm_integrationtest" "${D}${bindir}/tpm_integrationtest"
41}
42
43BBCLASSEXTEND = "native"