[yocto] [meta-security][PATCH] meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb: add new udev dir to FILES and append EXTRA_OECONF

Maciej Pijanowski maciej.pijanowski at 3mdeb.com
Thu Nov 7 07:41:03 PST 2019


On 07.11.2019 16:14, Norbert Kaminski wrote:
> The tpm2 tool freezes in a XEN distro. It stores the udev rules in
> /lib/udev directory,
> thus these changes append the FILES and EXTRA_OECONF to make tpm2 work
> properly.
>
> Signed-off-by: Norbert Kaminski <norbert.kaminski at 3mdeb.com>
> ---
>  meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb
> b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb
> index 3e77f71..10450e3 100644
> --- a/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb
> +++ b/meta-tpm/recipes-tpm2/tpm2-tss/tpm2-tss_2.3.1.bb
> @@ -74,6 +74,8 @@ FILES_libtss2-dev = " \
>      ${libdir}/libtss2*so"
>  FILES_libtss2-staticdev = "${libdir}/libtss*a"
>
> -FILES_${PN} = "${libdir}/udev"
> +FILES_${PN} = "${libdir}/udev ${base_prefix}/lib/udev"
> +
> +EXTRA_OECONF += "--with-udevrulesdir=${base_prefix}/lib/udev/rules.d/"
I suspect the problem appears when building for machine where libdir is
/usr/lib64, not /usr/lib?
It is likely not related to Xen in any way.
>
>  RDEPENDS_libtss2 = "libgcrypt"

-- 
Maciej Pijanowski
Embedded Systems Engineer
GPG: F1401D2E1CCB19EF
https://3mdeb.com | @3mdeb_com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20191107/7105272e/attachment.pgp>


More information about the yocto mailing list