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

Move scripts used by all-core.sh to the framework #80

Merged
merged 266 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
8ad56b8
Fix TEST_CALLOC issues with GCM buffer overlap tests
Harry-Ramsey Nov 7, 2024
6f77baf
Use PSA macros for the `chipher_chaining` domain
gabor-mezei-arm Sep 20, 2024
5a61086
Test all cipher algorithm
gabor-mezei-arm Oct 30, 2024
e191c03
Update the dependencies of the cipher algorithms
gabor-mezei-arm Oct 30, 2024
95be5fb
Add support for common dependencies in exclusive groups
gabor-mezei-arm Oct 30, 2024
a5f3529
Update comment
gabor-mezei-arm Oct 30, 2024
242806a
Update dependencies
gabor-mezei-arm Nov 6, 2024
af198c2
Rename variable
gabor-mezei-arm Nov 12, 2024
655c487
Update dependencies
gabor-mezei-arm Nov 12, 2024
6763a55
Update comments
gabor-mezei-arm Nov 12, 2024
6a91def
Fix check_names error for MBEDTLS_GCM_ALT comment
Harry-Ramsey Nov 12, 2024
bd36c47
Stop IOP generate key complete test in case expected value is not suc…
waleed-elmelegy-arm Nov 13, 2024
a47b82c
Fix issue exporting generated key to raw intermediate buffer
waleed-elmelegy-arm Nov 13, 2024
8666b0f
Add MBEDTLS_ECP_MAX_MPI define
waleed-elmelegy-arm Nov 13, 2024
4c59cee
Remove documentation regarding MBEDTLS_GCM_ALT
Harry-Ramsey Nov 13, 2024
211bf6d
cmake: Fix config files compile definitions
ronald-cron-arm Oct 23, 2024
13a7cce
Align all.sh tf-psa-crypto components naming
ronald-cron-arm Nov 5, 2024
735dd65
Fix mbedcrypto pkg-config file
ronald-cron-arm Nov 5, 2024
564b1cb
tf-psa-crypto: cmake: Fix target for compile options
ronald-cron-arm Nov 5, 2024
169393e
Restrict the definition of memcheck/lcov targets
ronald-cron-arm Oct 7, 2024
a9219ff
Add project prefix to API documentation targets
ronald-cron-arm Oct 23, 2024
2609fe9
cmake: tf-psa-crypto: Rename mbedtls_test to tf_psa_crypto_test
ronald-cron-arm Oct 7, 2024
ba850f3
Rename export MbedTLSTargets to TF-PSA-CryptoTargets
ronald-cron-arm Oct 11, 2024
d3b33a2
Finalize TF-PSA-Crypto.cmake to become the top cmake file
ronald-cron-arm Oct 19, 2024
97cfd70
tf-psa-crypto: cmake: Let TF-PSA-Crypto.cmake be the top cmake file
ronald-cron-arm Oct 19, 2024
1a52bc4
cmake: mbedtls: Propagate options and target prefix
ronald-cron-arm Nov 5, 2024
020e026
cmake: tf-psa-crypto: Add cmake_subproject test program
ronald-cron-arm Oct 23, 2024
b7d0e52
cmake: Rename mbedcrypto target to tfpsacrypto
ronald-cron-arm Oct 25, 2024
8126a68
cmake: Rename mbedcrypto library to tfpsacrypto
ronald-cron-arm Oct 25, 2024
0381a98
cmake: Move copy of crypto libraries to mbedtls
ronald-cron-arm Nov 5, 2024
bea67a1
Fix everest build
ronald-cron-arm Nov 14, 2024
a3ce631
Refactor mbedtls_psa_generate_key_iop_complete()
waleed-elmelegy-arm Nov 14, 2024
939ce9d
Remove mbedtls_test
ronald-cron-arm Nov 14, 2024
0cc6860
Merge pull request #9611 from gabor-mezei-arm/9142_update_depends.py_…
ronald-cron-arm Nov 14, 2024
e0dac22
Change MBEDTLS_ECP_MAX_MPI to MBEDTLS_ECP_MAX_MPI_BYTES for better cl…
waleed-elmelegy-arm Nov 14, 2024
d779e95
Fix cmake option name
ronald-cron-arm Nov 14, 2024
d118cd2
Fix definition of psa_generate_key_iop_complete()
paul-elliott-arm Nov 14, 2024
8237484
cmake: Use TF_PSA_CRYPTO_CONFIG_FILE to prefix crypto targets
ronald-cron-arm Nov 15, 2024
958bdf7
Add required code to psa_sim_generate.pl
paul-elliott-arm Nov 15, 2024
b1039af
Regenerate PSA Sim headers
paul-elliott-arm Nov 14, 2024
c54fcc7
Add new psa_key_agreement() to key_agreement_fail()
paul-elliott-arm Sep 19, 2024
2c9d398
Add new psa_key_agreement() to key exercises
paul-elliott-arm Sep 19, 2024
7267e56
Fix incorrect return code
paul-elliott-arm Nov 13, 2024
66d7bcb
Add key export on successful key agreement
paul-elliott-arm Nov 13, 2024
fee08b4
Merge pull request #9760 from ronald-cron-arm/tf-psa-crypto-cmake
ronald-cron-arm Nov 15, 2024
e34a5c5
Add psa_export_public_key_iop_s struct and docs
waleed-elmelegy-arm Nov 15, 2024
118b078
Add psa_export_public_key_iop_get_num_ops() header/docs
waleed-elmelegy-arm Nov 15, 2024
c8d50f5
Add psa_export_public_key_iop_setup() header/docs
waleed-elmelegy-arm Nov 15, 2024
e5b3e66
Add psa_export_public_key_iop_complete() header/doc
waleed-elmelegy-arm Nov 15, 2024
cee3af2
Add psa_export_public_key_iop_abort() header/doc
waleed-elmelegy-arm Nov 15, 2024
bdb6385
Add iop export public-key dummy API implementations
waleed-elmelegy-arm Nov 15, 2024
fad77f1
Add iop export public-key generated test wrappers
waleed-elmelegy-arm Nov 15, 2024
5fc76a9
Fix small typos in iop key generation & agreement APIs
waleed-elmelegy-arm Nov 15, 2024
5c0c515
Update `crypto_se_driver.h` reference
emmanuel-ferdman Nov 17, 2024
ceca4de
Remove mention of PSA_EXPORT_ASYMMETRIC_KEY_MAX_SIZE
waleed-elmelegy-arm Nov 18, 2024
fe4b02c
Merge pull request #9602 from paul-elliott-arm/add_key_agreement_nega…
yanesca Nov 18, 2024
531adaf
Move some test helpers out of Mbed TLS
davidhorstmann-arm Nov 14, 2024
5b93d97
Update references to test helpers
davidhorstmann-arm Oct 31, 2024
204eb2c
Re-add tests/include path for test helpers
davidhorstmann-arm Oct 31, 2024
d2cabf2
Add missing extra include path to fuzzer programs
davidhorstmann-arm Nov 4, 2024
306f410
Add the framework/tests/include path to testsuites
davidhorstmann-arm Nov 4, 2024
b4dcb95
Add SSL-related test includes to ssl programs
davidhorstmann-arm Nov 4, 2024
1b457a9
Undo incorrect path substitution
davidhorstmann-arm Nov 4, 2024
bc06e2a
Add framework test include path to common.mk
davidhorstmann-arm Nov 4, 2024
d9ad663
Update common.mk with test helper object paths
davidhorstmann-arm Nov 5, 2024
69b12ee
Add tests/Makefile targets for moved test helpers
davidhorstmann-arm Nov 5, 2024
cbab2ff
Update path substitution for TF-PSA-Crypto tests
davidhorstmann-arm Nov 5, 2024
6bbd9c0
Update libtestdriver paths in tests/Makefile
davidhorstmann-arm Nov 6, 2024
e6a7c24
Update test_keys.h generation in Makefile
davidhorstmann-arm Nov 6, 2024
8a8d56a
Update make clean target with moved test helpers
davidhorstmann-arm Nov 6, 2024
08953f7
Add extra paths to generate_visualc_files.pl
davidhorstmann-arm Nov 6, 2024
dc45951
Update path to PSA crypto alt headers
davidhorstmann-arm Nov 7, 2024
d962680
Update generate path to instrument_record_status.h
davidhorstmann-arm Nov 8, 2024
8a5b3af
Update paths to generated PSA test wrappers
davidhorstmann-arm Nov 8, 2024
36c819c
Update test_keys.h path on Windows
davidhorstmann-arm Nov 8, 2024
a244687
Add missing include path to visual C script
davidhorstmann-arm Nov 8, 2024
3281e16
Reverse accidental docs PSA test wrappers path
davidhorstmann-arm Nov 13, 2024
0771253
Properly clean instrument_record_status.h
davidhorstmann-arm Nov 13, 2024
c3cea30
Update framework submodule
davidhorstmann-arm Nov 14, 2024
0b2cd56
Update framework submodule
davidhorstmann-arm Nov 15, 2024
7bf3489
Update framework submodule
davidhorstmann-arm Nov 18, 2024
0223bc6
Update paths in TF-PSA-Crypto CMakeLists.txt
davidhorstmann-arm Nov 18, 2024
1df752b
Update framework to add ported test helper changes
davidhorstmann-arm Nov 18, 2024
db0c4a4
Remove MBEDTLS_ECP_MAX_MPI_BYTES macro
waleed-elmelegy-arm Nov 18, 2024
ccf8c42
Update framework submodule
davidhorstmann-arm Nov 19, 2024
ed91f88
Replace tabs with spaces in Makefile
davidhorstmann-arm Nov 19, 2024
905395e
Merge pull request #9756 from davidhorstmann-arm/move-some-test-helpe…
mpg Nov 20, 2024
08e28e6
Check error codes on called functions in mbedtls_psa_generate_key_iop…
waleed-elmelegy-arm Nov 20, 2024
44e0f75
Use PSA Macros instead of legacy ones in psa_generate_key_iop_complete()
waleed-elmelegy-arm Nov 20, 2024
39d54e1
Prevent a warning in case PSA_VENDOR_ECC_MAX_CURVE_BITS is set to 0
waleed-elmelegy-arm Nov 20, 2024
bf1af30
Correct typos in iop export public-key headers
waleed-elmelegy-arm Nov 20, 2024
a898127
Remove PSA_ERROR_NOT_SUPPORTED as a return value to iop abort APIs
waleed-elmelegy-arm Nov 20, 2024
ced2605
Move psa programs to tf-psa-crypto directory
Harry-Ramsey Oct 22, 2024
75e8e03
Fix paths for programs/psa
Harry-Ramsey Oct 22, 2024
e1d70a0
Adjust psa program paths in Makefile
Harry-Ramsey Oct 22, 2024
d66fb84
Adjust psa program paths in CMakeLists
Harry-Ramsey Oct 29, 2024
c94cb70
Update paths in .sln file
Harry-Ramsey Oct 31, 2024
fae7411
Refactor programs/Makefile
Harry-Ramsey Nov 4, 2024
e1d6f74
Move generate_psa_constants.py to tf-psa-crypto
Harry-Ramsey Nov 4, 2024
61372ef
Refactor tests and programs comment
Harry-Ramsey Nov 4, 2024
91c0d46
Use static paths in makefile for programs
Harry-Ramsey Nov 4, 2024
fb4824b
Fix incorrect paths to generate_psa_constants.py
Harry-Ramsey Nov 4, 2024
e9e316e
Update path in programs/psa/CMakeList.txt
Harry-Ramsey Nov 5, 2024
61811e6
Update path in check-generated-files.sh
Harry-Ramsey Nov 5, 2024
cefc672
Fix make_generated_files.bat
Harry-Ramsey Nov 5, 2024
8ee1b5d
Update gitignore
Harry-Ramsey Nov 6, 2024
be20844
Update path in run_demos.py
Harry-Ramsey Nov 6, 2024
20d3cf2
Update programs/Makefile path
Harry-Ramsey Nov 6, 2024
af05941
Revert program CC output in Makefile
Harry-Ramsey Nov 11, 2024
ff57cc5
Move program gitignore to tf-psa-crypto/programs
Harry-Ramsey Nov 20, 2024
885ce72
Remove duplicate demo_common.sh in tf-psa-crypto
Harry-Ramsey Nov 20, 2024
7fa6cae
Concatenate program demos between Mbed TLS and TF-PSA-Crypto
Harry-Ramsey Nov 20, 2024
3cad328
Update framework submodule to point to main
davidhorstmann-arm Nov 21, 2024
174a4e9
Change iop export public-key initlization example
waleed-elmelegy-arm Nov 21, 2024
e2a6d28
Merge pull request #9794 from davidhorstmann-arm/test-helpers-update-…
mpg Nov 21, 2024
f366938
Merge pull request #9778 from waleed-elmelegy-arm/add-iop-export-pub-…
yanesca Nov 21, 2024
2266197
Move internal iop generate key function headers to psa_crypto_ecp.h
waleed-elmelegy-arm Nov 21, 2024
f5a82fd
Add ecp prefix to internal iop generate key function names
waleed-elmelegy-arm Nov 21, 2024
e0ebf55
Move back *config_test_driver* headers from the framework
ronald-cron-arm Nov 19, 2024
93ba625
Remove MBEDTLS_PSA_CRYPTO_CONFIG configuration option
ronald-cron-arm Sep 5, 2024
42a5c97
Add change log
ronald-cron-arm Nov 14, 2024
c57f6fc
Fix code stayle in iop export public-key function
waleed-elmelegy-arm Nov 21, 2024
28a26ec
Merge pull request #9771 from ronald-cron-arm/remove-psa-crypto-config
ronald-cron-arm Nov 21, 2024
3aefa5b
Merge pull request #7977 from ivq/update_gcm_doc
davidhorstmann-arm Nov 21, 2024
f27c105
Merge pull request #9780 from emmanuel-ferdman/development
mpg Nov 25, 2024
1630603
Change internal iop generate key error variable to int
waleed-elmelegy-arm Nov 25, 2024
49e6115
Merge pull request #9651 from waleed-elmelegy-arm/add-iop-key-gen-com…
yanesca Nov 26, 2024
23a6432
Add project and branch detection in shell
eleuzi01 Nov 7, 2024
ef40183
Use new functions
eleuzi01 Nov 7, 2024
2e37806
Fix paths
eleuzi01 Nov 12, 2024
8993fec
Define FRAMEWORK
eleuzi01 Nov 20, 2024
5bcd3cc
Add internal struct for iop export public-key context
waleed-elmelegy-arm Nov 20, 2024
07d2bc0
Add headers for internal iop export public-key setup & abort APIs
waleed-elmelegy-arm Nov 20, 2024
9958ff6
Add PSA iop export public-key struct members
waleed-elmelegy-arm Nov 20, 2024
e2a9b6a
Add internal iop export public-key setup API
waleed-elmelegy-arm Nov 20, 2024
14aef98
Add internal iop export public-key abort API
waleed-elmelegy-arm Nov 20, 2024
3d5ed79
Add PSA internal iop export public-key abort function
waleed-elmelegy-arm Nov 20, 2024
cd189e8
Add PSA iop export public-key setup API
waleed-elmelegy-arm Nov 20, 2024
ada977f
Add PSA iop export public-key abort API
waleed-elmelegy-arm Nov 20, 2024
5bcc1b9
Add iop export public-key tests
waleed-elmelegy-arm Nov 20, 2024
ea35fac
Add iop export public-key initializers test
waleed-elmelegy-arm Nov 20, 2024
b30233f
Change key param to mbedtls_svc_key_id_t in psa_export_public_key_iop…
waleed-elmelegy-arm Nov 20, 2024
84cc90f
Improve parameter checking in psa_export_public_key_iop_setup()
waleed-elmelegy-arm Nov 27, 2024
c2790c6
Add negative tests for interruptible export public-key
waleed-elmelegy-arm Nov 27, 2024
3c7f5c0
Change pointer init in export public-key iop struct to NULL
waleed-elmelegy-arm Nov 27, 2024
568d057
Add iop prefix to interruptible export-public key testing function
waleed-elmelegy-arm Nov 27, 2024
8cf83c0
Merge pull request #9763 from eleuzi01/issue-39-fw
davidhorstmann-arm Nov 27, 2024
208c01b
Add PSA interruptible key generation get num ops API
waleed-elmelegy-arm Nov 13, 2024
c05a7f8
Add testing for PSA iop key generation get num ops API
waleed-elmelegy-arm Nov 13, 2024
f7ebd73
Add Changelog entry for interruptible key generation
waleed-elmelegy-arm Nov 18, 2024
14c3065
Update submodule to point to main
eleuzi01 Nov 28, 2024
b959116
Merge pull request #9804 from eleuzi01/project-detection-submodule-up…
gilles-peskine-arm Nov 28, 2024
29f65a8
Chane error code in psa_export_public_key_iop_setup() in case key siz…
waleed-elmelegy-arm Nov 28, 2024
6305f5d
Improve clarity of num_ops comparison in iop key generation testing
waleed-elmelegy-arm Nov 29, 2024
19d418a
Clarify why we set num_ops to 1 in iop key generation
waleed-elmelegy-arm Nov 29, 2024
017722f
Merge pull request #9785 from waleed-elmelegy-arm/add-iop-export-pub-…
paul-elliott-arm Nov 29, 2024
685d128
Make mbedTLS compile with MS-DOS DJGPP
SuperIlu Dec 1, 2024
1406ace
Added changelog
SuperIlu Dec 1, 2024
62e79dc
Merge pull request #9665 from waleed-elmelegy-arm/add-iop-key-gen-get…
yanesca Dec 2, 2024
277bba8
Remove USE_PSA references from config documentation
yanesca Nov 19, 2024
130ece0
Remove USE_PSA references from SSL documentation
yanesca Nov 19, 2024
582ecd0
Remove USE_PSA references from X509 documentation
yanesca Nov 19, 2024
056cb14
Remove USE_PSA references from crypto documentation
yanesca Nov 19, 2024
92dfb88
Adapt configs/ext/README.md
yanesca Dec 2, 2024
745e561
Move the psa_init() warnings to _CLI and _SRV
yanesca Dec 2, 2024
2761d18
Add issue reference for ECP_RESTARTABLE limitations
yanesca Dec 2, 2024
cbd00b0
Fix check-generated-files.sh generate_psa_constants.py path
Harry-Ramsey Dec 2, 2024
0569c01
Remove obsolete Docker CI scripts
Harry-Ramsey Oct 3, 2024
cff96f6
Remove obsolete Travis CI scripts
Harry-Ramsey Oct 3, 2024
586e518
Remove obsolete config.pl
Harry-Ramsey Oct 3, 2024
c6d2e4e
Remove obsolete tcp_client.pl
Harry-Ramsey Oct 3, 2024
fe81cfe
Refactor scripts to use config.py instead of config.pl
Harry-Ramsey Oct 7, 2024
cda2a28
reworked changelog according to suggestion
SuperIlu Dec 2, 2024
f4f37ec
Merge pull request #9810 from SuperIlu/development
yanesca Dec 3, 2024
b6860cf
Merge pull request #9781 from yanesca/remove_USE_PSA_from_API_doc_9632
yanesca Dec 3, 2024
25ae42e
crypto_config: Migrated Platform options.
minosgalanakis Sep 26, 2024
2056958
crypto_config: Migrated General and test configuration options.
minosgalanakis Sep 16, 2024
45544e0
crypto_config: Migrated cryptographic mechanism selection options.
minosgalanakis Sep 17, 2024
1448949
crypto_config: Migrated data format selection options.
minosgalanakis Sep 17, 2024
626439a
crypto_config: Migrated PSA core selection options.
minosgalanakis Sep 17, 2024
a19e07f
crypto_config: Migrated crypto-drivers selection options.
minosgalanakis Sep 17, 2024
127ffb5
crypto_config: Migrated legacy-crypto selection options.
minosgalanakis Sep 18, 2024
f33250f
crypto_config: Migrated MBEDTLS_NULL_CIPHER in legacy-crypto
minosgalanakis Dec 2, 2024
cb32d08
crypto_config: Migrated newer configuration options.
minosgalanakis Nov 29, 2024
2968dfc
crypto_config: Added Cryptographic mechanism selection section.
minosgalanakis Dec 3, 2024
861b90c
Migrated General and test configuration options (contd).
minosgalanakis Dec 3, 2024
1ae28bf
configs: Migrated config-ccm-psk-(d)tls1_2
minosgalanakis Nov 1, 2024
0d8e319
configs: Migrated config-suite-b
minosgalanakis Nov 1, 2024
bca85e6
configs: Migrated config-tfm
minosgalanakis Nov 1, 2024
463a3ec
configs: Migrated config-thread
minosgalanakis Nov 1, 2024
2db2f8b
configs: Migrated config-symmetric-only
minosgalanakis Oct 22, 2024
bee70a7
configs: Removed references to MBEDTLS_USE_PSA_CRYPTO
minosgalanakis Dec 2, 2024
1f0d469
Cleaned up MbedTLS/tf-psa-crypto configs.
minosgalanakis Dec 2, 2024
23452f5
libtestdriver: Addded crypto_config_test_driver
minosgalanakis Nov 28, 2024
aa2f12c
component-configuration-crypto: Set user-config-for-test as the `MBED…
minosgalanakis Oct 22, 2024
473b960
components-build-system: Added support for psa_crypto custom configur…
minosgalanakis Oct 1, 2024
981d7d6
test-suites: Replaced `NIST_KW_C` with `SSL_ALL_ALERT_MESSAGES`
minosgalanakis Oct 10, 2024
4f7f132
test-data: Adjusted check-feature test to seek `MBEDTLS_TIMING_C`.
minosgalanakis Nov 1, 2024
5da58e5
tests/configs: Adjusted for migration of MBEDTLS_PSA_CRYPTO_CONFIG_FILE.
minosgalanakis Nov 7, 2024
c6e58aa
test_memsan_constant_flow_psa: Set to not re-generate files.
minosgalanakis Nov 6, 2024
4f619e1
Renamed MBEDTLS_PSA_CRYPTO_CONFIG_FILE & MBEDTLS_PSA_CRYPTO_USER_CONF…
minosgalanakis Nov 14, 2024
2154ce2
component_test_ccm_aes_sha256: Workaround for split libtestdriver con…
minosgalanakis Nov 28, 2024
00b641c
test_components: Updated config.py to use -c for setting CRYPTO_CONFI…
minosgalanakis Nov 28, 2024
c1be623
tf-psa-crypto config docs: Removed references to MBEDTLS_PSA_CRYPTO_C…
minosgalanakis Nov 29, 2024
473241e
build_cmake_custom_config_file: Added test coverage for crypto_user_c…
minosgalanakis Dec 2, 2024
a17ffc7
test suites: Refactored component_test_ccm_aes_sha256.
minosgalanakis Dec 2, 2024
a4a3737
config.py: Do not set default entry for tf-psa-crypto config.
minosgalanakis Sep 26, 2024
a8c85f8
check_names: Updated macro regex to accept TF_PSA_X names.
minosgalanakis Nov 29, 2024
4e657bb
Add python module serach path library for TF PSA Crypto
gabor-mezei-arm Nov 20, 2024
575833c
cmake: Move generation of test_certs.h to mbedtls
ronald-cron-arm Nov 22, 2024
3ed75c5
Move psa_test_wrappers.h/c to tf-psa-crypto
ronald-cron-arm Nov 22, 2024
80963c6
Move hkdf.h to tf-psa-crypto
ronald-cron-arm Nov 28, 2024
d5331ff
cmake: Move cert.o to mbedtls_test_helpers library of objects
ronald-cron-arm Nov 22, 2024
a9166b6
tf-psa-crypto: cmake: Switch to TF_PSA_CRYPTO_FRAMEWORK_DIR
ronald-cron-arm Nov 22, 2024
aae9db4
tf-psa-crypto: cmake: Fix hard coded path to framework
ronald-cron-arm Nov 22, 2024
8b592d2
Move psa_to_ssl_errors
ronald-cron-arm Nov 12, 2024
18047f0
Move config_adjust_legacy_crypto.h to tf-psa-crypto
ronald-cron-arm Nov 12, 2024
6924564
Move back timing.c to mbedtls
ronald-cron-arm Nov 12, 2024
1fe5277
Remove unnecessary error.h inclusions
ronald-cron-arm Nov 13, 2024
6a2cbe7
Move driver wrappers generation to tf-psa-crypto
ronald-cron-arm Nov 13, 2024
848333d
analyze_outcomes: Moved migrated to ts-psa-crypto tests cases.
minosgalanakis Dec 2, 2024
e2d0074
Added changelog for the configuration split.
minosgalanakis Dec 3, 2024
4ce27cb
ssl-opt: CONFIGS_ENABLED list should always end with a space char.
minosgalanakis Dec 2, 2024
64d2238
Updated Framework Pointer
minosgalanakis Dec 3, 2024
21837fc
Merge pull request #9567 from minosgalanakis/config_split
ronald-cron-arm Dec 4, 2024
c707ac5
Add python module serach path library for TF PSA Crypto
gabor-mezei-arm Nov 20, 2024
3191144
Add config.py for TF PSA Crypto
gabor-mezei-arm Nov 20, 2024
871cde6
Add `full` adapter for tf-psa_crypto_config.py
gabor-mezei-arm Nov 20, 2024
afc5fa5
Rename TfPSA to TFPSA
gabor-mezei-arm Nov 29, 2024
1044a80
Use better config name
gabor-mezei-arm Nov 29, 2024
37bf61e
Fix crypto config path
gabor-mezei-arm Nov 29, 2024
680a7c3
Use only one config file in config.py
gabor-mezei-arm Nov 29, 2024
a53712d
Rename tf_psa_crypto_config.py to config.py
gabor-mezei-arm Nov 29, 2024
75c7e13
Update framework
gabor-mezei-arm Dec 5, 2024
fb36814
Use default value for the `filename` parameter
gabor-mezei-arm Dec 5, 2024
1a7bbe1
Handle the `_ALT` macros in the `full` adapter
gabor-mezei-arm Dec 5, 2024
ce3c2dd
Merge pull request #9806 from ronald-cron-arm/finalize-split-preparat…
ronald-cron-arm Dec 5, 2024
fc719d6
Unify PSA symbol identification
gabor-mezei-arm Dec 5, 2024
c716aad
Make the file path generation more transparent
gabor-mezei-arm Dec 5, 2024
2e3f17a
Remove not TF-PSA-Cripto related symbol
gabor-mezei-arm Dec 5, 2024
5034a1f
Fix PSA macro identification regexp
gabor-mezei-arm Dec 5, 2024
a13d404
Merge pull request #9717 from Harry-Ramsey/move-programs-psa-tf-psa-c…
ronald-cron-arm Dec 9, 2024
d1a5bb2
Update framework
gabor-mezei-arm Dec 9, 2024
4a8e8f8
Merge pull request #9666 from Harry-Ramsey/remove-obsolete-ci-scripts…
mpg Dec 9, 2024
2ce86b0
Merge pull request #9792 from gabor-mezei-arm/9157_minimal_tf_psa_cry…
ronald-cron-arm Dec 9, 2024
ef0920f
Move files into the framework
eleuzi01 Dec 9, 2024
baf8e1b
Merge branch 'tmp-branch-move-files-to-framework' into issue-74
eleuzi01 Dec 9, 2024
c43c560
Adapt paths for output_env.sh
eleuzi01 Nov 19, 2024
64b5319
Adapt paths for scripts/quiet
eleuzi01 Nov 19, 2024
b5100e3
Simplify path
eleuzi01 Dec 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/all-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ setup_quiet_wrappers()
# unless there is an error. This reduces logging overhead in the CI.
#
# Note that the cmake wrapper breaks unless we use an absolute path here.
if [[ -e ${PWD}/tests/scripts/quiet ]]; then
export PATH=${PWD}/tests/scripts/quiet:$PATH
if [[ -e ${PWD}/framework/scripts/quiet ]]; then
export PATH=${PWD}/framework/scripts/quiet:$PATH
fi
}

Expand Down Expand Up @@ -861,7 +861,7 @@ pre_check_tools () {
*) set "$@" RUN_ARMCC=0;;
esac
# Use a path relative to the currently-sourced file.
"$@" "${BASH_SOURCE%/*}"/../../scripts/output_env.sh
"$@" "${BASH_SOURCE%/*}"/output_env.sh
}

pre_generate_files() {
Expand Down
183 changes: 183 additions & 0 deletions scripts/output_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
#! /usr/bin/env sh

# output_env.sh
#
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#
# Purpose
#
# To print out all the relevant information about the development environment.
#
# This includes:
# - architecture of the system
# - type and version of the operating system
# - version of make and cmake
# - version of armcc, clang, gcc-arm and gcc compilers
# - version of libc, clang, asan and valgrind if installed
# - version of gnuTLS and OpenSSL

print_version()
{
BIN="$1"
shift
ARGS="$1"
shift
VARIANT="$1"
shift

if [ -n "$VARIANT" ]; then
VARIANT=" ($VARIANT)"
fi

if ! type "$BIN" > /dev/null 2>&1; then
echo " * ${BIN##*/}$VARIANT: Not found."
return 0
fi

BIN=`which "$BIN"`
VERSION_STR=`$BIN $ARGS 2>&1`

# Apply all filters
while [ $# -gt 0 ]; do
FILTER="$1"
shift
VERSION_STR=`echo "$VERSION_STR" | $FILTER`
done

if [ -z "$VERSION_STR" ]; then
VERSION_STR="Version could not be determined."
fi

echo " * ${BIN##*/}$VARIANT: ${BIN} : ${VERSION_STR} "
}

echo "** Platform:"
echo

if [ `uname -s` = "Linux" ]; then
echo "Linux variant"
lsb_release -d -c
else
echo "Unknown Unix variant"
fi

echo

print_version "uname" "-a" ""

echo
echo
echo "** Tool Versions:"
echo

print_version "make" "--version" "" "head -n 1"
echo

print_version "cmake" "--version" "" "head -n 1"
echo

if [ "${RUN_ARMCC:-1}" -ne 0 ]; then
: "${ARMC6_CC:=armclang}"
print_version "$ARMC6_CC" "--vsn" "" "head -n 2"
echo
fi

print_version "arm-none-eabi-gcc" "--version" "" "head -n 1"
echo

print_version "gcc" "--version" "" "head -n 1"
echo

if [ -n "${GCC_EARLIEST+set}" ]; then
print_version "${GCC_EARLIEST}" "--version" "" "head -n 1"
else
echo " GCC_EARLIEST : Not configured."
fi
echo

if [ -n "${GCC_LATEST+set}" ]; then
print_version "${GCC_LATEST}" "--version" "" "head -n 1"
else
echo " GCC_LATEST : Not configured."
fi
echo

print_version "clang" "--version" "" "head -n 2"
echo

if [ -n "${CLANG_EARLIEST+set}" ]; then
print_version "${CLANG_EARLIEST}" "--version" "" "head -n 2"
else
echo " CLANG_EARLIEST : Not configured."
fi
echo

if [ -n "${CLANG_LATEST+set}" ]; then
print_version "${CLANG_LATEST}" "--version" "" "head -n 2"
else
echo " CLANG_LATEST : Not configured."
fi
echo

print_version "ldd" "--version" "" "head -n 1"
echo

print_version "valgrind" "--version" ""
echo

print_version "gdb" "--version" "" "head -n 1"
echo

print_version "perl" "--version" "" "head -n 2" "grep ."
echo

print_version "python" "--version" "" "head -n 1"
echo

print_version "python3" "--version" "" "head -n 1"
echo

# Find the installed version of Pylint. Installed as a distro package this can
# be pylint3 and as a PEP egg, pylint. In test scripts We prefer pylint over
# pylint3
if type pylint >/dev/null 2>/dev/null; then
print_version "pylint" "--version" "" "sed /^.*config/d" "grep pylint"
elif type pylint3 >/dev/null 2>/dev/null; then
print_version "pylint3" "--version" "" "sed /^.*config/d" "grep pylint"
else
echo " * pylint or pylint3: Not found."
fi
echo

: ${OPENSSL:=openssl}
print_version "$OPENSSL" "version" "default"
echo

if [ -n "${OPENSSL_NEXT+set}" ]; then
print_version "$OPENSSL_NEXT" "version" "next"
else
echo " * openssl (next): Not configured."
fi
echo

: ${GNUTLS_CLI:=gnutls-cli}
print_version "$GNUTLS_CLI" "--version" "default" "head -n 1"
echo

: ${GNUTLS_SERV:=gnutls-serv}
print_version "$GNUTLS_SERV" "--version" "default" "head -n 1"
echo

echo " * Installed asan versions:"
if type dpkg-query >/dev/null 2>/dev/null; then
if ! dpkg-query -f '${Status} ${Package}: ${Version}\n' -W 'libasan*' |
awk '$3 == "installed" && $4 !~ /-/ {print $4, $5}' |
grep .
then
echo " No asan versions installed."
fi
else
echo " Unable to determine the asan version without dpkg."
fi
echo
19 changes: 19 additions & 0 deletions scripts/quiet/cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env bash
#
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#
# This swallows the output of the wrapped tool, unless there is an error.
# This helps reduce excess logging in the CI.

# If you are debugging a build / CI issue, you can get complete unsilenced logs
# by un-commenting the following line (or setting VERBOSE_LOGS in your environment):

# export VERBOSE_LOGS=1

# don't silence invocations containing these arguments
NO_SILENCE=" --version "

TOOL="cmake"

. "$(dirname "$0")/quiet.sh"
19 changes: 19 additions & 0 deletions scripts/quiet/make
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#! /usr/bin/env bash
#
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#
# This swallows the output of the wrapped tool, unless there is an error.
# This helps reduce excess logging in the CI.

# If you are debugging a build / CI issue, you can get complete unsilenced logs
# by un-commenting the following line (or setting VERBOSE_LOGS in your environment):

# export VERBOSE_LOGS=1

# don't silence invocations containing these arguments
NO_SILENCE=" --version | test "

TOOL="make"

. "$(dirname "$0")/quiet.sh"
79 changes: 79 additions & 0 deletions scripts/quiet/quiet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# -*-mode: sh; sh-shell: bash -*-
#
# Copyright The Mbed TLS Contributors
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
#
# This swallows the output of the wrapped tool, unless there is an error.
# This helps reduce excess logging in the CI.

# If you are debugging a build / CI issue, you can get complete unsilenced logs
# by un-commenting the following line (or setting VERBOSE_LOGS in your environment):
#
# VERBOSE_LOGS=1
#
# This script provides most of the functionality for the adjacent make and cmake
# wrappers.
#
# It requires two variables to be set:
#
# TOOL - the name of the tool that is being wrapped (with no path), e.g. "make"
#
# NO_SILENCE - a regex that describes the commandline arguments for which output will not
# be silenced, e.g. " --version | test ". In this example, "make lib test" will
# not be silent, but "make lib" will be.

# Identify path to original tool. There is an edge-case here where the quiet wrapper is on the path via
# a symlink or relative path, but "type -ap" yields the wrapper with it's normalised path. We use
# the -ef operator to compare paths, to avoid picking the wrapper in this case (to avoid infinitely
# recursing).
while IFS= read -r ORIGINAL_TOOL; do
if ! [[ $ORIGINAL_TOOL -ef "$0" ]]; then break; fi
done < <(type -ap -- "$TOOL")

print_quoted_args() {
# similar to printf '%q' "$@"
# but produce more human-readable results for common/simple cases like "a b"
for a in "$@"; do
# Get bash to quote the string
printf -v q '%q' "$a"
simple_pattern="^([-[:alnum:]_+./:@]+=)?([^']*)$"
if [[ "$a" != "$q" && $a =~ $simple_pattern ]]; then
# a requires some quoting (a != q), but has no single quotes, so we can
# simplify the quoted form - e.g.:
# a b -> 'a b'
# CFLAGS=a b -> CFLAGS='a b'
q="${BASH_REMATCH[1]}'${BASH_REMATCH[2]}'"
fi
printf " %s" "$q"
done
}

if [[ ! " $* " =~ " --version " ]]; then
# Display the command being invoked - if it succeeds, this is all that will
# be displayed. Don't do this for invocations with --version, because
# this output is often parsed by scripts, so we don't want to modify it.
printf %s "${TOOL}" 1>&2
print_quoted_args "$@" 1>&2
echo 1>&2
fi

if [[ " $@ " =~ $NO_SILENCE || -n "${VERBOSE_LOGS}" ]]; then
# Run original command with no output supression
exec "${ORIGINAL_TOOL}" "$@"
else
# Run original command and capture output & exit status
TMPFILE=$(mktemp "quiet-${TOOL}.XXXXXX")
"${ORIGINAL_TOOL}" "$@" > "${TMPFILE}" 2>&1
EXIT_STATUS=$?

if [[ $EXIT_STATUS -ne 0 ]]; then
# On error, display the full output
cat "${TMPFILE}"
fi

# Remove tmpfile
rm "${TMPFILE}"

# Propagate the exit status
exit $EXIT_STATUS
fi