Skip to content

Commit 4f42732

Browse files
ArekBalysNordickkasperczyk-no
authored andcommitted
samples: matter: Fix factory data generation
Fixed the factory data generation in all samples. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent b5f3fcd commit 4f42732

17 files changed

Lines changed: 37 additions & 28 deletions

File tree

‎docs/include/configuration/advanced/factory_data.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Factory data support
99
To disable factory data support, set the following Kconfig options to ``n``:
1010

1111
* :kconfig:option:`CONFIG_CHIP_FACTORY_DATA`
12-
* :kconfig:option:`SB_CONFIG_MATTER_FACTORY_DATA_GENERATE`
12+
* :kconfig:option:`SB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE`
1313

1414
To learn more about factory data, read the :ref:`ug_matter_device_factory_provisioning` user guide.

‎docs/matter/end_product/factory_provisioning.rst‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ For example, the build command for the nRF52840 DK could look like this:
656656
657657
$ west build -b nrf52840dk_nrf52840 -- \
658658
-DCONFIG_CHIP_FACTORY_DATA=y \
659-
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
659+
-DSB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=y \
660660
-DCONFIG_CHIP_FACTORY_DATA_GENERATE_ONBOARDING_CODES=y
661661
662662
Preparing factory data partition on a device
@@ -799,9 +799,9 @@ To enable generating the factory data set automatically, go to the example's dir
799799
.. parsed-literal::
800800
:class: highlight
801801
802-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y
802+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DSB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=y
803803
804-
Alternatively, you can also add the :kconfig:option:`SB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y` Kconfig setting to the example's :file:`sysbuild.conf` file.
804+
Alternatively, you can also add the :kconfig:option:`SB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=y` Kconfig setting to the example's :file:`sysbuild.conf` file.
805805

806806
Each factory data parameter has a default value.
807807
These are described in the `Matter nRF Connect Kconfig`_.
@@ -817,7 +817,7 @@ For example (replace ``nrf52840dk_nrf52840`` with own board name):
817817
.. parsed-literal::
818818
:class: highlight
819819
820-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
820+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DSB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
821821
822822
Alternatively, you can add the relevant Kconfig option lines to the example's :file:`prj.conf` file.
823823

@@ -917,7 +917,7 @@ To generate new certificates disable using default certificates by building an e
917917
918918
$ west build -b nrf52840dk_nrf52840 -- \
919919
-DCONFIG_CHIP_FACTORY_DATA=y \
920-
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
920+
-DSB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=y \
921921
-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y \
922922
-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n
923923
@@ -989,10 +989,10 @@ To override the inherited classes, complete the following steps:
989989
#. Disable building both the default and the nRF Connect implementations of factory data providers to start using your own implementation of factory data parser and provider.
990990
This can be done in one of the following ways:
991991

992-
* Set the :option:`CONFIG_CHIP_FACTORY_DATA_CUSTOM_BACKEND` Kconfig option to ``y`` in the :file:`prj.conf` file and the :kconfig:option:`SB_CONFIG_MATTER_FACTORY_DATA_GENERATE` Kconfig option to ``n``.
992+
* Set the :option:`CONFIG_CHIP_FACTORY_DATA_CUSTOM_BACKEND` Kconfig option to ``y`` in the :file:`prj.conf` file and the :kconfig:option:`SB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE` Kconfig option to ``n``.
993993
* Build an example with the following option (replace ``<build_target>`` with your board name, for example ``nrf52840dk_nrf52840``):
994994

995995
.. parsed-literal::
996996
:class: highlight
997997
998-
$ west build -b <build_target> -- -DCONFIG_CHIP_FACTORY_DATA_CUSTOM_BACKEND=y -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=n
998+
$ west build -b <build_target> -- -DCONFIG_CHIP_FACTORY_DATA_CUSTOM_BACKEND=y -DSB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE=n

‎docs/matter/end_product/test_event_triggers.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ You cannot set the enable key to a specific value using factory data unless the
212212
If it is not set, the default value ``00112233445566778899AABBCCDDEEFF`` will be used.
213213
For secure operation, you need to ensure that the enable key is unique for all of your devices.
214214

215-
To specify the enable key through the build system, enable the :kconfig:option:`SB_CONFIG_MATTER_FACTORY_DATA_GENERATE` Kconfig option by setting it to ``y``.
215+
To specify the enable key through the build system, enable the :kconfig:option:`SB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE` Kconfig option by setting it to ``y``.
216216
Then, set the :kconfig:option:`CONFIG_CHIP_DEVICE_ENABLE_KEY` Kconfig option to a 32-byte hexadecimal string value.
217217

218-
If :kconfig:option:`SB_CONFIG_MATTER_FACTORY_DATA_GENERATE` is set to ``n``, follow the :ref:`ug_matter_device_factory_provisioning` guide in the Matter documentation to generate the factory data set with the specific key value.
218+
If :kconfig:option:`SB_CONFIG_MATTER_ADD_ON_FACTORY_DATA_GENERATE` is set to ``n``, follow the :ref:`ug_matter_device_factory_provisioning` guide in the Matter documentation to generate the factory data set with the specific key value.
219219

220220
If you do not use the |NCS| Matter common module, you need to read the enable key value manually from the factory data set and provide it to the ``TestEventTrigger`` class.
221221

‎samples/bridge/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ endif # SOC_SERIES_NRF53
5555
endif # BOOTLOADER_MCUBOOT
5656

5757
#### Enable generating factory data
58-
config MATTER_FACTORY_DATA_GENERATE
58+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
5959
default y
6060

6161
source "share/sysbuild/Kconfig"

‎samples/closure/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif # SOC_SERIES_NRF53
5656
endif # BOOTLOADER_MCUBOOT
5757

5858
#### Enable generating factory data
59-
config MATTER_FACTORY_DATA_GENERATE
59+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6060
default y
6161

6262
source "share/sysbuild/Kconfig"

‎samples/contact_sensor/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ endif # SOC_SERIES_NRF53
5959
endif # BOOTLOADER_MCUBOOT
6060

6161
#### Enable generating factory data
62-
config MATTER_FACTORY_DATA_GENERATE
62+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6363
default y
6464

6565
source "share/sysbuild/Kconfig"

‎samples/light_bulb/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif # SOC_SERIES_NRF53
5656
endif # BOOTLOADER_MCUBOOT
5757

5858
#### Enable generating factory data
59-
config MATTER_FACTORY_DATA_GENERATE
59+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6060
default y if !BOARD_NRF21540DK
6161

6262
source "share/sysbuild/Kconfig"

‎samples/light_switch/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif # SOC_SERIES_NRF53
5656
endif # BOOTLOADER_MCUBOOT
5757

5858
#### Enable generating factory data
59-
config MATTER_FACTORY_DATA_GENERATE
59+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6060
default y if !BOARD_NRF21540DK
6161

6262
source "share/sysbuild/Kconfig"

‎samples/manufacturer_specific/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif # SOC_SERIES_NRF53
5656
endif # BOOTLOADER_MCUBOOT
5757

5858
#### Enable generating factory data
59-
config MATTER_FACTORY_DATA_GENERATE
59+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6060
default y
6161

6262
source "$(ZEPHYR_BASE)/share/sysbuild/Kconfig"

‎samples/smoke_co_alarm/Kconfig.sysbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ endif # SOC_SERIES_NRF53
5656
endif # BOOTLOADER_MCUBOOT
5757

5858
#### Enable generating factory data
59-
config MATTER_FACTORY_DATA_GENERATE
59+
config MATTER_ADD_ON_FACTORY_DATA_GENERATE
6060
default y
6161

6262
source "share/sysbuild/Kconfig"

0 commit comments

Comments
 (0)