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

Add signing merging cmake modules #12

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

AhmedIsmail02
Copy link
Contributor

@AhmedIsmail02 AhmedIsmail02 commented Oct 10, 2023

Description

  • SignTfmImage.cmake is introduced to add the needed sign function to be used to sign the non-secure (application) binaries.
  • MergeTfmImages.cmake is introduced to be used to merge Bootloader, TF-M secure, Non-secure user application, secure and non-secure provisioning images into one image to be loaded inside the ROM rather than loading different images at their respective addresses.
  • These change enhance re-usability and decrease code duplication within the existing applications and applications to be added.

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AhmedIsmail02 AhmedIsmail02 requested a review from a team as a code owner October 10, 2023 15:22
@AhmedIsmail02 AhmedIsmail02 force-pushed the add-signing_merging_cmake_modules branch 4 times, most recently from d052d88 to 2dbea47 Compare October 11, 2023 07:59
urutva
urutva previously approved these changes Oct 11, 2023
A new CMake module (SignTfmImage.cmake) is introduced
to add the needed sign function to be used to sign
the non-secure (application) binaries.

This change enhance re-usability and decrease code
duplication within the existing applications and applications
to be added.

Signed-off-by: Ahmed Ismail <[email protected]>
A new CMake module (MergeTfmImages.cmake) is introduced
to be used to merge Bootloader, TF-M secure, Non-secure
user application, secure and non-secure provisioning
images into one image to be loaded inside the ROM rather
than loading different images at their respective addresses.

CI is modified to archive the merged binary instead of
separate binaries which would be used the test stage of
the CI.

This change enhance re-usability and decrease code
duplication within the existing applications and applications
to be added.

Signed-off-by: Ahmed Ismail <[email protected]>
ConvertElfToBin CMake module is used to convert
provisioning data elf file to binary file.

Signed-off-by: Ahmed Ismail <[email protected]>
@urutva urutva merged commit b42cdcf into FreeRTOS:main Oct 11, 2023
4 checks passed
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.

3 participants