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

Feature/secure element ci #7816

Merged
merged 37 commits into from
Jun 23, 2021

Conversation

Jagadish-NXP
Copy link
Contributor

@Jagadish-NXP Jagadish-NXP commented Jun 22, 2021

Problem

Secure Element build needs to be added in CI for K32W
we did observe that the crypto files were moving ahed with changes but the changes were not reflected ni the Secure Element build as the Secure Element Build was not part of CI. Adding it to CI will provide us immediate feedback when something is broken. Also now take care that there is no net compile time increase as suggested by andy31415

Change overview

Added Secure Element build for K32W

Testing

Manually tested on K32W061 with Secure Element

Jagadish-NXP and others added 30 commits January 31, 2021 18:22
@pullapprove pullapprove bot requested a review from bhaskar-apple June 22, 2021 13:46
@andy31415
Copy link
Contributor

Could you expand a bit more on the "Secure Element build needs to be added in CI for K32W" description?

We are starting to be sensitive on the time our build takes and how long CI takes to finish. Adding more platforms should be done if they provide significant differences from the rest. Does the secure element differ significantly from the regular one?

At the very least, could we compile just one of the lock or light app instead of both (and maybe delete one of them from the 'regular' build so that there is no net compile time increase?

Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

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

Requesting changes: concerned about extra build times adding up at only partial incremental gain.

Suggest to drop one of the non-secure-element builds and replace with se build, like "ligthing app uses regular build and lock app uses se build".

@Jagadish-NXP
Copy link
Contributor Author

Requesting changes: concerned about extra build times adding up at only partial incremental gain.

Suggest to drop one of the non-secure-element builds and replace with se build, like "ligthing app uses regular build and lock app uses se build".

Sure .. Update as suggested.. Now lock-app without SE and lighting app with SE to maintain the same executino time

Comment on lines 522 to 518
const CHIP_ERROR error = Spake2p_KeyConfirm_HSM(&hsm_pake_context, role, in, in_len);
CHIP_ERROR error = CHIP_ERROR_INTERNAL;
error = Spake2p_KeyConfirm_HSM(&hsm_pake_context, role, in, in_len);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this change needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

And in particular, why can't error stay const here?

Copy link
Contributor Author

@Jagadish-NXP Jagadish-NXP Jun 22, 2021

Choose a reason for hiding this comment

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

I agree. The change was not required..It is the same now(no changes now after the latest commit). This had got changed for VerifyOrExit which was being used sometime earlier and "error variable" was being reused. now VerifyOrReturnError is being used and the change is not required.

@woody-apple
Copy link
Contributor

@andy31415 andy31415 merged commit 039dfbd into project-chip:master Jun 23, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
* script for building with Secure Element

* debug ==> release as it is actually built in release mode

* added secure element build

* Added with secure element build

* added build instrctions

* added lf

* spacing

* spacing

* added se

* image of se

* Updated Readme

* default host is host_k32w

* restyled

* spell corrected

* Only One binary for code size analysis

* extended for se

* Removed the extra copy paste line

* build fixes. Motivation fo this PR

* restyled

* Review comment updates

* made it simpler

* made const

* labelling it correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants