-
Notifications
You must be signed in to change notification settings - Fork 49
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
libtcgtpm: use bindgen in build.rs instead of bindgen-cli in Makefile #606
base: main
Are you sure you want to change the base?
Conversation
3c5dcb2
to
b5a3b3b
Compare
|
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.
LGTM
I was not able to reproduce the cargo clippy --workspace --all-features --exclude packit --exclude stage1 --exclude svsm-fuzz --exclude igvmbuilder --exclude igvmmeasure --quiet -- -W clippy::undocumented_unsafe_blocks Although that prints many unsafe warnings, the command exited with success (exit 0). |
Yeah, it's expected. We introduced a new CI workflow to avoid new unsafe blocks not documented. In this case I removed the |
We had several issues in our CI because we forgot to install `bindgen-cli` used in the libtcgtpm/Makefile to generate the TPM bindings. Instead of using `bindgen-cli` (and then having as a requirement to have it installed), let's use `bindgen` in build.rs, this way the dependency is handled directly by cargo. Let's also clean up the references to `libtcgtpm/src/bindings.rs` since bindings were already generated in the OUT_DIR. Remove the reference to install `bindgen-cli` in the CI workflows, Documentation, and container image. Signed-off-by: Stefano Garzarella <[email protected]>
b5a3b3b
to
9bd36df
Compare
v2:
|
After merging coconut-svsm#606 we don't need to install `bindgen-cli` anymore to build our code. Signed-off-by: Stefano Garzarella <[email protected]>
We had several issues in our CI because we forgot to install
bindgen-cli
used in the libtcgtpm/Makefile to generate the TPM bindings.Instead of using
bindgen-cli
(and then having as a requirement to have it installed), let's usebindgen
in build.rs, this way the dependency is handled directly by cargo.Let's also clean up the references to
libtcgtpm/src/bindings.rs
since bindings were already generated in the OUT_DIR.Remove the reference to install
bindgen-cli
in the CI workflows, Documentation, and container image.