Skip to content
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

Cross-compilation support inquiry: Does tpm2-tss officially support csky-abiv2-linux-gcc toolchain? #2945

Open
ldt471146 opened this issue Feb 13, 2025 · 0 comments

Comments

@ldt471146
Copy link

Hello tpm2-tss maintainers,

I'm working on porting tpm2-tss to a C-SKY architecture development board using the csky-abiv2-linux-gcc cross-compiler. While I've successfully built basic applications for this target, I'd like to confirm if the tpm2-tss project has official support or known compatibility with this toolchain.

Environment Details:
Host System: Ubuntu 22.04 x86_64

Target Architecture: C-SKY CK860F (32-bit)

Compiler:

复制
csky-abiv2-linux-gcc (C-SKY Tools 1.8.4) 10.3.1 20210921
tpm2-tss Version: 3.2.0

Steps Taken:
Configured with:

bash
复制
./configure --host=csky-abiv2-linux
--prefix=/opt/tpm2-tss-csky
--disable-doxygen-doc
CFLAGS="-mcpu=ck860fv"
LDFLAGS="-mcpu=ck860fv"
Encountered the following dependencies challenges:

Needed to cross-compile OpenSSL separately

Library path resolution issues during linking

Specific Questions:
Are there any known compatibility considerations when using C-SKY architecture toolchains?

Does the project provide official support for non-Arm/x86 architectures?

Would you recommend any specific configuration flags for RISC-V-like architectures?

Observed Behavior:
The configuration completes but fails during compilation with architecture-specific assembly optimizations. Full build logs available upon request.

Thank you for your time and guidance. Any insights would be greatly appreciated for our embedded TPM2.0 implementation efforts.

Key Tips for GitHub Issue:

Attach full config.log and relevant error snippets

Mention exact error messages you encountered

Keep technical details focused but complete

Consider including your cross-compiled OpenSSL version details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant