Skip to content

Conversation

@minosgalanakis
Copy link
Contributor

Description

Migrates a series of components from the configuration-crypto on mbedtls to cmake. One of many pr's required for #10472

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

  • changelog not required because: Changes the testing framework not the code itself
  • development PR provided here
  • TF-PSA-Crypto PR provided # TODO
  • framework PR not required
  • 3.6 PR provided # | not required because: Will not be backported
  • tests provided

@minosgalanakis minosgalanakis added needs-work needs-ci Needs to pass CI tests size-s Estimated task size: small (~2d) labels Nov 13, 2025
@ronald-cron-arm ronald-cron-arm changed the title Migrate componenets for configuration-crypto to cmake Migrate components for configuration-crypto to cmake Nov 17, 2025
@ronald-cron-arm ronald-cron-arm changed the title Migrate components for configuration-crypto to cmake Migrate configuration-crypto components to cmake Nov 17, 2025
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch 2 times, most recently from 78aec57 to a39dc79 Compare November 19, 2025 11:24
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch 3 times, most recently from 9a7e3aa to 006d758 Compare December 1, 2025 12:47
@minosgalanakis
Copy link
Contributor Author

minosgalanakis commented Dec 1, 2025

Force push to latest development --> diff

Squashing and grouping the commits for easier review --> diff to pre-rebase base

@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch 2 times, most recently from 35af1d8 to dab67bd Compare December 2, 2025 12:11
@minosgalanakis minosgalanakis added needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review and removed needs-work needs-ci Needs to pass CI tests labels Dec 2, 2025
Migrate all straightfoward components from using $ASAN_CFLAGS
to CMAKE_BUILD_TYPE:String=Asan

Signed-off-by: Minos Galanakis <[email protected]>
…o cmake

Optimization for size (-Os) is required.

Signed-off-by: Minos Galanakis <[email protected]>
…r_accel_ec to cmake

Compilation flags, and spe include directories have been adjusted

Signed-off-by: Minos Galanakis <[email protected]>
…onents to cmake

- By default all unspecified build-type components should be release
- CMAKE_BUILD_TYPE:String=Release enables the following
  CFLAGS: "-O2 -Werror -Wall -Wextra"

Signed-off-by: Minos Galanakis <[email protected]>
…se components to cmake

Moved the following components to CMAKE_BUILD_TYPE:String=Release
and adjusted  the include paths for cmake:
* component_build_psa_crypto_spm
* component_test_tfm_config_no_p256m

Signed-off-by: Minos Galanakis <[email protected]>
…d_light_only to cmake

Use compilation directory for object discovery in out-of-source CMake builds.

Signed-off-by: Minos Galanakis <[email protected]>
…_BUILD_TYPE:String=None

Improve compilation flag granularity by disabling CMAKE_BUILD_TYPE defaults
and asserting test-specific flags manually.

Signed-off-by: Minos Galanakis <[email protected]>
The original make -C tests, contains a perl inliner
to generate the alt-headers. Replicated that logic in
sed regex.

Signed-off-by: Minos Galanakis <[email protected]>
Update the previously modified component to use
consistent syntax:
* make -> cmake --build .
* make test -> ctest
* Removed redudant CC=$ASAN_CC for BUILD_TYPE:String=Asan

Signed-off-by: Minos Galanakis <[email protected]>
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch from 51266d8 to 61f5ab1 Compare December 4, 2025 00:08
@ronald-cron-arm ronald-cron-arm self-requested a review December 9, 2025 10:37
@ronald-cron-arm ronald-cron-arm removed the needs-reviewer This PR needs someone to pick it up for review label Dec 9, 2025
@ronald-cron-arm ronald-cron-arm moved this from In Development to In Review in Roadmap pull requests (new board) Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Every commit must be reviewed by at least two team members, size-s Estimated task size: small (~2d)

Projects

Development

Successfully merging this pull request may close these issues.

2 participants