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

openthread: kconfig: optimize FTD and MTD configurations #13012

Merged
merged 2 commits into from
Nov 22, 2023
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
16 changes: 8 additions & 8 deletions doc/nrf/protocols/thread/prebuilt_libs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ For more information about Thread 1.2 features, see the `Thread 1.2 Base Feature
-
* - DHCP6_CLIENT
- ✔
-
-
-
-
-
* - ECDSA
- ✔
Expand All @@ -116,8 +116,8 @@ For more information about Thread 1.2 features, see the `Thread 1.2 Base Feature
-
* - JOINER
- ✔
-
-
-
-
-
* - LINK_RAW
- ✔
Expand Down Expand Up @@ -146,8 +146,8 @@ For more information about Thread 1.2 features, see the `Thread 1.2 Base Feature
-
* - SNTP_CLIENT
- ✔
-
-
-
-
-
* - SRP_CLIENT
- ✔
Expand Down Expand Up @@ -176,8 +176,8 @@ For more information about Thread 1.2 features, see the `Thread 1.2 Base Feature
-
* - LINK_METRICS_INITIATOR (Thread 1.2)
- ✔
-
-
-
-
-
* - LINK_METRICS_SUBJECT (Thread 1.2)
- ✔
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@ Thread samples

* Changed building method to use :ref:`zephyr:snippets` for predefined configuration.

* In the :ref:`thread_ug_feature_sets` provided as part of the |NCS|, the following features have been removed from the FTD and MTD variants:

* ``DHCP6_CLIENT``
* ``JOINER``
* ``SNTP_CLIENT``
* ``LINK_METRICS_INITIATOR``

All mentioned features are still available in the master variant.

Sensor samples
--------------

Expand Down
10 changes: 5 additions & 5 deletions subsys/net/openthread/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ config OPENTHREAD_NRF_SECURITY_PSA
select EXPERIMENTAL
select NRF_SECURITY
select MBEDTLS_ENABLE_HEAP
select MBEDTLS_TLS_LIBRARY
select MBEDTLS_TLS_LIBRARY if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)
select MBEDTLS_PSA_CRYPTO_STORAGE_C if !BUILD_WITH_TFM
select PSA_NATIVE_ITS if !BUILD_WITH_TFM
select PSA_WANT_ALG_HKDF
Expand All @@ -43,8 +43,8 @@ config OPENTHREAD_NRF_SECURITY_PSA
select PSA_WANT_ALG_HMAC
select PSA_WANT_ALG_ECB_NO_PADDING
select PSA_WANT_ALG_SHA_256
select PSA_WANT_ALG_JPAKE
select PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS
select PSA_WANT_ALG_JPAKE if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER)
select PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER)
select PSA_WANT_ALG_DETERMINISTIC_ECDSA if OPENTHREAD_ECDSA
select PSA_WANT_ALG_ECDSA if OPENTHREAD_ECDSA
select PSA_WANT_ALG_ECDH if OPENTHREAD_ECDSA
Expand All @@ -69,11 +69,11 @@ config OPENTHREAD_NRF_SECURITY
select MBEDTLS_ECDSA_C if OPENTHREAD_ECDSA
select MBEDTLS_PK_C if OPENTHREAD_ECDSA
select MBEDTLS_PK_WRITE_C if OPENTHREAD_ECDSA
select MBEDTLS_ECJPAKE_C
select MBEDTLS_ECJPAKE_C if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER)
select MBEDTLS_ECP_C
select MBEDTLS_ECP_DP_SECP256R1_ENABLED
select MBEDTLS_HMAC_DRBG_C
select MBEDTLS_TLS_LIBRARY
select MBEDTLS_TLS_LIBRARY if (OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)
select NORDIC_SECURITY_BACKEND
select NRF_SECURITY_ADVANCED
select OBERON_BACKEND if !CC3XX_BACKEND
Expand Down
15 changes: 14 additions & 1 deletion subsys/net/openthread/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ config OPENTHREAD_LIBRARY_AVAILABLE
# Switch:
# - To `y` when libraries for the current OpenThread revision are provided
# - To `n` on the next OpenThread upmerge
default y
default n
depends on OPENTHREAD_THREAD_VERSION_1_3
depends on OPENTHREAD_NORDIC_LIBRARY_FTD || OPENTHREAD_NORDIC_LIBRARY_MTD
depends on !OPENTHREAD_COPROCESSOR
Expand Down Expand Up @@ -84,6 +84,7 @@ endchoice

config MBEDTLS_SSL_PROTO_DTLS
bool
default n if !(OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)
default y

config MBEDTLS_ENTROPY_C
Expand Down Expand Up @@ -150,6 +151,18 @@ config MBEDTLS_SSL_COOKIE_C

endif # !(OPENTHREAD_BORDER_AGENT || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)

if !(OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)

config MBEDTLS_SSL_CLI_C
bool
default n

config MBEDTLS_SSL_TLS_C
bool
default n

endif # !(OPENTHREAD_JOINER || OPENTHREAD_COMMISSIONER || OPENTHREAD_COAPS)

# Note: MBEDTLS_HEAP_SIZE value for OPENTHREAD_NRF_SECURITY_PSA is experimental.
# It might be changed in the future.
config MBEDTLS_HEAP_SIZE
Expand Down
4 changes: 2 additions & 2 deletions west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ manifest:
- name: nrfxlib
repo-path: sdk-nrfxlib
path: nrfxlib
revision: 3266a76862560101783bf117b4d4939fce642783
revision: 85089419ef582ab0db6546c8c679488b1073b38a
- name: trusted-firmware-m
repo-path: sdk-trusted-firmware-m
path: modules/tee/tf-m/trusted-firmware-m
revision: 13330e26f67864dbe1e735219d97ec6ec34b5580
- name: matter
repo-path: sdk-connectedhomeip
path: modules/lib/matter
revision: 6da1696964340e9f2435024365c25197eb7e0b3b
revision: 1b161385287dd9ea829b158c7f4e7f6ca769e9a0
submodules:
- name: nlio
path: third_party/nlio/repo
Expand Down
Loading