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

Updates for the new 'imp' field in TEEC_Session and TEEC_Context #736

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

jforissier
Copy link
Contributor

@jforissier jforissier commented Mar 28, 2024

Depends on (and is required due to) OP-TEE/optee_client#349.

As the test xtest_tee_test_1025() uses a part of a struct from
tee_client_api.h that is implementation defined, the test
needed to be updated when the implementation defined parts of
the structs in tee_client_api.h changed to use an imp field
instead of separate fields.

Signed-off-by: Julianus Larson <julianus.larson@linaro.org>
Reported-by: Tom Hebb <tommyhebb@gmail.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
@jforissier
Copy link
Contributor Author

jforissier commented Mar 29, 2024

Can someone please review the second commit ("gp: update API files to use the imp field in TEEC_Session")? With this I checked that all tests (including the GP suite) build and pass on QEMUv8. It would be nice to include the OP-TEE client update in the coming release.

@jenswi-linaro
Copy link
Contributor

Acked-by: Jens Wiklander <jens.wiklander@linaro.org>

The OP-TEE client library has been updated to include an 'imp' field as
required by the GlobalPlatform specification. Therefore, update the
parts of the code that access the TEE context which is now inside this
'imp' struct.
This commit is the result of the following commands:

 sed -i 's/sess->ctx/sess->imp.ctx/' $(git grep -l 'sess->ctx')
 sed -i 's/s->ctx/s->imp.ctx/' $(git grep -l 's->ctx')

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
@jforissier jforissier merged commit 526d5ba into OP-TEE:master Apr 2, 2024
1 check passed
@jforissier jforissier deleted the optee_client_imp branch April 2, 2024 09:47
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.

None yet

3 participants