All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] Re: default TCTI name - how to compile the default as tabrmd
@ 2020-05-13 18:20 Tadeusz Struk
  0 siblings, 0 replies; 2+ messages in thread
From: Tadeusz Struk @ 2020-05-13 18:20 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 761 bytes --]

On 5/13/20 9:20 AM, ted.h.kim(a)oracle.com wrote:
> Folks,
> 
> After I built the tools, I found that the default TCTI was device rather
> than the tabrmd.
> 
> # tpm2_getcap -v
> tool="tpm2_getcap" version="4.1.2-rc0" tctis="libtss2-tctildr"
> tcti-default=tcti-device
> 
> But what I think I want is that the tcti-default=tabrmd.
> 
> I know about the -T option and the TPM2TOOLS_TCTI environment variable.
> But can I just compile it to have it default to tabrmd?
> Is this some "configure" option or something?
> How do I change how it compiles?

This can be done by setting a symbolic link libts2-tcti-default.so
pointing to libts2-tcti-tabrmd.so

# ln -s /usr/lib/libts2-tcti-tabrmd.so /usr/lib/libts2-tcti-default.so


-- 
Tadeusz

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

* [tpm2] Re: default TCTI name - how to compile the default as tabrmd
@ 2020-05-13 19:01 Roberts, William C
  0 siblings, 0 replies; 2+ messages in thread
From: Roberts, William C @ 2020-05-13 19:01 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

> -----Original Message-----
> From: ted.h.kim(a)oracle.com [mailto:ted.h.kim(a)oracle.com]
> Sent: Wednesday, May 13, 2020 11:20 AM
> To: tpm2(a)lists.01.org
> Subject: [tpm2] default TCTI name - how to compile the default as tabrmd
> 
> Folks,
> 
> After I built the tools, I found that the default TCTI was device rather than the
> tabrmd.
> 
> # tpm2_getcap -v
> tool="tpm2_getcap" version="4.1.2-rc0" tctis="libtss2-tctildr"
> tcti-default=tcti-device
> 
> But what I think I want is that the tcti-default=tabrmd.
> 
> I know about the -T option and the TPM2TOOLS_TCTI environment variable.
> But can I just compile it to have it default to tabrmd?
> Is this some "configure" option or something?
> How do I change how it compiles?
> 

Sound like the tpm2-abrmd TCTI isn't on the searchpath. Do you have tpm2-abrmd compiled
and installed?

Does this command work:
pkg-config --libs tss2-tcti-tabrmd
-L/usr/local/lib -ltss2-tcti-tabrmd

Perhaps wherever it's installed isn't on the searchpath, which you could update with LD_LIBRARY_PATH, or
Just symlink similar to what Tadeusz mentions.

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

end of thread, other threads:[~2020-05-13 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-13 18:20 [tpm2] Re: default TCTI name - how to compile the default as tabrmd Tadeusz Struk
2020-05-13 19:01 Roberts, William C

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.