Skip to content

Add pre-generated bindings for RISC-V Linux - #705

Merged
ionut-arm merged 1 commit into
parallaxsecond:mainfrom
utaal:riscv64-pregenerated-bindings
Nov 20, 2026
Merged

ionut-arm merged 1 commit into
parallaxsecond:mainfrom
utaal:riscv64-pregenerated-bindings

Conversation

@utaal

@utaal utaal commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

tss-esapi-sys rejects RISC-V Linux GNU targets unless the build enables generate-bindings and has libclang available. Commit bindings for riscv64gc-unknown-linux-gnu so those targets can use the default build.

Generate the bindings from TPM2-TSS 4.1.3 with bindgen 0.72.1 and the LP64D ABI. Allowlist TPM2-TSS headers for this target to exclude incidental glibc declarations such as malloc and realloc, which trigger Rust's runtime symbol lint. Add the target to the Linux regeneration script.

tss-esapi-sys rejects RISC-V Linux GNU targets unless the build
enables generate-bindings and has libclang available. Commit
bindings for riscv64gc-unknown-linux-gnu so those targets can use
the default build.

Generate the bindings from TPM2-TSS 4.1.3 with bindgen 0.72.1
and the LP64D ABI. Allowlist TPM2-TSS headers for this target to
exclude incidental glibc declarations such as malloc and realloc,
which trigger Rust's runtime symbol lint. Add the target to the
Linux regeneration script.

Signed-off-by: Andrea Lattuada <andrea@lattuada.me>

@Superhepper Superhepper left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.
LGTM!

@ionut-arm ionut-arm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ionut-arm
ionut-arm merged commit 1bce67c into parallaxsecond:main Nov 20, 2026
14 checks passed
@utaal
utaal deleted the riscv64-pregenerated-bindings branch November 21, 2026 02:41
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

Successfully merging this pull request may close these issues.

3 participants