diff options
| author | Trevor Woerner <twoerner@gmail.com> | 2018-06-12 23:11:10 -0400 |
|---|---|---|
| committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-15 13:01:25 +0800 |
| commit | de08228a0de497e9efd848470309bd5d76e691d7 (patch) | |
| tree | ee6ec4f397a9c9bbfec19d3bc54268810477d72e | |
| parent | ec19d0a8ece756c3f9c2360247af8db7a83ed6cf (diff) | |
| download | meta-secure-core-de08228a0de497e9efd848470309bd5d76e691d7.tar.gz | |
tpm2-abrmd: update daemon cmdline options
In the latest git version of abrmd:
- the following option has been renamed:
--max-transient-objects -> --max-transients
- the following option has been removed:
--fail-on-loaded-trans
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
4 files changed, 25 insertions, 11 deletions
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default b/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default new file mode 100644 index 0000000..08dd111 --- /dev/null +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/files/tpm2-abrmd_git.default | |||
| @@ -0,0 +1 @@ | |||
| DAEMON_OPTS="--tcti=device --logger=syslog --max-connections=20 --max-transients=20" | |||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc index 2cadb64..a71a04b 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc | |||
| @@ -11,7 +11,6 @@ DEPENDS += "autoconf-archive-native dbus glib-2.0 glib-2.0-native" | |||
| 11 | 11 | ||
| 12 | SRC_URI = "\ | 12 | SRC_URI = "\ |
| 13 | file://tpm2-abrmd-init.sh \ | 13 | file://tpm2-abrmd-init.sh \ |
| 14 | file://tpm2-abrmd.default \ | ||
| 15 | " | 14 | " |
| 16 | 15 | ||
| 17 | inherit autotools pkgconfig systemd update-rc.d useradd | 16 | inherit autotools pkgconfig systemd update-rc.d useradd |
| @@ -27,14 +26,6 @@ USERADD_PACKAGES = "${PN}" | |||
| 27 | GROUPADD_PARAM_${PN} = "tss" | 26 | GROUPADD_PARAM_${PN} = "tss" |
| 28 | USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" | 27 | USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" |
| 29 | 28 | ||
| 30 | do_install_append() { | ||
| 31 | install -d "${D}${sysconfdir}/init.d" | ||
| 32 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 33 | |||
| 34 | install -d "${D}${sysconfdir}/default" | ||
| 35 | install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 36 | } | ||
| 37 | |||
| 38 | FILES_${PN} += "\ | 29 | FILES_${PN} += "\ |
| 39 | ${libdir}/systemd \ | 30 | ${libdir}/systemd \ |
| 40 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ | 31 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ |
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb index ce1459c..32d842d 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_1.3.1.bb | |||
| @@ -2,6 +2,17 @@ include ${BPN}.inc | |||
| 2 | 2 | ||
| 3 | DEPENDS += "libtctidevice libtctisocket libtss2" | 3 | DEPENDS += "libtctidevice libtctisocket libtss2" |
| 4 | 4 | ||
| 5 | SRC_URI += "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz" | 5 | SRC_URI += " \ |
| 6 | https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \ | ||
| 7 | file://tpm2-abrmd.default \ | ||
| 8 | " | ||
| 6 | SRC_URI[md5sum] = "3f5f2461fd98aca0add1187e4705c0de" | 9 | SRC_URI[md5sum] = "3f5f2461fd98aca0add1187e4705c0de" |
| 7 | SRC_URI[sha256sum] = "859d777a0d2c5d78309c4a2f06879a1e914b41324ea8258920a778a1ad7e38ea" | 10 | SRC_URI[sha256sum] = "859d777a0d2c5d78309c4a2f06879a1e914b41324ea8258920a778a1ad7e38ea" |
| 11 | |||
| 12 | do_install_append() { | ||
| 13 | install -d "${D}${sysconfdir}/init.d" | ||
| 14 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 15 | |||
| 16 | install -d "${D}${sysconfdir}/default" | ||
| 17 | install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 18 | } | ||
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb index 43f2650..a18a62c 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb | |||
| @@ -7,7 +7,10 @@ DEPENDS += "tpm2-tss libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-mssim" | |||
| 7 | PVBASE := "${PV}" | 7 | PVBASE := "${PV}" |
| 8 | PV = "${PVBASE}.${SRCPV}" | 8 | PV = "${PVBASE}.${SRCPV}" |
| 9 | 9 | ||
| 10 | SRC_URI += "git://github.com/01org/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}" | 10 | SRC_URI += " \ |
| 11 | git://github.com/01org/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN} \ | ||
| 12 | file://tpm2-abrmd_git.default \ | ||
| 13 | " | ||
| 11 | 14 | ||
| 12 | SRCREV = "${AUTOREV}" | 15 | SRCREV = "${AUTOREV}" |
| 13 | 16 | ||
| @@ -21,4 +24,12 @@ do_configure_prepend () { | |||
| 21 | cd ${currentdir} | 24 | cd ${currentdir} |
| 22 | } | 25 | } |
| 23 | 26 | ||
| 27 | do_install_append() { | ||
| 28 | install -d "${D}${sysconfdir}/init.d" | ||
| 29 | install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" | ||
| 30 | |||
| 31 | install -d "${D}${sysconfdir}/default" | ||
| 32 | install -m 0644 "${WORKDIR}/tpm2-abrmd_git.default" "${D}${sysconfdir}/default/tpm2-abrmd" | ||
| 33 | } | ||
| 34 | |||
| 24 | RDEPENDS_${PN} += "tpm2-tss" | 35 | RDEPENDS_${PN} += "tpm2-tss" |
