-
Notifications
You must be signed in to change notification settings - Fork 53
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
Bump bindgen and update bindings #439
Bump bindgen and update bindings #439
Conversation
@@ -10798,20 +10774,6 @@ extern "C" { | |||
nonceTPM: *mut *mut TPM2B_NONCE, | |||
) -> TSS2_RC; | |||
} | |||
extern "C" { |
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.
There is something strange with these generated files. What version of TSS are these created from and what version do we intend to support in this branch?
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.
Just ran the regenerate-bindings.sh
script which has TPM2_TSS_VERSION="2.3.3"
. Is there some external dependency that needs to be considered before generating the script?
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.
This is unfortunate, it might've been a mistake when we last updated these, but in 2.3.3 these functions are not present. Perhaps we ran with 2.4.0? Given that we'll be doing a minor update on v7, maybe we can bump to the latest v2 of tpm2-tss, 2.4.6. What do you think?
Then we'll have additions to the API, but that's fine.
@@ -3498,13 +3474,13 @@ impl Default for TPMS_AUTH_RESPONSE { | |||
} | |||
pub type TPMI_AES_KEY_BITS = TPM2_KEY_BITS; | |||
pub type TPMI_SM4_KEY_BITS = TPM2_KEY_BITS; | |||
pub type TPMI_CAMELLIA_KEY_BITS = TPM2_KEY_BITS; |
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.
This kind of name change is a breaking change because these constants and names are exposed through the crate.
The x86_64-unknown-linux-gnu.rs already was having some differences compared to the other 3 binding files.
Was this done intentionally by any chance? |
@wiktor-k @Superhepper - any thoughts on moving to v2.4.6 of tpm2-tss? |
None other then it would require a major version bump. |
In general I'm in favor of upgrading what is possible and in this case I don't see any downsides. Go head 👍 |
Why? I'm hoping we'd only have additions to the bindings, nothing removed (or if it would be removed, for example to rename from |
If it is only an addition and it still works with the old version even if we do not support it then I guess no major version change is required. |
b8cba8c
to
b1b5014
Compare
So after generating the new bindings with the The new patch updates the other bindings to
|
The x86_64-unknown-linux-gnu.rs bindings are already generated from 2.4.6 version of the library. This patch generates the other target bindings for the same version. In order to avoid any breaking changes, the new bindings generated are manually edited. Bidgen is also updated to the 0.66.1 which introduces minor changes. Signed-off-by: Gowtham Suresh Kumar <[email protected]>
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
d024d18
to
263a31d
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, Thanks!
7240cec
to
5f85c85
Compare
Any idea why the ubuntu test is failing?
This happens for tpm2-tss |
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
5f85c85
to
ee00ccc
Compare
@Superhepper CI is passing now and I think all issues are resolved |
@ionut-arm @wiktor-k @Superhepper can I get a review, please? :) |
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
Signed-off-by: Gowtham Suresh Kumar [email protected]