Skip to content

Commit

Permalink
[nrf fromlist] [nrfconnect] Add kconfig for enabling Read Client
Browse files Browse the repository at this point in the history
To save some FLASH and RAM memory space we can disable Read Client
functionality in nrfconnect samples.
This commit adds kconfig to enable or disable Read Client
in the Interaction Model.
  • Loading branch information
ArekBalysNordic committed Dec 19, 2023
1 parent d97e091 commit d95eb1d
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ matter_add_gn_arg_bool ("chip_system_config_provide_statistics" CONFIG_CHIP_ST
matter_add_gn_arg_bool ("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT)
matter_add_gn_arg_bool ("chip_mdns_minimal" CONFIG_WIFI_NRF700X)
matter_add_gn_arg_bool ("chip_mdns_platform" CONFIG_NET_L2_OPENTHREAD)
matter_add_gn_arg_bool ("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)

if (CONFIG_CHIP_FACTORY_DATA)
matter_add_gn_arg_bool("chip_use_transitional_commissionable_data_provider" FALSE)
Expand Down
7 changes: 7 additions & 0 deletions config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,11 @@ config CHIP_OPENTHREAD_JOINER_ENABLED
If disabled, it allows to optimize memory usage even if Thread Joiner
support is enabled.

config CHIP_ENABLE_READ_CLIENT
bool "Enable Read Client in the Interaction Model"
help
Enable support for Read Client in the Interaction Model.
This config can be disabled for device types that do not require Read Client functionality.
Disabling this config can save flash and RAM space.

endif # CHIP
3 changes: 3 additions & 0 deletions examples/all-clusters-app/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ CONFIG_CHIP_OTA_REQUESTOR=n

# Disable QSPI NOR
CONFIG_CHIP_QSPI_NOR=n

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/all-clusters-app/nrfconnect/prj_dfu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ CONFIG_ASSERT_NO_MSG_INFO=y
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/all-clusters-app/nrfconnect/prj_release.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ CONFIG_BOOT_BANNER=n
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ CONFIG_USE_SEGGER_RTT=n
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj_no_dfu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ CONFIG_CHIP_OTA_REQUESTOR=n

# Disable QSPI NOR
CONFIG_CHIP_QSPI_NOR=n

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions examples/light-switch-app/nrfconnect/prj_release.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ CONFIG_BOOT_BANNER=n
# Enable Factory Data feature
CONFIG_CHIP_FACTORY_DATA=y
CONFIG_CHIP_FACTORY_DATA_BUILD=y

# Enable the Read Client for binding purposes
CONFIG_CHIP_ENABLE_READ_CLIENT=y
3 changes: 3 additions & 0 deletions src/test_driver/nrfconnect/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ CONFIG_CHIP_BUILD_TESTS=y
CONFIG_CHIP_ENABLE_DNSSD_SRP=n
CONFIG_CHIP_DEVICE_VENDOR_ID=65521
CONFIG_CHIP_DEVICE_PRODUCT_ID=32768

# Enable the Read Client
CONFIG_CHIP_ENABLE_READ_CLIENT=y

0 comments on commit d95eb1d

Please sign in to comment.