summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2019-03-05 07:40:38 -0800
committerArmin Kuster <akuster808@gmail.com>2019-03-06 11:49:35 -0800
commitf3a2f4e04eabcc7900c22495db42c93cd4ebc939 (patch)
treead072b6ee943d1128055ab4ce88c732327428375
parentc17e39b70592b8b0971a405ff41808d8b10683e4 (diff)
downloadmeta-security-f3a2f4e04eabcc7900c22495db42c93cd4ebc939.tar.gz
swtpm: update to stable release 0.1.0
added PE split cuse into its own package Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb (renamed from meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb)19
1 files changed, 10 insertions, 9 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb b/meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb
index 3fe1393..42de8b1 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb
@@ -9,11 +9,12 @@ DEPENDS = "libtasn1 expect socat glib-2.0 net-tools-native libtpm libtpm-native"
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 = "94bb9f2d716d09bcc6cd2a2e033018f8592008e7" 12SRCREV = "d803d84575ab3e5dac316bf863c7f569a27ea35f"
13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=tpm2-preview.v2 \ 13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-${PV} \
14 file://fix_fcntl_h.patch \ 14 file://fix_fcntl_h.patch \
15 file://ioctl_h.patch \ 15 file://ioctl_h.patch \
16 " 16 "
17PE = "1"
17 18
18S = "${WORKDIR}/git" 19S = "${WORKDIR}/git"
19 20
@@ -23,8 +24,9 @@ PARALLEL_MAKE = ""
23TSS_USER="tss" 24TSS_USER="tss"
24TSS_GROUP="tss" 25TSS_GROUP="tss"
25 26
26PACKAGECONFIG ?= "openssl cuse" 27PACKAGECONFIG ?= "openssl"
27PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" 28PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
29PACKAGECONFIG += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'filesystems-layer', 'cuse', '', d)}"
28PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl" 30PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl"
29PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls" 31PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls"
30PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" 32PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux"
@@ -39,12 +41,11 @@ GROUPADD_PARAM_${PN} = "--system ${TSS_USER}"
39USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \ 41USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \
40 --no-create-home --shell /bin/false ${BPN}" 42 --no-create-home --shell /bin/false ${BPN}"
41 43
44PACKAGE_BEFORE_PN = "${PN}-cuse"
45FILES_${PN}-cuse = "${bindir}/swtpm_cuse"
46
47INSANE_SKIP_${PN} += "dev-so"
48
42RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools" 49RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools"
43 50
44BBCLASSEXTEND = "native nativesdk" 51BBCLASSEXTEND = "native nativesdk"
45
46python() {
47 if 'cuse' in d.getVar('PACKAGECONFIG') and \
48 'filesystems-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
49 raise bb.parse.SkipRecipe('Cuse enabled which requires meta-filesystems to be present.')
50}