All of lore.kernel.org
 help / color / mirror / Atom feed
* [tpm2] Re: building tpm tools - only built one tool?
@ 2021-02-23 20:19 Roberts, William C
  0 siblings, 0 replies; 2+ messages in thread
From: Roberts, William C @ 2021-02-23 20:19 UTC (permalink / raw)
  To: tpm2

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

Yeah you'll only see one executable. Make install installs symlinks to that executable and then by interogating argv[0] we can figure out what tool to run.

make install will take care of that

You can optionally add DESTDIR to throw them into a non-global user path directory.
DESTDIR='/where/you/want/them'
________________________________
From: Kenneth Goldman <kgoldman(a)us.ibm.com>
Sent: Tuesday, February 16, 2021 3:50 PM
To: tpm2(a)lists.01.org <tpm2(a)lists.01.org>
Subject: [tpm2] building tpm tools - only built one tool?


https://github.com/tpm2-software/tpm2-tools/blob/master/doc/INSTALL.md

says in part

./tools/tpm2_getrandom 4

The tools directory has .c and .o files, but apparently only one executable, called 'tpm2'.

Does tpm2 now wrap the tools? Did something go wrong in the build? Will something change when I install?

--
Ken Goldman kgoldman(a)us.ibm.com
914-945-2415 (862-2415)




[-- Attachment #2: attachment.htm --]
[-- Type: text/html, Size: 2311 bytes --]

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

* [tpm2] Re: building tpm tools - only built one tool?
@ 2021-02-17 16:45 Imran Desai
  0 siblings, 0 replies; 2+ messages in thread
From: Imran Desai @ 2021-02-17 16:45 UTC (permalink / raw)
  To: tpm2

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

tpm2_tools and tss2_tools are now a busybox style commandlet. Ie
tpm2_getrandom becomes tpm2 getrandom. make install will install symlinks
to the old tool names and the tpm2 commandlet will interrogate argv[0] for
the command to run. This will provide backwards compatibility if they are
installed. If you wish to use the old names not installed system wide, set
DESTDIR during install to a separate path and set the proper directory on
PATH.

Thanks and regards,

Imran Desai

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

end of thread, other threads:[~2021-02-23 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 20:19 [tpm2] Re: building tpm tools - only built one tool? Roberts, William C
  -- strict thread matches above, loose matches on Subject: below --
2021-02-17 16:45 Imran Desai

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.