summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-03-19 20:18:59 +0000
committerArmin Kuster <akuster808@gmail.com>2021-03-25 18:29:41 +0000
commit775870980bc72df7126d910364f44b907727c1d5 (patch)
tree7e468a3fec34f844997eb1ebbfa9ebc3b746d060
parent5e1ae6768427b41db7a4f3647018d76cfdcb9b31 (diff)
downloadmeta-security-775870980bc72df7126d910364f44b907727c1d5.tar.gz
swtpm: update to 0.5.2
Add python package Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb (renamed from meta-tpm/recipes-tpm/swtpm/swtpm_0.2.0.bb)17
1 files changed, 9 insertions, 8 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_0.2.0.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
index 35c77c8..b7ff2ad 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.2.0.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
@@ -3,22 +3,21 @@ LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8" 3LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8"
4SECTION = "apps" 4SECTION = "apps"
5 5
6DEPENDS = "libtasn1 expect socat glib-2.0 net-tools-native libtpm libtpm-native" 6DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libtpm libtpm-native"
7 7
8# configure checks for the tools already during compilation and 8# configure checks for the tools already during compilation and
9# then swtpm_setup needs them at runtime 9# then swtpm_setup needs them at runtime
10DEPENDS += "tpm-tools-native expect-native socat-native" 10DEPENDS += "tpm-tools-native expect-native socat-native"
11 11
12SRCREV = "39673a0139b0ee14a0109aba50a0635592c672c4" 12SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464"
13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-${PV} \ 13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \
14 file://fix_fcntl_h.patch \
15 file://ioctl_h.patch \ 14 file://ioctl_h.patch \
16 " 15 "
17PE = "1" 16PE = "1"
18 17
19S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"
20 19
21inherit autotools pkgconfig 20inherit autotools pkgconfig python3-dir
22PARALLEL_MAKE = "" 21PARALLEL_MAKE = ""
23 22
24TSS_USER="tss" 23TSS_USER="tss"
@@ -35,18 +34,20 @@ PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp"
35 34
36EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}" 35EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}"
37 36
38export SEARCH_DIR = "${STAGING_LIBDIR_NATIVE}"
39
40USERADD_PACKAGES = "${PN}" 37USERADD_PACKAGES = "${PN}"
41GROUPADD_PARAM_${PN} = "--system ${TSS_USER}" 38GROUPADD_PARAM_${PN} = "--system ${TSS_USER}"
42USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \ 39USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \
43 --no-create-home --shell /bin/false ${BPN}" 40 --no-create-home --shell /bin/false ${BPN}"
44 41
42
43PACKAGES =+ "${PN}-python"
44FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_PN}/dist-packages/* "
45
45PACKAGE_BEFORE_PN = "${PN}-cuse" 46PACKAGE_BEFORE_PN = "${PN}-cuse"
46FILES_${PN}-cuse = "${bindir}/swtpm_cuse" 47FILES_${PN}-cuse = "${bindir}/swtpm_cuse"
47 48
48INSANE_SKIP_${PN} += "dev-so" 49INSANE_SKIP_${PN} += "dev-so"
49 50
50RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools" 51RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools python3 python3-cryptography python3-twisted"
51 52
52BBCLASSEXTEND = "native nativesdk" 53BBCLASSEXTEND = "native nativesdk"