diff options
author | Armin Kuster <akuster808@gmail.com> | 2021-03-19 20:18:59 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-03-25 18:29:41 +0000 |
commit | 775870980bc72df7126d910364f44b907727c1d5 (patch) | |
tree | 7e468a3fec34f844997eb1ebbfa9ebc3b746d060 | |
parent | 5e1ae6768427b41db7a4f3647018d76cfdcb9b31 (diff) | |
download | meta-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" | |||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8" | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fe8092c832b71ef20dfe4c6d3decb3a8" |
4 | SECTION = "apps" | 4 | SECTION = "apps" |
5 | 5 | ||
6 | DEPENDS = "libtasn1 expect socat glib-2.0 net-tools-native libtpm libtpm-native" | 6 | DEPENDS = "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 |
10 | DEPENDS += "tpm-tools-native expect-native socat-native" | 10 | DEPENDS += "tpm-tools-native expect-native socat-native" |
11 | 11 | ||
12 | SRCREV = "39673a0139b0ee14a0109aba50a0635592c672c4" | 12 | SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" |
13 | SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-${PV} \ | 13 | SRC_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 | " |
17 | PE = "1" | 16 | PE = "1" |
18 | 17 | ||
19 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
20 | 19 | ||
21 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig python3-dir |
22 | PARALLEL_MAKE = "" | 21 | PARALLEL_MAKE = "" |
23 | 22 | ||
24 | TSS_USER="tss" | 23 | TSS_USER="tss" |
@@ -35,18 +34,20 @@ PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp" | |||
35 | 34 | ||
36 | EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}" | 35 | EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}" |
37 | 36 | ||
38 | export SEARCH_DIR = "${STAGING_LIBDIR_NATIVE}" | ||
39 | |||
40 | USERADD_PACKAGES = "${PN}" | 37 | USERADD_PACKAGES = "${PN}" |
41 | GROUPADD_PARAM_${PN} = "--system ${TSS_USER}" | 38 | GROUPADD_PARAM_${PN} = "--system ${TSS_USER}" |
42 | USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \ | 39 | USERADD_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 | |||
43 | PACKAGES =+ "${PN}-python" | ||
44 | FILES_${PN}-python = "${nonarch_libdir}/${PYTHON_PN}/dist-packages/* " | ||
45 | |||
45 | PACKAGE_BEFORE_PN = "${PN}-cuse" | 46 | PACKAGE_BEFORE_PN = "${PN}-cuse" |
46 | FILES_${PN}-cuse = "${bindir}/swtpm_cuse" | 47 | FILES_${PN}-cuse = "${bindir}/swtpm_cuse" |
47 | 48 | ||
48 | INSANE_SKIP_${PN} += "dev-so" | 49 | INSANE_SKIP_${PN} += "dev-so" |
49 | 50 | ||
50 | RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools" | 51 | RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools python3 python3-cryptography python3-twisted" |
51 | 52 | ||
52 | BBCLASSEXTEND = "native nativesdk" | 53 | BBCLASSEXTEND = "native nativesdk" |