summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Gotthard <petr.gotthard@advantech.cz>2023-02-17 19:02:04 +0000
committerArmin Kuster <akuster808@gmail.com>2023-02-22 15:22:36 -0500
commite188be029cdfdd18f993b0ae2b37d885cfbb191b (patch)
treefdae4979c3e0ca82a74e3af7201fae9ca3b03b6b
parentab8651c139a05c476d7e8a6a987106b2f7e9a354 (diff)
downloadmeta-security-e188be029cdfdd18f993b0ae2b37d885cfbb191b.tar.gz
tpm2-tss: upgrade 3.2.0 -> 4.0.1
Changelog: https://github.com/tpm2-software/tpm2-tss/blob/4.0.1/CHANGELOG.md Signed-off-by: Petr Gotthard <petr.gotthard@advantech.cz> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch10
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_4.0.1.bb (renamed from meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.2.0.bb)12
2 files changed, 9 insertions, 13 deletions
diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch
index 450698f..04a2964 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch
+++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss/fixup_hosttools.patch
@@ -5,16 +5,16 @@ Not appropriate for cross build env.
5Upstream-Status: OE [inappropriate] 5Upstream-Status: OE [inappropriate]
6Signed-off-by: Armin Kuster <akuster808@gmail.com> 6Signed-off-by: Armin Kuster <akuster808@gmail.com>
7 7
8Index: tpm2-tss-3.2.0/configure.ac 8Index: tpm2-tss-4.0.1/configure.ac
9=================================================================== 9===================================================================
10--- tpm2-tss-3.2.0.orig/configure.ac 10--- tpm2-tss-4.0.1.orig/configure.ac
11+++ tpm2-tss-3.2.0/configure.ac 11+++ tpm2-tss-4.0.1/configure.ac
12@@ -488,17 +488,6 @@ 12@@ -554,17 +554,6 @@ AM_CONDITIONAL(SYSD_SYSUSERS, test "x$systemd_sysusers" = "xyes")
13 AC_CHECK_PROG(systemd_tmpfiles, systemd-tmpfiles, yes) 13 AC_CHECK_PROG(systemd_tmpfiles, systemd-tmpfiles, yes)
14 AM_CONDITIONAL(SYSD_TMPFILES, test "x$systemd_tmpfiles" = "xyes") 14 AM_CONDITIONAL(SYSD_TMPFILES, test "x$systemd_tmpfiles" = "xyes")
15 15
16-# Check all tools used by make install 16-# Check all tools used by make install
17-AS_IF([test "$HOSTOS" = "Linux"], 17-AS_IF([test "$HOSTOS" = "Linux" && test "x$systemd_sysusers" != "xyes"],
18- [ AC_CHECK_PROG(useradd, useradd, yes) 18- [ AC_CHECK_PROG(useradd, useradd, yes)
19- AC_CHECK_PROG(groupadd, groupadd, yes) 19- AC_CHECK_PROG(groupadd, groupadd, yes)
20- AC_CHECK_PROG(adduser, adduser, yes) 20- AC_CHECK_PROG(adduser, adduser, yes)
diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.2.0.bb b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_4.0.1.bb
index 1556273..657a2cd 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.2.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_4.0.1.bb
@@ -10,15 +10,16 @@ SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN
10 file://fixup_hosttools.patch \ 10 file://fixup_hosttools.patch \
11 " 11 "
12 12
13SRC_URI[sha256sum] = "48305e4144dcf6d10f3b25b7bccf0189fd2d1186feafd8cd68c6b17ecf0d7912" 13SRC_URI[sha256sum] = "532a70133910b6bd842289915b3f9423c0205c0ea009d65294ca18a74087c950"
14 14
15UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases" 15UPSTREAM_CHECK_URI = "https://github.com/tpm2-software/${BPN}/releases"
16 16
17inherit autotools pkgconfig systemd useradd 17inherit autotools pkgconfig systemd useradd
18 18
19PACKAGECONFIG ??= "" 19PACKAGECONFIG ??= "vendor"
20PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, " 20PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
21PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,curl json-c " 21PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,curl json-c util-linux-libuuid "
22PACKAGECONFIG[policy] = "--enable-policy,--disable-policy,json-c util-linux-libuuid "
22 23
23EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/" 24EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/"
24EXTRA_OECONF += "--runstatedir=/run" 25EXTRA_OECONF += "--runstatedir=/run"
@@ -28,11 +29,6 @@ USERADD_PACKAGES = "${PN}"
28GROUPADD_PARAM:${PN} = "--system tss" 29GROUPADD_PARAM:${PN} = "--system tss"
29USERADD_PARAM:${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" 30USERADD_PARAM:${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss"
30 31
31do_configure:prepend() {
32 # do not extract the version number from git
33 sed -i -e 's/m4_esyscmd_s(\[git describe --tags --always --dirty\])/${PV}/' ${S}/configure.ac
34}
35
36do_install:append() { 32do_install:append() {
37 # Remove /run as it is created on startup 33 # Remove /run as it is created on startup
38 rm -rf ${D}/run 34 rm -rf ${D}/run