diff options
| author | Armin Kuster <akuster808@gmail.com> | 2019-03-05 07:40:38 -0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2019-03-06 11:49:35 -0800 |
| commit | f3a2f4e04eabcc7900c22495db42c93cd4ebc939 (patch) | |
| tree | ad072b6ee943d1128055ab4ce88c732327428375 | |
| parent | c17e39b70592b8b0971a405ff41808d8b10683e4 (diff) | |
| download | meta-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 |
| 10 | DEPENDS += "tpm-tools-native expect-native socat-native" | 10 | DEPENDS += "tpm-tools-native expect-native socat-native" |
| 11 | 11 | ||
| 12 | SRCREV = "94bb9f2d716d09bcc6cd2a2e033018f8592008e7" | 12 | SRCREV = "d803d84575ab3e5dac316bf863c7f569a27ea35f" |
| 13 | SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=tpm2-preview.v2 \ | 13 | SRC_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 | " |
| 17 | PE = "1" | ||
| 17 | 18 | ||
| 18 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 19 | 20 | ||
| @@ -23,8 +24,9 @@ PARALLEL_MAKE = "" | |||
| 23 | TSS_USER="tss" | 24 | TSS_USER="tss" |
| 24 | TSS_GROUP="tss" | 25 | TSS_GROUP="tss" |
| 25 | 26 | ||
| 26 | PACKAGECONFIG ?= "openssl cuse" | 27 | PACKAGECONFIG ?= "openssl" |
| 27 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" | 28 | PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}" |
| 29 | PACKAGECONFIG += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'filesystems-layer', 'cuse', '', d)}" | ||
| 28 | PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl" | 30 | PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl" |
| 29 | PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls" | 31 | PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls" |
| 30 | PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" | 32 | PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux" |
| @@ -39,12 +41,11 @@ GROUPADD_PARAM_${PN} = "--system ${TSS_USER}" | |||
| 39 | USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \ | 41 | USERADD_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 | ||
| 44 | PACKAGE_BEFORE_PN = "${PN}-cuse" | ||
| 45 | FILES_${PN}-cuse = "${bindir}/swtpm_cuse" | ||
| 46 | |||
| 47 | INSANE_SKIP_${PN} += "dev-so" | ||
| 48 | |||
| 42 | RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools" | 49 | RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools" |
| 43 | 50 | ||
| 44 | BBCLASSEXTEND = "native nativesdk" | 51 | BBCLASSEXTEND = "native nativesdk" |
| 45 | |||
| 46 | python() { | ||
| 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 | } | ||
