summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2021-07-29 16:31:50 -0700
committerArmin Kuster <akuster808@gmail.com>2021-08-01 08:47:08 -0700
commitc7632b927c4cb31d77caebe1390da21c630cfe0e (patch)
treee9c9c467f1478d812a182375533e2af3b112026e
parent11a67b861af74d59ccfd609d6d943e966ccff731 (diff)
downloadmeta-security-c7632b927c4cb31d77caebe1390da21c630cfe0e.tar.gz
meta-tpm: Convert to new override syntax
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/README2
-rw-r--r--meta-tpm/conf/distro/include/maintainers.inc34
-rw-r--r--meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc4
-rw-r--r--meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm-i2c.bb4
-rw-r--r--meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm.bb8
-rw-r--r--meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb4
-rw-r--r--meta-tpm/recipes-core/packagegroup/packagegroup-security-vtpm.bb4
-rw-r--r--meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc6
-rw-r--r--meta-tpm/recipes-tpm/openssl-tpm-engine/openssl-tpm-engine_0.5.0.bb16
-rw-r--r--meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb14
-rw-r--r--meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb4
-rw-r--r--meta-tpm/recipes-tpm/trousers/trousers_git.bb32
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb14
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.6.0.bb12
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb16
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb8
-rw-r--r--meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb30
17 files changed, 106 insertions, 106 deletions
diff --git a/meta-tpm/README b/meta-tpm/README
index 59d2ee3..4441dd2 100644
--- a/meta-tpm/README
+++ b/meta-tpm/README
@@ -5,7 +5,7 @@ The bbappend files for some recipes (e.g. linux-yocto) in this layer need
5to have 'tpm' in DISTRO_FEATURES to have effect. 5to have 'tpm' in DISTRO_FEATURES to have effect.
6To enable them, add in configuration file the following line. 6To enable them, add in configuration file the following line.
7 7
8 DISTRO_FEATURES_append = " tmp" 8 DISTRO_FEATURES:append = " tmp"
9 9
10If meta-tpm is included, but tpm is not enabled as a 10If meta-tpm is included, but tpm is not enabled as a
11distro feature a warning is printed at parse time: 11distro feature a warning is printed at parse time:
diff --git a/meta-tpm/conf/distro/include/maintainers.inc b/meta-tpm/conf/distro/include/maintainers.inc
index dcf53d0..e7b216d 100644
--- a/meta-tpm/conf/distro/include/maintainers.inc
+++ b/meta-tpm/conf/distro/include/maintainers.inc
@@ -16,23 +16,23 @@
16# 16#
17# The format is as a bitbake variable override for each recipe 17# The format is as a bitbake variable override for each recipe
18# 18#
19# RECIPE_MAINTAINER_pn-<recipe name> = "Full Name <address@domain>" 19# RECIPE_MAINTAINER:pn-<recipe name> = "Full Name <address@domain>"
20# 20#
21# Please keep this list in alphabetical order. 21# Please keep this list in alphabetical order.
22RECIPE_MAINTAINER_pn-aircrack-ng = "Armin Kuster <akuster808@gmail.com>" 22RECIPE_MAINTAINER:pn-aircrack-ng = "Armin Kuster <akuster808@gmail.com>"
23RECIPE_MAINTAINER_pn-pcr-extend = "Armin Kuster <akuster808@gmail.com>" 23RECIPE_MAINTAINER:pn-pcr-extend = "Armin Kuster <akuster808@gmail.com>"
24RECIPE_MAINTAINER_pn-tpm-quote-tools = "Armin Kuster <akuster808@gmail.com>" 24RECIPE_MAINTAINER:pn-tpm-quote-tools = "Armin Kuster <akuster808@gmail.com>"
25RECIPE_MAINTAINER_pn-libtpm = "Armin Kuster <akuster808@gmail.com>" 25RECIPE_MAINTAINER:pn-libtpm = "Armin Kuster <akuster808@gmail.com>"
26RECIPE_MAINTAINER_pn-trousers = "Armin Kuster <akuster808@gmail.com>" 26RECIPE_MAINTAINER:pn-trousers = "Armin Kuster <akuster808@gmail.com>"
27RECIPE_MAINTAINER_pn-swtpm = "Armin Kuster <akuster808@gmail.com>" 27RECIPE_MAINTAINER:pn-swtpm = "Armin Kuster <akuster808@gmail.com>"
28RECIPE_MAINTAINER_pn-openssl-tpm-engine = "Armin Kuster <akuster808@gmail.com>" 28RECIPE_MAINTAINER:pn-openssl-tpm-engine = "Armin Kuster <akuster808@gmail.com>"
29RECIPE_MAINTAINER_pn-tpm-tools = "Armin Kuster <akuster808@gmail.com>" 29RECIPE_MAINTAINER:pn-tpm-tools = "Armin Kuster <akuster808@gmail.com>"
30RECIPE_MAINTAINER_pn-tpm2-abrmd = "Armin Kuster <akuster808@gmail.com>" 30RECIPE_MAINTAINER:pn-tpm2-abrmd = "Armin Kuster <akuster808@gmail.com>"
31RECIPE_MAINTAINER_pn-tpm2-totp = "Armin Kuster <akuster808@gmail.com>" 31RECIPE_MAINTAINER:pn-tpm2-totp = "Armin Kuster <akuster808@gmail.com>"
32RECIPE_MAINTAINER_pn-tpm2-tcti-uefi = "Armin Kuster <akuster808@gmail.com>" 32RECIPE_MAINTAINER:pn-tpm2-tcti-uefi = "Armin Kuster <akuster808@gmail.com>"
33RECIPE_MAINTAINER_pn-tpm2-tss-engine = "Armin Kuster <akuster808@gmail.com>" 33RECIPE_MAINTAINER:pn-tpm2-tss-engine = "Armin Kuster <akuster808@gmail.com>"
34RECIPE_MAINTAINER_pn-tpm2-pkcs11 = "Armin Kuster <akuster808@gmail.com>" 34RECIPE_MAINTAINER:pn-tpm2-pkcs11 = "Armin Kuster <akuster808@gmail.com>"
35RECIPE_MAINTAINER_pn-tpm2-tss = "Armin Kuster <akuster808@gmail.com>" 35RECIPE_MAINTAINER:pn-tpm2-tss = "Armin Kuster <akuster808@gmail.com>"
36RECIPE_MAINTAINER_pn-tpm2-tools = "Armin Kuster <akuster808@gmail.com>" 36RECIPE_MAINTAINER:pn-tpm2-tools = "Armin Kuster <akuster808@gmail.com>"
37RECIPE_MAINTAINER_pn-ibmswtpm2 = "Armin Kuster <akuster808@gmail.com>" 37RECIPE_MAINTAINER:pn-ibmswtpm2 = "Armin Kuster <akuster808@gmail.com>"
38 38
diff --git a/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc
index d8604e1..497474f 100644
--- a/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc
+++ b/meta-tpm/dynamic-layers/meta-networking/recipes-support/strongswan/strongswan-tpm.inc
@@ -1,8 +1,8 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/files:" 1FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2 2
3DEPENDS = "libtspi" 3DEPENDS = "libtspi"
4 4
5SRC_URI_append = " file://0001-xfrmi-Only-build-if-libcharon-is-built.patch" 5SRC_URI:append = " file://0001-xfrmi-Only-build-if-libcharon-is-built.patch"
6 6
7PACKAGECONFIG += "aikgen tpm" 7PACKAGECONFIG += "aikgen tpm"
8 8
diff --git a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm-i2c.bb b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm-i2c.bb
index 3b9d271..e3de797 100644
--- a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm-i2c.bb
+++ b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm-i2c.bb
@@ -7,8 +7,8 @@ inherit packagegroup
7 7
8PACKAGES = "packagegroup-security-tpm-i2c" 8PACKAGES = "packagegroup-security-tpm-i2c"
9 9
10SUMMARY_packagegroup-security-tpm-i2c = "Security TPM i2c support" 10SUMMARY:packagegroup-security-tpm-i2c = "Security TPM i2c support"
11RDEPENDS_packagegroup-security-tpm-i2c = " \ 11RDEPENDS:packagegroup-security-tpm-i2c = " \
12 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'packagegroup-security-tpm', '', d)} \ 12 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'packagegroup-security-tpm', '', d)} \
13 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'packagegroup-security-tpm2', '', d)} \ 13 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'packagegroup-security-tpm2', '', d)} \
14 kernel-module-tpm-i2c-atmel \ 14 kernel-module-tpm-i2c-atmel \
diff --git a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm.bb b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm.bb
index 3844c7f..bfe6e3a 100644
--- a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm.bb
+++ b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm.bb
@@ -7,8 +7,8 @@ inherit packagegroup
7 7
8PACKAGES = "packagegroup-security-tpm" 8PACKAGES = "packagegroup-security-tpm"
9 9
10SUMMARY_packagegroup-security-tpm = "Security TPM support" 10SUMMARY:packagegroup-security-tpm = "Security TPM support"
11RDEPENDS_packagegroup-security-tpm = " \ 11RDEPENDS:packagegroup-security-tpm = " \
12 tpm-tools \ 12 tpm-tools \
13 trousers \ 13 trousers \
14 pcr-extend \ 14 pcr-extend \
@@ -21,13 +21,13 @@ RDEPENDS_packagegroup-security-tpm = " \
21 21
22X86_TPM_MODULES ?= "" 22X86_TPM_MODULES ?= ""
23 23
24X86_TPM_MODULES_x86 = " \ 24X86_TPM_MODULES:x86 = " \
25 kernel-module-tpm-atmel \ 25 kernel-module-tpm-atmel \
26 kernel-module-tpm-infineon \ 26 kernel-module-tpm-infineon \
27 kernel-module-tpm-nsc \ 27 kernel-module-tpm-nsc \
28 " 28 "
29 29
30X86_TPM_MODULES_x86-64 = " \ 30X86_TPM_MODULES:x86-64 = " \
31 kernel-module-tpm-atmel \ 31 kernel-module-tpm-atmel \
32 kernel-module-tpm-infineon \ 32 kernel-module-tpm-infineon \
33 kernel-module-tpm-nsc \ 33 kernel-module-tpm-nsc \
diff --git a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
index 8b6f030..764b2e5 100644
--- a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
+++ b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
@@ -7,8 +7,8 @@ inherit packagegroup
7 7
8PACKAGES = "${PN}" 8PACKAGES = "${PN}"
9 9
10SUMMARY_packagegroup-security-tpm2 = "Security TPM 2.0 support" 10SUMMARY:packagegroup-security-tpm2 = "Security TPM 2.0 support"
11RDEPENDS_packagegroup-security-tpm2 = " \ 11RDEPENDS:packagegroup-security-tpm2 = " \
12 tpm2-tools \ 12 tpm2-tools \
13 trousers \ 13 trousers \
14 tpm2-tss \ 14 tpm2-tss \
diff --git a/meta-tpm/recipes-core/packagegroup/packagegroup-security-vtpm.bb b/meta-tpm/recipes-core/packagegroup/packagegroup-security-vtpm.bb
index 2e9394f..3a8f2fa 100644
--- a/meta-tpm/recipes-core/packagegroup/packagegroup-security-vtpm.bb
+++ b/meta-tpm/recipes-core/packagegroup/packagegroup-security-vtpm.bb
@@ -7,8 +7,8 @@ inherit packagegroup
7 7
8PACKAGES = "packagegroup-security-vtpm" 8PACKAGES = "packagegroup-security-vtpm"
9 9
10SUMMARY_packagegroup-security-vtpm = "Security Software vTPM support" 10SUMMARY:packagegroup-security-vtpm = "Security Software vTPM support"
11RDEPENDS_packagegroup-security-vtpm = " \ 11RDEPENDS:packagegroup-security-vtpm = " \
12 libtpm \ 12 libtpm \
13 swtpm \ 13 swtpm \
14 " 14 "
diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc b/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc
index cea8b1b..909c42d 100644
--- a/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc
+++ b/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc
@@ -1,12 +1,12 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" 1FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto:"
2 2
3# Enable tpm in kernel 3# Enable tpm in kernel
4SRC_URI_append_x86 = " \ 4SRC_URI:append:x86 = " \
5 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ 5 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \
6 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ 6 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \
7 " 7 "
8 8
9SRC_URI_append_x86-64 = " \ 9SRC_URI:append:x86-64 = " \
10 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ 10 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \
11 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ 11 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \
12 " 12 "
diff --git a/meta-tpm/recipes-tpm/openssl-tpm-engine/openssl-tpm-engine_0.5.0.bb b/meta-tpm/recipes-tpm/openssl-tpm-engine/openssl-tpm-engine_0.5.0.bb
index 0f98b79..9ad8967 100644
--- a/meta-tpm/recipes-tpm/openssl-tpm-engine/openssl-tpm-engine_0.5.0.bb
+++ b/meta-tpm/recipes-tpm/openssl-tpm-engine/openssl-tpm-engine_0.5.0.bb
@@ -35,31 +35,31 @@ inherit autotools-brokensep pkgconfig
35srk_dec_pw ?= "\\"\\\x1\\"\\"nc\\"\\"\\\x3\\"\\"nd\\"\\"\\\x1\\"\\"a\\"" 35srk_dec_pw ?= "\\"\\\x1\\"\\"nc\\"\\"\\\x3\\"\\"nd\\"\\"\\\x1\\"\\"a\\""
36srk_dec_salt ?= "\\"r\\"\\"\\\x00\\\x00\\"\\"t\\"" 36srk_dec_salt ?= "\\"r\\"\\"\\\x00\\\x00\\"\\"t\\""
37 37
38CFLAGS_append += "-DSRK_DEC_PW=${srk_dec_pw} -DSRK_DEC_SALT=${srk_dec_salt}" 38CFLAGS:append += "-DSRK_DEC_PW=${srk_dec_pw} -DSRK_DEC_SALT=${srk_dec_salt}"
39 39
40# Uncomment below line if using the plain srk password for development 40# Uncomment below line if using the plain srk password for development
41#CFLAGS_append += "-DTPM_SRK_PLAIN_PW" 41#CFLAGS_append += "-DTPM_SRK_PLAIN_PW"
42 42
43do_configure_prepend() { 43do_configure:prepend() {
44 cd ${B} 44 cd ${B}
45 cp LICENSE COPYING 45 cp LICENSE COPYING
46 touch NEWS AUTHORS ChangeLog README 46 touch NEWS AUTHORS ChangeLog README
47} 47}
48 48
49FILES_${PN}-staticdev += "${libdir}/ssl/engines-1.1/tpm.la" 49FILES:${PN}-staticdev += "${libdir}/ssl/engines-1.1/tpm.la"
50FILES_${PN}-dbg += "\ 50FILES:${PN}-dbg += "\
51 ${libdir}/ssl/engines-1.1/.debug \ 51 ${libdir}/ssl/engines-1.1/.debug \
52 ${libdir}/engines-1.1/.debug \ 52 ${libdir}/engines-1.1/.debug \
53 ${prefix}/local/ssl/lib/engines-1.1/.debug \ 53 ${prefix}/local/ssl/lib/engines-1.1/.debug \
54" 54"
55FILES_${PN} += "\ 55FILES:${PN} += "\
56 ${libdir}/ssl/engines-1.1/tpm.so* \ 56 ${libdir}/ssl/engines-1.1/tpm.so* \
57 ${libdir}/engines-1.1/tpm.so* \ 57 ${libdir}/engines-1.1/tpm.so* \
58 ${libdir}/libtpm.so* \ 58 ${libdir}/libtpm.so* \
59 ${prefix}/local/ssl/lib/engines-1.1/tpm.so* \ 59 ${prefix}/local/ssl/lib/engines-1.1/tpm.so* \
60" 60"
61 61
62RDEPENDS_${PN} += "libcrypto libtspi" 62RDEPENDS:${PN} += "libcrypto libtspi"
63 63
64INSANE_SKIP_${PN} = "libdir" 64INSANE_SKIP:${PN} = "libdir"
65INSANE_SKIP_${PN}-dbg = "libdir" 65INSANE_SKIP:${PN}-dbg = "libdir"
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 caf99e8..912e939 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.5.2.bb
@@ -7,7 +7,7 @@ DEPENDS = "libtasn1 coreutils-native expect socat glib-2.0 net-tools-native libt
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_append = " tpm-tools-native expect-native socat-native python3-pip-native python3-cryptography-native" 10DEPENDS:append = " tpm-tools-native expect-native socat-native python3-pip-native python3-cryptography-native"
11 11
12SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464" 12SRCREV = "e59c0c1a7b4c8d652dbb280fd6126895a7057464"
13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \ 13SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-0.5 \
@@ -36,19 +36,19 @@ PACKAGECONFIG[seccomp] = "--with-seccomp, --without-seccomp, libseccomp"
36EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}" 36EXTRA_OECONF += "--with-tss-user=${TSS_USER} --with-tss-group=${TSS_GROUP}"
37 37
38USERADD_PACKAGES = "${PN}" 38USERADD_PACKAGES = "${PN}"
39GROUPADD_PARAM_${PN} = "--system ${TSS_USER}" 39GROUPADD_PARAM:${PN} = "--system ${TSS_USER}"
40USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir \ 40USERADD_PARAM:${PN} = "--system -g ${TSS_GROUP} --home-dir \
41 --no-create-home --shell /bin/false ${BPN}" 41 --no-create-home --shell /bin/false ${BPN}"
42 42
43 43
44PACKAGES =+ "${PN}-python" 44PACKAGES =+ "${PN}-python"
45FILES_${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" 45FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}"
46 46
47PACKAGE_BEFORE_PN = "${PN}-cuse" 47PACKAGE_BEFORE_PN = "${PN}-cuse"
48FILES_${PN}-cuse = "${bindir}/swtpm_cuse" 48FILES:${PN}-cuse = "${bindir}/swtpm_cuse"
49 49
50INSANE_SKIP_${PN} += "dev-so" 50INSANE_SKIP:${PN} += "dev-so"
51 51
52RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools python3 python3-cryptography python3-twisted" 52RDEPENDS:${PN} = "libtpm expect socat bash tpm-tools python3 python3-cryptography python3-twisted"
53 53
54BBCLASSEXTEND = "native nativesdk" 54BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
index 9e0a686..dbe1647 100644
--- a/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
+++ b/meta-tpm/recipes-tpm/tpm-tools/tpm-tools_1.3.9.2.bb
@@ -10,7 +10,7 @@ LICENSE = "CPL-1.0"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9" 10LIC_FILES_CHKSUM = "file://LICENSE;md5=059e8cd6165cb4c31e351f2b69388fd9"
11 11
12DEPENDS = "libtspi openssl perl" 12DEPENDS = "libtspi openssl perl"
13DEPENDS_class-native = "trousers-native" 13DEPENDS:class-native = "trousers-native"
14 14
15SRCREV = "bf43837575c5f7d31865562dce7778eae970052e" 15SRCREV = "bf43837575c5f7d31865562dce7778eae970052e"
16SRC_URI = " \ 16SRC_URI = " \
@@ -24,7 +24,7 @@ inherit autotools-brokensep gettext
24 24
25S = "${WORKDIR}/git" 25S = "${WORKDIR}/git"
26 26
27do_configure_prepend () { 27do_configure:prepend () {
28 mkdir -p po 28 mkdir -p po
29 mkdir -p m4 29 mkdir -p m4
30 cp -R po_/* po/ 30 cp -R po_/* po/
diff --git a/meta-tpm/recipes-tpm/trousers/trousers_git.bb b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
index 32c9a49..a746103 100644
--- a/meta-tpm/recipes-tpm/trousers/trousers_git.bb
+++ b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
@@ -30,7 +30,7 @@ do_install () {
30 oe_runmake DESTDIR=${D} install 30 oe_runmake DESTDIR=${D} install
31} 31}
32 32
33do_install_append() { 33do_install:append() {
34 install -d ${D}${sysconfdir}/init.d 34 install -d ${D}${sysconfdir}/init.d
35 install -m 0755 ${WORKDIR}/trousers.init.sh ${D}${sysconfdir}/init.d/trousers 35 install -m 0755 ${WORKDIR}/trousers.init.sh ${D}${sysconfdir}/init.d/trousers
36 install -d ${D}${sysconfdir}/udev/rules.d 36 install -d ${D}${sysconfdir}/udev/rules.d
@@ -43,7 +43,7 @@ do_install_append() {
43 fi 43 fi
44} 44}
45 45
46CONFFILES_${PN} += "${sysconfig}/tcsd.conf" 46CONFFILES:${PN} += "${sysconfig}/tcsd.conf"
47 47
48PROVIDES = "${PACKAGES}" 48PROVIDES = "${PACKAGES}"
49PACKAGES = " \ 49PACKAGES = " \
@@ -59,39 +59,39 @@ PACKAGES = " \
59 59
60# libtspi needs tcsd for most (all?) operations, so suggest to 60# libtspi needs tcsd for most (all?) operations, so suggest to
61# install that. 61# install that.
62RRECOMMENDS_libtspi = "${PN}" 62RRECOMMENDS:libtspi = "${PN}"
63 63
64FILES_libtspi = " \ 64FILES:libtspi = " \
65 ${libdir}/*.so.1 \ 65 ${libdir}/*.so.1 \
66 ${libdir}/*.so.1.2.0 \ 66 ${libdir}/*.so.1.2.0 \
67 " 67 "
68FILES_libtspi-dbg = " \ 68FILES:libtspi-dbg = " \
69 ${libdir}/.debug \ 69 ${libdir}/.debug \
70 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tspi \ 70 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tspi \
71 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/trspi \ 71 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/trspi \
72 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/*.h \ 72 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/*.h \
73 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/tss \ 73 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/tss \
74 " 74 "
75FILES_libtspi-dev = " \ 75FILES:libtspi-dev = " \
76 ${includedir} \ 76 ${includedir} \
77 ${libdir}/*.so \ 77 ${libdir}/*.so \
78 " 78 "
79FILES_libtspi-doc = " \ 79FILES:libtspi-doc = " \
80 ${mandir}/man3 \ 80 ${mandir}/man3 \
81 " 81 "
82FILES_libtspi-staticdev = " \ 82FILES:libtspi-staticdev = " \
83 ${libdir}/*.la \ 83 ${libdir}/*.la \
84 ${libdir}/*.a \ 84 ${libdir}/*.a \
85 " 85 "
86FILES_${PN} = " \ 86FILES:${PN} = " \
87 ${sbindir}/tcsd \ 87 ${sbindir}/tcsd \
88 ${sysconfdir} \ 88 ${sysconfdir} \
89 ${localstatedir} \ 89 ${localstatedir} \
90 " 90 "
91 91
92FILES_${PN}-dev += "${libdir}/trousers" 92FILES:${PN}-dev += "${libdir}/trousers"
93 93
94FILES_${PN}-dbg = " \ 94FILES:${PN}-dbg = " \
95 ${sbindir}/.debug \ 95 ${sbindir}/.debug \
96 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tcs \ 96 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tcs \
97 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tcsd \ 97 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/tcsd \
@@ -99,22 +99,22 @@ FILES_${PN}-dbg = " \
99 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/trousers \ 99 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/trousers \
100 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/trousers \ 100 ${prefix}/src/debug/${PN}/${PV}-${PR}/git/src/include/trousers \
101 " 101 "
102FILES_${PN}-doc = " \ 102FILES:${PN}-doc = " \
103 ${mandir}/man5 \ 103 ${mandir}/man5 \
104 ${mandir}/man8 \ 104 ${mandir}/man8 \
105 " 105 "
106 106
107FILES_${PN} += "${systemd_unitdir}/*" 107FILES:${PN} += "${systemd_unitdir}/*"
108 108
109INITSCRIPT_NAME = "trousers" 109INITSCRIPT_NAME = "trousers"
110INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 19 0 1 6 ." 110INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 19 0 1 6 ."
111 111
112USERADD_PACKAGES = "${PN}" 112USERADD_PACKAGES = "${PN}"
113GROUPADD_PARAM_${PN} = "--system tss" 113GROUPADD_PARAM:${PN} = "--system tss"
114USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" 114USERADD_PARAM:${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss"
115 115
116SYSTEMD_PACKAGES = "${PN}" 116SYSTEMD_PACKAGES = "${PN}"
117SYSTEMD_SERVICE_${PN} = "tcsd.service" 117SYSTEMD_SERVICE:${PN} = "tcsd.service"
118SYSTEMD_AUTO_ENABLE = "disable" 118SYSTEMD_AUTO_ENABLE = "disable"
119 119
120BBCLASSEXTEND = "native" 120BBCLASSEXTEND = "native"
diff --git a/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb b/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
index edfcce9..b80ef79 100644
--- a/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-abrmd/tpm2-abrmd_2.4.0.bb
@@ -25,20 +25,20 @@ S = "${WORKDIR}/git"
25inherit autotools pkgconfig systemd update-rc.d useradd 25inherit autotools pkgconfig systemd update-rc.d useradd
26 26
27SYSTEMD_PACKAGES += "${PN}" 27SYSTEMD_PACKAGES += "${PN}"
28SYSTEMD_SERVICE_${PN} = "tpm2-abrmd.service" 28SYSTEMD_SERVICE:${PN} = "tpm2-abrmd.service"
29SYSTEMD_AUTO_ENABLE_${PN} = "disable" 29SYSTEMD_AUTO_ENABLE:${PN} = "disable"
30 30
31INITSCRIPT_NAME = "${PN}" 31INITSCRIPT_NAME = "${PN}"
32INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 19 0 1 6 ." 32INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 19 0 1 6 ."
33 33
34USERADD_PACKAGES = "${PN}" 34USERADD_PACKAGES = "${PN}"
35GROUPADD_PARAM_${PN} = "tss" 35GROUPADD_PARAM:${PN} = "tss"
36USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" 36USERADD_PARAM:${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss"
37 37
38PACKAGECONFIG ?="${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd', '', d)}" 38PACKAGECONFIG ?="${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd', '', d)}"
39PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, --with-systemdsystemunitdir=no" 39PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_system_unitdir}, --with-systemdsystemunitdir=no"
40 40
41do_install_append() { 41do_install:append() {
42 install -d "${D}${sysconfdir}/init.d" 42 install -d "${D}${sysconfdir}/init.d"
43 install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd" 43 install -m 0755 "${WORKDIR}/tpm2-abrmd-init.sh" "${D}${sysconfdir}/init.d/tpm2-abrmd"
44 44
@@ -46,9 +46,9 @@ do_install_append() {
46 install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd" 46 install -m 0644 "${WORKDIR}/tpm2-abrmd.default" "${D}${sysconfdir}/default/tpm2-abrmd"
47} 47}
48 48
49FILES_${PN} += "${libdir}/systemd/system-preset \ 49FILES:${PN} += "${libdir}/systemd/system-preset \
50 ${datadir}/dbus-1" 50 ${datadir}/dbus-1"
51 51
52RDEPENDS_${PN} += "tpm2-tss" 52RDEPENDS:${PN} += "tpm2-tss"
53 53
54BBCLASSEXTEND = "native" 54BBCLASSEXTEND = "native"
diff --git a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.6.0.bb b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.6.0.bb
index 63ec18d..fdeda26 100644
--- a/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.6.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-pkcs11/tpm2-pkcs11_1.6.0.bb
@@ -18,16 +18,16 @@ S = "${WORKDIR}/git"
18 18
19inherit autotools-brokensep pkgconfig python3native 19inherit autotools-brokensep pkgconfig python3native
20 20
21do_configure_prepend () { 21do_configure:prepend () {
22 ${S}/bootstrap 22 ${S}/bootstrap
23} 23}
24 24
25do_compile_append() { 25do_compile:append() {
26 cd ${S}/tools 26 cd ${S}/tools
27 python3 setup.py build 27 python3 setup.py build
28} 28}
29 29
30do_install_append() { 30do_install:append() {
31 install -d ${D}${libdir}/pkcs11 31 install -d ${D}${libdir}/pkcs11
32 install -d ${D}${datadir}/p11-kit 32 install -d ${D}${datadir}/p11-kit
33 rm -f ${D}${libdir}/pkcs11/libtpm2_pkcs11.so 33 rm -f ${D}${libdir}/pkcs11/libtpm2_pkcs11.so
@@ -41,15 +41,15 @@ do_install_append() {
41 41
42PACKAGES =+ "${PN}-tools" 42PACKAGES =+ "${PN}-tools"
43 43
44FILES_${PN}-tools = "\ 44FILES:${PN}-tools = "\
45 ${bindir}/tpm2_ptool \ 45 ${bindir}/tpm2_ptool \
46 ${libdir}/${PYTHON_DIR}/* \ 46 ${libdir}/${PYTHON_DIR}/* \
47 " 47 "
48 48
49FILES_${PN} += "\ 49FILES:${PN} += "\
50 ${libdir}/pkcs11/* \ 50 ${libdir}/pkcs11/* \
51 ${datadir}/p11-kit/* \ 51 ${datadir}/p11-kit/* \
52 " 52 "
53 53
54RDEPNDS_${PN} = "tpm2-tools" 54RDEPNDS_${PN} = "tpm2-tools"
55RDEPENDS_${PN}-tools += "${PYTHON_PN}-setuptools ${PYTHON_PN}-pyyaml ${PYTHON_PN}-cryptography ${PYTHON_PN}-pyasn1-modules" 55RDEPENDS:${PN}-tools += "${PYTHON_PN}-setuptools ${PYTHON_PN}-pyyaml ${PYTHON_PN}-cryptography ${PYTHON_PN}-pyasn1-modules"
diff --git a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb
index a67e3c3..47113d2 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tcti-uefi/tpm2-tcti-uefi_0.9.9.bb
@@ -18,28 +18,28 @@ inherit autotools pkgconfig
18 18
19EFIDIR ?= "/EFI/BOOT" 19EFIDIR ?= "/EFI/BOOT"
20 20
21EFI_ARCH_x86 = "ia32" 21EFI_ARCH:x86 = "ia32"
22EFI_ARCH_x86-64 = "x86_64" 22EFI_ARCH:x86-64 = "x86_64"
23 23
24CFLAGS_append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}" 24CFLAGS:append = " -I${STAGING_INCDIR}/efi -I${STAGING_INCDIR}/efi/${EFI_ARCH}"
25 25
26EXTRA_OECONF_append = " \ 26EXTRA_OECONF:append = " \
27 --with-efi-includedir=${STAGING_INCDIR} \ 27 --with-efi-includedir=${STAGING_INCDIR} \
28 --with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \ 28 --with-efi-crt0=${STAGING_LIBDIR}/crt0-efi-${EFI_ARCH}.o \
29 --with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \ 29 --with-efi-lds=${STAGING_LIBDIR}/elf_${EFI_ARCH}_efi.lds \
30" 30"
31 31
32do_compile_append() { 32do_compile:append() {
33 oe_runmake example 33 oe_runmake example
34} 34}
35 35
36do_install_append() { 36do_install:append() {
37 install -d "${D}${EFIDIR}" 37 install -d "${D}${EFIDIR}"
38 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}" 38 install -m 0755 "${B}"/example/*.efi "${D}${EFIDIR}"
39} 39}
40 40
41COMPATIBLE_HOST = "(i.86|x86_64).*-linux" 41COMPATIBLE_HOST = "(i.86|x86_64).*-linux"
42 42
43FILES_${PN} += "${EFIDIR}" 43FILES:${PN} += "${EFIDIR}"
44 44
45RDEPENDS_${PN} = "gnu-efi libtss2-mu" 45RDEPENDS:${PN} = "gnu-efi libtss2-mu"
diff --git a/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb b/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
index 5395695..3069b1f 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tss-engine/tpm2-tss-engine_1.1.0.bb
@@ -17,7 +17,7 @@ S = "${WORKDIR}/git"
17 17
18PACKAGES += "${PN}-engines ${PN}-engines-staticdev ${PN}-bash-completion" 18PACKAGES += "${PN}-engines ${PN}-engines-staticdev ${PN}-bash-completion"
19 19
20FILES_${PN}-dev = "${libdir}/engines-1.1/tpm2tss.so ${includedir}/*" 20FILES:${PN}-dev = "${libdir}/engines-1.1/tpm2tss.so ${includedir}/*"
21FILES_${PN}-engines = "${libdir}/engines-1.1/lib*.so*" 21FILES:${PN}-engines = "${libdir}/engines-1.1/lib*.so*"
22FILES_${PN}-engines-staticdev = "${libdir}/engines-1.1/libtpm2tss.a" 22FILES:${PN}-engines-staticdev = "${libdir}/engines-1.1/libtpm2tss.a"
23FILES_${PN}-bash-completion += "${datadir}/bash-completion/completions" 23FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions"
diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
index cc4f191..6470879 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_3.0.3.bb
@@ -18,7 +18,7 @@ PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
18PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,json-c " 18PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,json-c "
19 19
20EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/" 20EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/"
21EXTRA_OECONF_remove = " --disable-static" 21EXTRA_OECONF:remove = " --disable-static"
22 22
23 23
24EXTRA_USERS_PARAMS = "\ 24EXTRA_USERS_PARAMS = "\
@@ -45,34 +45,34 @@ PACKAGES = " \
45 libtss2-staticdev \ 45 libtss2-staticdev \
46" 46"
47 47
48FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*" 48FILES:libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"
49FILES_libtss2-tcti-device-dev = " \ 49FILES:libtss2-tcti-device-dev = " \
50 ${includedir}/tss2/tss2_tcti_device.h \ 50 ${includedir}/tss2/tss2_tcti_device.h \
51 ${libdir}/pkgconfig/tss2-tcti-device.pc \ 51 ${libdir}/pkgconfig/tss2-tcti-device.pc \
52 ${libdir}/libtss2-tcti-device.so" 52 ${libdir}/libtss2-tcti-device.so"
53FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a" 53FILES:libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a"
54 54
55FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*" 55FILES:libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*"
56FILES_libtss2-tcti-mssim-dev = " \ 56FILES:libtss2-tcti-mssim-dev = " \
57 ${includedir}/tss2/tss2_tcti_mssim.h \ 57 ${includedir}/tss2/tss2_tcti_mssim.h \
58 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \ 58 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \
59 ${libdir}/libtss2-tcti-mssim.so" 59 ${libdir}/libtss2-tcti-mssim.so"
60FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a" 60FILES:libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a"
61 61
62FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*" 62FILES:libtss2-mu = "${libdir}/libtss2-mu.so.*"
63FILES_libtss2-mu-dev = " \ 63FILES:libtss2-mu-dev = " \
64 ${includedir}/tss2/tss2_mu.h \ 64 ${includedir}/tss2/tss2_mu.h \
65 ${libdir}/pkgconfig/tss2-mu.pc \ 65 ${libdir}/pkgconfig/tss2-mu.pc \
66 ${libdir}/libtss2-mu.so" 66 ${libdir}/libtss2-mu.so"
67FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a" 67FILES:libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a"
68 68
69FILES_libtss2 = "${libdir}/libtss2*so.*" 69FILES:libtss2 = "${libdir}/libtss2*so.*"
70FILES_libtss2-dev = " \ 70FILES:libtss2-dev = " \
71 ${includedir} \ 71 ${includedir} \
72 ${libdir}/pkgconfig \ 72 ${libdir}/pkgconfig \
73 ${libdir}/libtss2*so" 73 ${libdir}/libtss2*so"
74FILES_libtss2-staticdev = "${libdir}/libtss*a" 74FILES:libtss2-staticdev = "${libdir}/libtss*a"
75 75
76FILES_${PN} = "${libdir}/udev ${nonarch_base_libdir}/udev" 76FILES:${PN} = "${libdir}/udev ${nonarch_base_libdir}/udev"
77 77
78RDEPENDS_libtss2 = "libgcrypt" 78RDEPENDS:libtss2 = "libgcrypt"