Skip to content

Commit a2850b2

Browse files
ArekBalysNordicanangl
authored andcommitted
[nrf noup] Align factory data guide to sysbuild
- Aligned all kconfigs to the new provided by sysbuild.
1 parent 03ae77d commit a2850b2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/guides/nrfconnect_factory_data_configuration.md

+11-11
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
@@ -783,10 +783,10 @@ directory and build the example with the following option (replace
783783
`nrf52840dk_nrf52840` with your board name):
784784
785785
```
786-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DCONFIG_CHIP_FACTORY_DATA_BUILD=y
786+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y -DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y
787787
```
788788
789-
Alternatively, you can also add `CONFIG_CHIP_FACTORY_DATA_BUILD=y` Kconfig
789+
Alternatively, you can also add `SB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y` Kconfig
790790
setting to the example's `prj.conf` file.
791791
792792
Each factory data parameter has a default value. These are described in the
@@ -802,7 +802,7 @@ them as an additional option for the west command. For example (replace
802802
`nrf52840dk_nrf52840` with own board name):
803803
804804
```
805-
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DCONFIG_CHIP_FACTORY_DATA_BUILD=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
805+
$ west build -b nrf52840dk_nrf52840 -- -DCONFIG_CHIP_FACTORY_DATA=y --DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y --DCONFIG_CHIP_DEVICE_DISCRIMINATOR=0xF11
806806
```
807807
808808
Alternatively, you can add the relevant Kconfig option lines to the example's
@@ -916,32 +916,32 @@ $ nrfjprog --family NRF52 --program factory_data.hex
916916
```
917917
918918
> Note: For more information about how to use the `nrfjprog` utility, visit
919-
> [Nordic Semiconductor's Infocenter](https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf_cltools%2FUG%2Fcltools%2Fnrf_nrfjprogexe.html).
919+
> [Programming SoCs with nrfjprog](https://docs.nordicsemi.com/bundle/ug_nrf_cltools/page/UG/cltools/nrf_nrfjprogexe.html)
920920
921921
Another way to program the factory data to a device is to use the nRF Connect
922922
platform build system described in
923923
[Building an example with factory data](#building-an-example-with-factory-data),
924924
and build an example with the additional option
925-
`-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y`:
925+
`-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y`:
926926
927927
```
928928
$ west build -b nrf52840dk_nrf52840 -- \
929929
-DCONFIG_CHIP_FACTORY_DATA=y \
930-
-DCONFIG_CHIP_FACTORY_DATA_BUILD=y \
931-
-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y
930+
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
931+
-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y
932932
```
933933
934934
You can also build an example with auto-generation of new CD, DAC and PAI
935935
certificates. The newly generated certificates will be added to factory data set
936936
automatically. To generate new certificates disable using default certificates
937937
by building an example with the additional option
938-
`-DCHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n`:
938+
`-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n`:
939939
940940
```
941941
$ west build -b nrf52840dk_nrf52840 -- \
942942
-DCONFIG_CHIP_FACTORY_DATA=y \
943-
-DCONFIG_CHIP_FACTORY_DATA_BUILD=y \
944-
-DCONFIG_CHIP_FACTORY_DATA_MERGE_WITH_FIRMWARE=y \
943+
-DSB_CONFIG_MATTER_FACTORY_DATA_GENERATE=y \
944+
-DSB_CONFIG_MATTER_FACTORY_DATA_MERGE_WITH_FIRMWARE=y \
945945
-DCONFIG_CHIP_FACTORY_DATA_USE_DEFAULT_CERTS=n
946946
```
947947

0 commit comments

Comments
 (0)