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 2 times, most recently from 3fc4777 to 9a7e3aa Compare December 1, 2025 12:47
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]>
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch 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

…_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]>
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch from 006d758 to 321ee13 Compare December 1, 2025 14:59
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]>
Signed-off-by: Minos Galanakis <[email protected]>
@minosgalanakis minosgalanakis force-pushed the rework/component-configuration-crypto-cmake branch from 35af1d8 to dab67bd Compare December 2, 2025 12:11
Signed-off-by: Minos Galanakis <[email protected]>
@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
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, needs-reviewer This PR needs someone to pick it up for review size-s Estimated task size: small (~2d)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant