-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix enum type to align with psa-arch-tests #11620
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
Conversation
This is related to ARMmbed#11256 When TARGET_PSA is enabled on Cortex-A boards, the SECURE is redeclared. So to minimize the impact we can redeclare this in val.h which is used only by Mbed. And `security_t` itself is used in mbed-os\components\TARGET_PSA\TESTS, but the SECURE string is not used. Renamed to `caller_security_t` which aligns with https://github.com/ARM-software/psa-arch-tests
@jainvikas8, thank you for your changes. |
@jamesbeyond Please, could you review it. Thanks. |
} security_t; | ||
CALLER_NONSECURE = 0x0, | ||
CALLER_SECURE = 0x1, | ||
} caller_security_t; |
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.
Is this changing actual enumerated types used by a developer ? Or is val.h a test only header file ?
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.
val.h
is a test only header file.
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.
Is this breaking change - val.h
is included outside of PSA (the application space)?
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.
In terms of greentea part this PR is OK for me. the changed files actually not part of the GreenTea framework, It is part of PSA Greentea test initialisation code. So the changes will not have impact to other greentea tests.
@jainvikas8 please confirm this is backward compatible change. I'll start CI meanwhile |
There are NO API changes here. It is internal to test only code. So it should be backward compatible. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This is related to #11256
When TARGET_PSA is enabled on Cortex-A boards, the SECURE
is redeclared. So to minimize the impact we can redeclare this in
val.h which is used only by Mbed. And
security_t
itself is used inmbed-os\components\TARGET_PSA\TESTS, but the SECURE string is not used.