diff options
| author | Trevor Woerner <twoerner@gmail.com> | 2018-06-12 23:01:48 -0400 |
|---|---|---|
| committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-15 13:01:25 +0800 |
| commit | 156cf9252806137c81cf2b006bc2f7de54517aca (patch) | |
| tree | cfd8611fac704656abf438e3f22463b034650c65 | |
| parent | 7d4f711413205d796187e1e53fbea5affd365cd8 (diff) | |
| download | meta-secure-core-156cf9252806137c81cf2b006bc2f7de54517aca.tar.gz | |
tpm2-tss: cleanup and update
Cleanup the tpm2-tss recipe such that there is a recipe for
building the latest release (the default) and one for building
the latest, auto-incrementing version from git master placing
all pieces common to the two recipes in an include file.
Update release from 1.3.0 to 1.4.0.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss.inc | 12 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_1.4.0.bb | 55 | ||||
| -rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb | 135 |
3 files changed, 131 insertions, 71 deletions
diff --git a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss.inc b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss.inc new file mode 100644 index 0000000..815bfec --- /dev/null +++ b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss.inc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | SUMMARY = "The TCG TPM2 Software Stack" | ||
| 2 | DESCRIPTION = "The TCG (Trusted Computing Group) Software Stack (TSS) \ | ||
| 3 | provides a standard API for accessing the functions of the TPM. \ | ||
| 4 | Application developers can use this software to develop interoperable \ | ||
| 5 | client applications." | ||
| 6 | HOMEPAGE = "https://github.com/tpm2-software/tpm2-tss" | ||
| 7 | SECTION = "security/tpm" | ||
| 8 | LICENSE = "BSD-2-Clause" | ||
| 9 | |||
| 10 | DEPENDS = "autoconf-archive-native" | ||
| 11 | |||
| 12 | inherit autotools pkgconfig | ||
diff --git a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_1.4.0.bb b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_1.4.0.bb new file mode 100644 index 0000000..f676ba5 --- /dev/null +++ b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_1.4.0.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | include ${BPN}.inc | ||
| 2 | |||
| 3 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da" | ||
| 4 | |||
| 5 | PROVIDES = "${PACKAGES}" | ||
| 6 | |||
| 7 | SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz" | ||
| 8 | SRC_URI[md5sum] = "3fadb8ee8a4e506b9732d2a9dfcad77c" | ||
| 9 | SRC_URI[sha256sum] = "cf8784cc536be16e6fba47f77033e093a6aeaed8420877ac9f42f77fb7b09031" | ||
| 10 | |||
| 11 | S = "${WORKDIR}/${BPN}-${PV}" | ||
| 12 | |||
| 13 | PACKAGES = " \ | ||
| 14 | ${PN}-dbg \ | ||
| 15 | ${PN}-doc \ | ||
| 16 | libtss2 \ | ||
| 17 | libtss2-dev \ | ||
| 18 | libtss2-staticdev \ | ||
| 19 | libtctidevice \ | ||
| 20 | libtctidevice-dev \ | ||
| 21 | libtctidevice-staticdev \ | ||
| 22 | libtctisocket \ | ||
| 23 | libtctisocket-dev \ | ||
| 24 | libtctisocket-staticdev \ | ||
| 25 | " | ||
| 26 | |||
| 27 | FILES_libtss2 = " \ | ||
| 28 | ${libdir}/libsapi.so.* \ | ||
| 29 | " | ||
| 30 | FILES_libtss2-dev = " \ | ||
| 31 | ${includedir}/sapi \ | ||
| 32 | ${includedir}/tcti/common.h \ | ||
| 33 | ${libdir}/libsapi.so \ | ||
| 34 | ${libdir}/pkgconfig/sapi.pc \ | ||
| 35 | " | ||
| 36 | FILES_libtss2-staticdev = " \ | ||
| 37 | ${libdir}/libsapi.a \ | ||
| 38 | ${libdir}/libsapi.la \ | ||
| 39 | " | ||
| 40 | |||
| 41 | FILES_libtctidevice = "${libdir}/libtcti-device.so.*" | ||
| 42 | FILES_libtctidevice-dev = " \ | ||
| 43 | ${includedir}/tcti/tcti_device.h \ | ||
| 44 | ${libdir}/libtcti-device.so \ | ||
| 45 | ${libdir}/pkgconfig/tcti-device.pc \ | ||
| 46 | " | ||
| 47 | FILES_libtctidevice-staticdev = "${libdir}/libtcti-device.*a" | ||
| 48 | |||
| 49 | FILES_libtctisocket = "${libdir}/libtcti-socket.so.*" | ||
| 50 | FILES_libtctisocket-dev = " \ | ||
| 51 | ${includedir}/tcti/tcti_socket.h \ | ||
| 52 | ${libdir}/libtcti-socket.so \ | ||
| 53 | ${libdir}/pkgconfig/tcti-socket.pc \ | ||
| 54 | " | ||
| 55 | FILES_libtctisocket-staticdev = "${libdir}/libtcti-socket.*a" | ||
diff --git a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb index 7147607..75825ff 100644 --- a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb +++ b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb | |||
| @@ -1,82 +1,75 @@ | |||
| 1 | SUMMARY = "Software stack for TPM2." | 1 | include ${BPN}.inc |
| 2 | DESCRIPTION = "tpm2-tss like woah." | ||
| 3 | SECTION = "security/tpm" | ||
| 4 | 2 | ||
| 5 | LICENSE = "BSD-2-Clause" | 3 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=0b1d631c4218b72f6b05cb58613606f4" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da" | ||
| 7 | 4 | ||
| 8 | DEPENDS += "autoconf-archive pkgconfig" | 5 | DEFAULT_PREFERENCE = "-1" |
| 9 | 6 | ||
| 10 | PV = "1.3.0+git${SRCPV}" | 7 | DEPENDS += "libgcrypt" |
| 11 | 8 | ||
| 12 | SRC_URI = "\ | 9 | PROVIDES = "${PACKAGES}" |
| 13 | git://github.com/tpm2-software/tpm2-tss.git;branch=1.x \ | ||
| 14 | " | ||
| 15 | SRCREV = "b1d9ece8c6bea2e3043943b2edfaebcdca330c38" | ||
| 16 | 10 | ||
| 17 | S = "${WORKDIR}/git" | 11 | PVBASE := "${PV}" |
| 12 | PV = "${PVBASE}.${SRCPV}" | ||
| 18 | 13 | ||
| 19 | inherit autotools pkgconfig | 14 | SRC_URI = "git://github.com/tpm2-software/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}" |
| 20 | 15 | ||
| 21 | do_configure_prepend() { | 16 | SRCREV = "${AUTOREV}" |
| 22 | # execute the bootstrap script | 17 | |
| 23 | currentdir="$(pwd)" | 18 | S = "${WORKDIR}/${BPN}" |
| 24 | cd "${S}" | 19 | |
| 25 | ACLOCAL="aclocal --system-acdir=${STAGING_DATADIR}/aclocal" \ | 20 | do_configure_prepend () { |
| 26 | ./bootstrap | 21 | # Execute the bootstrap script, to generate src_vars.mk. |
| 27 | cd "${currentdir}" | 22 | # The actual autotools bootstrapping is done by the normal |
| 23 | # do_configure, which does a better job with it (for example, | ||
| 24 | # it finds m4 macros also in the native sysroot). | ||
| 25 | currentdir=$(pwd) | ||
| 26 | cd ${S} | ||
| 27 | AUTORECONF=true ./bootstrap | ||
| 28 | cd ${currentdir} | ||
| 28 | } | 29 | } |
| 29 | 30 | ||
| 30 | PACKAGES = "\ | 31 | PACKAGES = " \ |
| 31 | ${PN}-dbg \ | 32 | libtss2-mu \ |
| 32 | libtss2 \ | 33 | libtss2-mu-dev \ |
| 33 | libtss2-dev \ | 34 | libtss2-mu-staticdev \ |
| 34 | libtss2-staticdev \ | 35 | libtss2-tcti-device \ |
| 35 | libtss2-doc \ | 36 | libtss2-tcti-device-dev \ |
| 36 | libtctidevice \ | 37 | libtss2-tcti-device-staticdev \ |
| 37 | libtctidevice-dev \ | 38 | libtss2-tcti-mssim \ |
| 38 | libtctidevice-staticdev \ | 39 | libtss2-tcti-mssim-dev \ |
| 39 | libtctisocket \ | 40 | libtss2-tcti-mssim-staticdev \ |
| 40 | libtctisocket-dev \ | 41 | libtss2 \ |
| 41 | libtctisocket-staticdev \ | 42 | libtss2-dev \ |
| 42 | " | 43 | libtss2-staticdev \ |
| 44 | ${PN} \ | ||
| 45 | ${PN}-doc \ | ||
| 46 | ${PN}-dbg \ | ||
| 47 | " | ||
| 48 | |||
| 49 | FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*" | ||
| 50 | FILES_libtss2-tcti-device-dev = " \ | ||
| 51 | ${includedir}/tss2/tss2_tcti_device.h \ | ||
| 52 | ${libdir}/pkgconfig/tss2-tcti-device.pc \ | ||
| 53 | ${libdir}/libtss2-tcti-device.so" | ||
| 54 | FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a" | ||
| 55 | |||
| 56 | FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*" | ||
| 57 | FILES_libtss2-tcti-mssim-dev = " \ | ||
| 58 | ${includedir}/tss2/tss2_tcti_mssim.h \ | ||
| 59 | ${libdir}/pkgconfig/tss2-tcti-mssim.pc \ | ||
| 60 | ${libdir}/libtss2-tcti-mssim.so" | ||
| 61 | FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a" | ||
| 43 | 62 | ||
| 44 | FILES_libtss2 = "${libdir}/libsapi.so.*" | 63 | FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*" |
| 45 | FILES_libtss2-dev = "\ | 64 | FILES_libtss2-mu-dev = " \ |
| 46 | ${includedir}/sapi \ | 65 | ${includedir}/tss2/tss2_mu.h \ |
| 47 | ${includedir}/tcti/common.h \ | 66 | ${libdir}/pkgconfig/tss2-mu.pc \ |
| 48 | ${libdir}/libsapi.so \ | 67 | ${libdir}/libtss2-mu.so" |
| 49 | ${libdir}/pkgconfig/sapi.pc \ | 68 | FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a" |
| 50 | " | ||
| 51 | FILES_libtss2-staticdev = "\ | ||
| 52 | ${libdir}/libsapi.a \ | ||
| 53 | ${libdir}/libsapi.la \ | ||
| 54 | " | ||
| 55 | FILES_libtss2-doc = "\ | ||
| 56 | ${mandir} \ | ||
| 57 | " | ||
| 58 | FILES_libtctidevice = "${libdir}/libtcti-device.so.*" | ||
| 59 | FILES_libtctidevice-dev = "\ | ||
| 60 | ${includedir}/tcti/tcti_device.h \ | ||
| 61 | ${libdir}/libtcti-device.so \ | ||
| 62 | ${libdir}/pkgconfig/tcti-device.pc \ | ||
| 63 | " | ||
| 64 | FILES_libtctidevice-staticdev = "\ | ||
| 65 | ${libdir}/libtcti-device.a \ | ||
| 66 | ${libdir}/libtcti-device.la \ | ||
| 67 | " | ||
| 68 | FILES_libtctisocket = "${libdir}/libtcti-socket.so.*" | ||
| 69 | FILES_libtctisocket-dev = "\ | ||
| 70 | ${includedir}/tcti/tcti_socket.h \ | ||
| 71 | ${libdir}/libtcti-socket.so \ | ||
| 72 | ${libdir}/pkgconfig/tcti-socket.pc \ | ||
| 73 | " | ||
| 74 | FILES_libtctisocket-staticdev = "\ | ||
| 75 | ${libdir}/libtcti-socket.a \ | ||
| 76 | ${libdir}/libtcti-socket.la \ | ||
| 77 | " | ||
| 78 | 69 | ||
| 79 | RRECOMMENDS_${PN} += "\ | 70 | FILES_libtss2 = "${libdir}/libtss2*so.*" |
| 80 | kernel-module-tpm-crb \ | 71 | FILES_libtss2-dev = " \ |
| 81 | kernel-module-tpm-tis \ | 72 | ${includedir} \ |
| 82 | " | 73 | ${libdir}/pkgconfig \ |
| 74 | ${libdir}/libtss2*so" | ||
| 75 | FILES_libtss2-staticdev = "${libdir}/libtss*a" | ||
