All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2019-11-07 15:14 Norbert Kaminski
  2019-11-07 15:41 ` Maciej Pijanowski
  0 siblings, 1 reply; 3+ messages in thread
From: Norbert Kaminski @ 2019-11-07 15:14 UTC (permalink / raw)
  To: yocto; +Cc: piotr.krol

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@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/"

  RDEPENDS_libtss2 = "libgcrypt"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [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
  2019-11-07 15:14 [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 Norbert Kaminski
@ 2019-11-07 15:41 ` Maciej Pijanowski
  2019-11-07 15:49   ` Norbert Kaminski
  0 siblings, 1 reply; 3+ messages in thread
From: Maciej Pijanowski @ 2019-11-07 15:41 UTC (permalink / raw)
  To: Norbert Kaminski, yocto; +Cc: piotr.krol


[-- Attachment #1.1: Type: text/plain, Size: 1293 bytes --]


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@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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 817 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [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
  2019-11-07 15:41 ` Maciej Pijanowski
@ 2019-11-07 15:49   ` Norbert Kaminski
  0 siblings, 0 replies; 3+ messages in thread
From: Norbert Kaminski @ 2019-11-07 15:49 UTC (permalink / raw)
  To: Maciej Pijanowski, yocto; +Cc: piotr.krol


On 07.11.2019 16:41, Maciej Pijanowski wrote:
> 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@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?
Yes, that is right.
> It is likely not related to Xen in any way.
>>   RDEPENDS_libtss2 = "libgcrypt"


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-07 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-07 15:14 [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 Norbert Kaminski
2019-11-07 15:41 ` Maciej Pijanowski
2019-11-07 15:49   ` Norbert Kaminski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.