trunks: move FTDI support from client to daemon
It is necessary to be able to send the TPM multiple commands while it
maintains its state. To achieve that this patch moves SPI over FTDI
TPM support from the client into the daemon.
CQ-DEPEND=CL:285534
BUG=chromium:498861
TEST=as follows:
. build and install Chrome OS test image on Samus (don't forget
USE='tpm2 ftdi_tpm').
. connect TPM2 assembly to the device
. start the daemon in a terminal:
localhost ~ # trunksd --ftdi --v=2
. in a different terminal run the client:
localhost ~ # trunks_client --startup
localhost ~ # echo $?
0
localhost ~ #
Change-Id: I2e2fb7bebbaa3d579a70b61cbd15d38050248730
Reviewed-on: https://chromium-review.googlesource.com/285316
Tested-by: Vadim Bendebury <vbendeb@google.com>
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Commit-Queue: Vadim Bendebury <vbendeb@google.com>
4 files changed