diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-04-02 16:08:40 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-04-02 09:09:54 -0700 |
commit | 901478bfdc6315a1f207114b3a259b069defe0a3 (patch) | |
tree | 33dbb5ed5c1f0e6bf869875f38ccda4cb70c0afb | |
parent | e70a97b5702ce4153a5159f16d7b88f360c3b3ec (diff) | |
download | meta-security-901478bfdc6315a1f207114b3a259b069defe0a3.tar.gz |
swtpm: fix check for tscd deamon on host
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch | 26 | ||||
-rw-r--r-- | meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch b/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch new file mode 100644 index 0000000..fc5943e --- /dev/null +++ b/meta-tpm/recipes-tpm/swtpm/files/oe_configure.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | Don't check for tscd deamon on host. | ||
2 | |||
3 | Upstream-Status: OE Specific | ||
4 | |||
5 | Signed-off-by: Armin Kuster <akuster808@gmail.com> | ||
6 | |||
7 | Index: git/configure.ac | ||
8 | =================================================================== | ||
9 | --- git.orig/configure.ac | ||
10 | +++ git/configure.ac | ||
11 | @@ -179,14 +179,7 @@ AC_SUBST([LIBTPMS_LIBS]) | ||
12 | AC_CHECK_LIB(c, clock_gettime, LIBRT_LIBS="", LIBRT_LIBS="-lrt") | ||
13 | AC_SUBST([LIBRT_LIBS]) | ||
14 | |||
15 | -AC_PATH_PROG([TCSD], tcsd) | ||
16 | -if test "x$TCSD" = "x"; then | ||
17 | - have_tcsd=no | ||
18 | - AC_MSG_WARN([tcsd could not be found; typically need it for tss user account and tests]) | ||
19 | -else | ||
20 | - have_tcsd=yes | ||
21 | -fi | ||
22 | -AM_CONDITIONAL([HAVE_TCSD], test "$have_tcsd" != "no") | ||
23 | +have_tcsd=no | ||
24 | |||
25 | dnl We either need netstat (more common across systems) or 'ss' for test cases | ||
26 | AC_PATH_PROG([NETSTAT], [netstat]) | ||
diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb index ab77196..caf99e8 100644 --- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb +++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb | |||
@@ -12,6 +12,7 @@ DEPENDS_append = " tpm-tools-native expect-native socat-native python3-pip-nativ | |||
12 | SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" | 12 | SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" |
13 | SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \ | 13 | SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \ |
14 | file://ioctl_h.patch \ | 14 | file://ioctl_h.patch \ |
15 | file://oe_configure.patch \ | ||
15 | " | 16 | " |
16 | PE = "1" | 17 | PE = "1" |
17 | 18 | ||