Skip to content

Commit e943bd7

Browse files
configs/README.txt: Improve example with MBEDTLS/TF_PSA_CRYPTO_CONFIG_FILE
Signed-off-by: Ronald Cron <[email protected]>
1 parent 74a4984 commit e943bd7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

configs/README.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ To use one of these pairs, you can pick one of the following methods:
1515
1. Replace the default files include/mbedtls/mbedtls_config.h and
1616
tf-psa-crypto/include/psa/crypto_config.h with the chosen ones.
1717

18-
2. Use the MBEDTLS_CONFIG_FILE and TF_PSA_CRYPTO_CONFIG_FILE options of the
19-
CMake build system:
18+
2. Use the MBEDTLS_CONFIG_FILE and TF_PSA_CRYPTO_CONFIG_FILE CMake options. For
19+
example, to build out-of-tree with the config-ccm-psk-tls1_2.h and
20+
crypto-config-ccm-psk-tls1_2.h configuration pair:
2021

21-
cmake -DMBEDTLS_CONFIG_FILE="path-to-your-mbedtls-config-file" \
22-
-DTF_PSA_CRYPTO_CONFIG_FILE="path-to-your-tf-psa-crypto-config-file" .
23-
make
22+
cmake -DMBEDTLS_CONFIG_FILE="configs/config-ccm-psk-tls1_2.h" \
23+
-DTF_PSA_CRYPTO_CONFIG_FILE="configs/crypto-config-ccm-psk-tls1_2.h"
24+
-B build-psktls12 .
25+
cmake --build build-psktls12
2426

2527
The second method also works if you want to keep your custom configuration
2628
files outside the Mbed TLS tree.

0 commit comments

Comments
 (0)