-
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
Fix compilation on embedded platforms #2676
Fix compilation on embedded platforms #2676
Conversation
239595e
to
d256349
Compare
The use of uint32_t require %PRIx32 instead of %x on non-32-bit-platforms. Changed the FormatStrings accordingly for ESYS, MU and RC. Missing FAPI and tests. Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
71195ed
to
80bfebf
Compare
Could you please update the I have tested the following on your fork (AndreasFuchsTPM:fix_formatstrings) and it builds ok:
|
In order to allow building on embedded platforms (without any TCTIs) the IO functions from util have been separated out into their own library Co-authored-by: wenxin.leong <wenxin.leong@infineon.com> Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
Instead of relying on the endian.h functions (which are not available on all platforms) use the tss2_engian.h file which includes also a customer implementation. Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
tctildr (dl and nodl) will attempt to load some tctis in a certain order by default. If the project is compiled without said tctis, it would fail so far. Fix this and provide a runtime error instead of compile time. Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
Signed-off-by: Andreas Fuchs <andreas.fuchs@infineon.com>
80bfebf
to
8276939
Compare
Codecov Report
@@ Coverage Diff @@
## master #2676 +/- ##
==========================================
- Coverage 82.54% 82.54% -0.01%
==========================================
Files 368 368
Lines 42941 42941
==========================================
- Hits 35447 35445 -2
- Misses 7494 7496 +2
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Updated |
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.
The Cirrus CI is failing due to the new usage limitations imposed on its free tier, read here
Fixes: #2692