Closed tomoveu closed 3 years ago
@tomoveu also looks like you will need to add all tpmio[platform].c files to all the examples _SOURCES.
@tomoveu . Also with --enable-swtpm get issue with #define TPM2_IoCb NULL
and function in tpm_io.c conflicting.
examples/tpm_io.c:170:5: error: expected ')'
int TPM2_IoCb(TPM2_CTX* ctx, const byte* txBuf, byte* rxBuf,
@dgarske Oh, thanks! Good points.
I thought automake could include the correct tpm_io_platform.c at compile time?
Thus, include.am would require only tpm_io.c/.h Hm, I may have overestimated how versatile automake is.
TPM Simulator and Native Linux are working. I am testing STM32 right now.
@elms could you please quickly run the native tests for the Windows port?
@dgarske could you please help test QNX, Xilinx and Atmel ASF?
@tomoveu Testing on Windows looks like it operates the same as master.
This is the crude work, now remains the details in automake and testing
tpm_io_atmel.c contains only ASF code
tpm_io_barebox.c contains only code for Barebox
tpm_io_st.c to contain only STM32 specific code
tpm_io_linux.c to contain only Linux specific code
tpm_io_qnx includes the new QNX callback
tpm_io_xilinx.c to contain only Xilinx code
Noted that native Linux /dev/tpmX does not require an IO callback
TPM Simulator and Windows TBS also does not require an IO callback
Signed-off-by: Dimitar Tomov dimi@wolfssl.com