default TCTI name - how to compile the default as tabrmd
ted.h.kim at oracle.com
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?
Thanks,
-ted
Signature · 3 lines
Ted H. Kim, PhD ted.h.kim(a)oracle.com +1 310-258-7515
Tadeusz Struk
Quoted 9 lines · ted.h.kim(a)oracle.com
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
Quoted 6 lines
But what I think I want is that the tcti-default=tabrmd.
I know about the -T option and the
TPM2TOOLS_TCTIenvironment 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
Signature · 1 line
Tadeusz
Roberts
Quoted 15 lines
-----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 tabrmdFolks,
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
Quoted 7 lines
But what I think I want is that the tcti-default=tabrmd.
I know about the -T option and the
TPM2TOOLS_TCTIenvironment 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.