-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FreeRTOS:main' into dev/davhaz01/upgrade_tfm
- Loading branch information
Showing
25 changed files
with
281 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,7 @@ indet | |
inkey | ||
ioremap | ||
iotdeviceadvisor | ||
iotmsw | ||
iounmap | ||
IRIDIX | ||
iridix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,6 +280,19 @@ integration-tests: | |
- git config --global user.email "[email protected]" | ||
- git config --global user.name "ci" | ||
- git config --global core.autocrlf input | ||
# With https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/commit/4471af64de1d481374881917bbba8736b1217530, | ||
# a validation logic has been introduced which checks, if one of the | ||
# address in an IP packet is loopback then both source and destination | ||
# addresses must be loopback. For network interface tests, we run the | ||
# server on the local machine and use loopback interface address in | ||
# integration tests to communicate with the server. This causes | ||
# validation logic to fail, as the destination address in the IP in the | ||
# packet returned by the server is not a loopback address, but instead | ||
# address assigned to the device. As a workaround, we use the ethernet | ||
# interface address of the host machine instead of loopback to | ||
# communicate with the server. | ||
- host_ip_address=`ifconfig eth0 | grep -w 'inet' | awk '{print $2}'` | ||
- sed -i "s/#define ECHO_SERVER_ENDPOINT .*$/#define ECHO_SERVER_ENDPOINT \"$host_ip_address\"/g" applications/freertos_iot_libraries_tests/test_param_config.h | ||
- ./tools/scripts/build.sh ${APP} --target $TARGET --toolchain $TOOLCHAIN --certificate_path $PWD/certificate.pem --private_key_path $PWD/private_key.pem | ||
- pushd components/tools/freertos_libraries_integration_tests/library/tools/echo_server | ||
- go run echo_server.go& | ||
|
@@ -304,6 +317,12 @@ integration-tests: | |
- | ||
<< : [*pipeline_config_corstone300, *pipeline_config_toolchain] | ||
APP: [freertos-iot-libraries-tests] | ||
retry: | ||
max: 2 | ||
when: | ||
- script_failure | ||
- stuck_or_timeout_failure | ||
- runner_system_failure | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
|
@@ -363,6 +382,12 @@ sw-vsi-configs-test: | |
INFERENCE: [SOFTWARE] | ||
AUDIO: [ROM, VSI] | ||
TOOLCHAIN: [ARMCLANG] | ||
retry: | ||
max: 2 | ||
when: | ||
- script_failure | ||
- stuck_or_timeout_failure | ||
- runner_system_failure | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
|
@@ -404,6 +429,12 @@ gnu-toolchain-test: | |
INFERENCE: [ETHOS, SOFTWARE] | ||
AUDIO: [ROM,VSI] | ||
TOOLCHAIN: [GNU] | ||
retry: | ||
max: 2 | ||
when: | ||
- script_failure | ||
- stuck_or_timeout_failure | ||
- runner_system_failure | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ target_link_libraries(freertos_config | |
INTERFACE | ||
tfm-ns-interface | ||
app-config | ||
fri-bsp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ target_link_libraries(freertos_config | |
INTERFACE | ||
tfm-ns-interface | ||
app-config | ||
fri-bsp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ target_link_libraries(freertos_config | |
INTERFACE | ||
tfm-ns-interface | ||
app-config | ||
fri-bsp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ target_link_libraries(freertos_config | |
INTERFACE | ||
tfm-ns-interface | ||
app-config | ||
fri-bsp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,5 +16,4 @@ target_link_libraries(freertos_config | |
INTERFACE | ||
tfm-ns-interface | ||
app-config | ||
fri-bsp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# MbedTLS | ||
|
||
## Overview | ||
|
||
MbedTLS is a lightweight crytographic and SSL/TLS library designed for embedded systems and IoT devices. | ||
|
||
It provides a wide range of cryptographic and security features including: | ||
* SSL/TLS support | ||
* Cryptography | ||
* Certificate handling | ||
* Key Management | ||
* Secure communication | ||
|
||
In the FRI, MbedTLS is a crucial component for ensuring secure communication between IoT devices and | ||
cloud services. It is primarily used for transport layer security, authentication, encryption and certificate management. | ||
|
||
Consult the FRI `manifest.yml` for the currently supported version of MbedTLS. | ||
|
||
## Configuration | ||
|
||
User must provide an MbedTLS configuration file. It can be an empty file or override MbedTLS default [configurations](https://tls.mbed.org/api/config_8h.html). | ||
|
||
The configuration file specified by the application is retrieved by adding the C macro `MBEDTLS_CONFIG_FILE=<filename>` to the `mbedtls-config` target and its include path. | ||
|
||
Example: | ||
|
||
```cmake | ||
target_include_directories(mbedtls-config | ||
INTERFACE | ||
mbedtls-config | ||
) | ||
target_compile_definitions(mbedtls-config | ||
INTERFACE | ||
MBEDTLS_CONFIG_FILE="aws_mbedtls_config.h" | ||
) | ||
``` | ||
|
||
To enable the FreeRTOS threading protection `#define MBEDTLS_THREADING_ALT` should be present in the user provided mbedtls configuration file. | ||
|
||
## Integration | ||
|
||
### FreeRTOS threading support | ||
|
||
The library *`mbedtls-threading-freertos`* is implemented in the FRI to provide a threading implementation for MbedTLS using FreeRTOS threading API. | ||
|
||
The application must call `mbedtls_threading_set_alt()` to enable the multi threading protection. | ||
|
||
### Linking | ||
|
||
In your application's `CMakeLists.txt`, link the application executable against the `mbedtls` library alongside | ||
any other libraries you need: | ||
|
||
```cmake | ||
target_link_libraries(my-application | ||
... | ||
mbedtls | ||
) | ||
``` | ||
|
||
> :bulb: Replace `my-application` with the actual name of your application. | ||
This not only enables the linking of the `mbedtls` static library, but also makes its API headers' include paths | ||
available to your application. | ||
|
||
## Documentation | ||
|
||
For detailed documentation and API reference of MbedTLS, refer to the official [MbedTLS documentation][mbedtls-doc] or [GitHub repository][mbedtls-doc]. | ||
|
||
## Support | ||
|
||
If you encounter any issues or have questions regarding the integration of MbedTLS into your IoT | ||
project, feel free to reach out to the Arm support community or consult the official documentation for | ||
assistance. | ||
|
||
[mbedtls-doc]: https://mbed-tls.readthedocs.io/en/latest/ | ||
[mbedtls-repo]: https://github.com/Mbed-TLS/mbedtls |
Oops, something went wrong.