Skip to content

Commit 2048e70

Browse files
[nrf noup] Align factory data guide to sysbuild
- Aligned all kconfigs to the new provided by sysbuild.
1 parent 5a2937c commit 2048e70

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

docs/guides/nrfconnect_factory_data_configuration.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ For example, the build command for the nRF52840 DK could look like this:
635635
```
636636
$ west build -b nrf52840dk_nrf52840 -- \
637637
-DCONFIG_CHIP_FACTORY_DATA=y \
638-
-DCONFIG_CHIP_FACTORY_DATA_BUILD=y \
638+
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
639639
-DCONFIG_CHIP_FACTORY_DATA_GENERATE_ONBOARDING_CODES=y
640640
```
641641
@@ -778,15 +778,17 @@ is to use the nRF Connect platform build system that creates factory data
778778
content automatically using Kconfig options and includes the content in the
779779
final firmware binary.
780780
781+
Warning, from NCS 2.7.0 release if you modify any of the factory data-related Kconfig option you need to build a Matter sample with the pristine option to clear the CMake cache or clear the cache manually.
782+
781783
To enable generating the factory data set automatically, go to the example's
782784
directory and build the example with the following option (replace
783785
`nrf52840dk_nrf52840` with your board name):
784786
785787
```
786-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DCONFIG_CHIP_FACTORY_DATA_BUILD=y
788+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y
787789
```
788790
789-
Alternatively, you can also add `CONFIG_CHIP_FACTORY_DATA_BUILD=y` Kconfig
791+
Alternatively, you can also add `SB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y` Kconfig
790792
setting to the example's `prj.conf` file.
791793
792794
Each factory data parameter has a default value. These are described in the
@@ -802,7 +804,7 @@ them as an additional option for the west command. For example (replace
802804
`nrf52840dk_nrf52840` with own board name):
803805
804806
```
805-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DCONFIG_CHIP_FACTORY_DATA_BUILD=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
807+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
806808
```
807809
808810
Alternatively, you can add the relevant Kconfig option lines to the example's
@@ -922,26 +924,26 @@ Another way to program the factory data to a device is to use the nRF Connect
922924
platform build system described in
923925
[Building an example with factory data](#building-an-example-with-factory-data),
924926
and build an example with the additional option
925-
`-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y`:
927+
`-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y`:
926928
927929
```
928930
$ west build -b nrf52840dk_nrf52840 -- \
929931
-DCONFIG_CHIP_FACTORY_DATA=y \
930-
-DCONFIG_CHIP_FACTORY_DATA_BUILD=y \
931-
-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y
932+
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
933+
-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y
932934
```
933935
934936
You can also build an example with auto-generation of new CD, DAC and PAI
935937
certificates. The newly generated certificates will be added to factory data set
936938
automatically. To generate new certificates disable using default certificates
937939
by building an example with the additional option
938-
`-DCHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n`:
940+
`-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n`:
939941
940942
```
941943
$ west build -b nrf52840dk_nrf52840 -- \
942944
-DCONFIG_CHIP_FACTORY_DATA=y \
943-
-DCONFIG_CHIP_FACTORY_DATA_BUILD=y \
944-
-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y \
945+
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
946+
-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y \
945947
-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n
946948
```
947949

0 commit comments

Comments
 (0)