-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TCTI: Add tcti-spidev #2715
TCTI: Add tcti-spidev #2715
Conversation
eb53dc4
to
3536c2b
Compare
7c2bd45
to
89eaf23
Compare
Add a new TCTI module that can talk to TPMs connected via spidev to the host. Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
89eaf23
to
2d1e858
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2715 +/- ##
==========================================
- Coverage 82.60% 82.58% -0.02%
==========================================
Files 368 369 +1
Lines 43001 43080 +79
==========================================
+ Hits 35519 35576 +57
- Misses 7482 7504 +22 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
#define FD_NO 5 | ||
int __wrap_open(const char *path, int flags) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you mock the open()
system call, gcov will fail silently. To address this, check whether the path
parameter starts with "/dev". If it doesn't, invoke __real_open()
. An example of this can be found in https://github.com/tpm2-software/tpm2-tss/blob/master/test/unit/tcti-device.c#L47
Add a new TCTI module that can talk to TPMs connected via spidev to the host.