diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-07-20 13:51:38 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-07-20 13:51:38 +0800 |
commit | ede9a4f871026a96afddee35fc65d7e4c82d3925 (patch) | |
tree | 31330ff4642063c90eecf1b783d37a1b4409eaff | |
parent | d5ea27e293506333cc23548f763d66f986d5a1ee (diff) | |
download | meta-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.patch | 21 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.8.bb | 24 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm/tpm-tools/tpm-tools_git.bb | 43 |
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 @@ | |||
1 | SUMMARY = "The tpm-tools package contains commands to allow the platform administrator the ability to manage and diagnose the platform's TPM." | ||
2 | DESCRIPTION = " \ | ||
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 | " | ||
8 | SECTION = "tpm" | ||
9 | PR = "r0" | ||
10 | LICENSE = "CPL-1.0" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" | ||
12 | DEPENDS = "libtspi openssl" | ||
13 | |||
14 | SRC_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 | |||
21 | SRC_URI[md5sum] = "85a978c4e03fefd4b73cbeadde7c4d0b" | ||
22 | SRC_URI[sha256sum] = "66eb4ff095542403db6b4bd4b574e8a5c08084fe4e9e5aa9a829ee84e20bea83" | ||
23 | |||
24 | inherit 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 @@ | |||
1 | SUMMARY = "The tpm-tools package contains commands to allow the platform administrator the ability to manage and diagnose the platform's TPM." | ||
2 | DESCRIPTION = "\ | ||
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 | " | ||
8 | SECTION = "security/tpm" | ||
9 | |||
10 | LICENSE = "CPL-1.0" | ||
11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" | ||
12 | |||
13 | DEPENDS = "libtspi openssl" | ||
14 | DEPENDS_class-native = "trousers-native" | ||
15 | |||
16 | PV = "1.3.9.1+git${SRCPV}" | ||
17 | |||
18 | SRC_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 | " | ||
23 | SRCREV = "bdf9f1bc8f63cd6fc370c2deb58d03ac55079e84" | ||
24 | |||
25 | S = "${WORKDIR}/git" | ||
26 | |||
27 | inherit autotools-brokensep gettext | ||
28 | |||
29 | do_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 | |||
37 | do_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 | |||
43 | BBCLASSEXTEND = "native" | ||