Skip to content

Restructure Mbed TLS #13385

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

Merged
merged 7 commits into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion .astyleignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
^connectivity/libraries/mbed-coap
^connectivity/libraries/ppp
^connectivity/drivers/emac
^connectivity/drivers/mbedtls
^connectivity/mbedtls
^features/cryptocell
^features/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_MBED_PSA_SRV
^features/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM
^features/frameworks
^connectivity/lwipstack/lwip
^connectivity/lwipstack/lwip-sys
^features/mbedtls
^connectivity/nanostack/sal-stack-nanostack/source/Service_Libs/mdns/fnet
^connectivity/nanostack/sal-stack-nanostack-eventloop
^storage/filesystem/fat/ChaN
Expand Down
2 changes: 2 additions & 0 deletions TESTS/configs/baremetal.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"psa",
"psa-services",
"mbedtls",
"mbedtls-stm",
"mbedtls-nuvoton",
"psa-compliance-framework",
"filesystem",
"littlefs",
Expand Down
4 changes: 2 additions & 2 deletions UNITTESTS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ set(unittest-includes-base
"${PROJECT_SOURCE_DIR}/../features/lorawan/lorastack/mac"
"${PROJECT_SOURCE_DIR}/../features/lorawan/lorastack/phy"
"${PROJECT_SOURCE_DIR}/../features/lorawan/system"
"${PROJECT_SOURCE_DIR}/../features/mbedtls"
"${PROJECT_SOURCE_DIR}/../features/mbedtls/inc"
"${PROJECT_SOURCE_DIR}/../connectivity/mbedtls"
"${PROJECT_SOURCE_DIR}/../connectivity/mbedtls/include"
)

# Create a list for test suites.
Expand Down
4 changes: 2 additions & 2 deletions UNITTESTS/empty_baseline/unittest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
set(unittest-includes ${unittest-includes}
.
..
../features/mbedtls/inc/mbedtls/
../features/mbedtls/platform/inc/
../connectivity/mbedtls/include/mbedtls/
../connectivity/mbedtls/platform/inc/
../features/frameworks/mbed-trace/mbed-trace/
)

Expand Down
3 changes: 3 additions & 0 deletions connectivity/drivers/mbedtls/TARGET_Cypress/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "mbedtls-cypress"
}
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ unsigned char mbedtls_internal_ecp_grp_capable( const mbedtls_ecp_group *grp )
{
/* Support only short Weierstrass type
*
* ECP type is checked by referring to mbed-os/features/mbedtls/src/ecp.c > ecp_get_type
* ECP type is checked by referring to mbed-os/connectivity/mbedtls/src/ecp.c > ecp_get_type
*/
if (grp->G.X.p == NULL || grp->G.Y.p == NULL) {
return 0;
Expand Down
3 changes: 3 additions & 0 deletions connectivity/drivers/mbedtls/TARGET_NUVOTON/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "mbedtls-nuvoton"
}
3 changes: 3 additions & 0 deletions connectivity/drivers/mbedtls/TARGET_STM/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "mbedtls-stm"
}
3 changes: 3 additions & 0 deletions connectivity/drivers/mbedtls/TARGET_Samsung/mbed_lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "mbedtls-samsung"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "mbedtls-siliconlabs"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doxyfile_options
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ EXCLUDE_PATTERNS = */tools/* \
*/cmsis/* \
*/connectivity/drivers/emac/* \
*/features/cryptocell/* \
*/features/mbedtls/* \
*/connectivity/mbedtls/* \
*/features/unsupported/* \
*/connectivity/lwipstack/* \
*/connectivity/nanostack/sal-stack-nanostack/* \
Expand Down
2 changes: 1 addition & 1 deletion doxygen_options.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"EXPAND_AS_DEFINED": "",
"SKIP_FUNCTION_MACROS": "NO",
"STRIP_CODE_COMMENTS": "NO",
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */features/mbedtls/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/lwipstack/* */nanostack/sal-stack-nanostack/* */nanostack/coap-service/* */ble/generic/* */ble/pal/* */mbed-trace/* */mbed-coap/* */nanostack-libservice/* */mbed-client-randlib/* */nanostack/sal-stack-nanostack-eventloop/* */connectivity/drivers/802.15.4_RF/* */components/wifi/* */features/nfc/stack/* */UNITTESTS/* */features/cryptocell/*",
"EXCLUDE_PATTERNS": "*/tools/* */targets/* */connectivity/mbedtls/* */features/unsupported/* */BUILD/* */rtos/TARGET_CORTEX/rtx*/* */cmsis/* */features/lwipstack/* */nanostack/sal-stack-nanostack/* */nanostack/coap-service/* */ble/generic/* */ble/pal/* */mbed-trace/* */mbed-coap/* */nanostack-libservice/* */mbed-client-randlib/* */nanostack/sal-stack-nanostack-eventloop/* */connectivity/drivers/802.15.4_RF/* */components/wifi/* */features/nfc/stack/* */UNITTESTS/* */features/cryptocell/*",
"ALPHABETICAL_INDEX": "NO",
"CASE_SENSE_NAMES": "NO",
"DOT_MULTI_TARGETS": "YES",
Expand Down