diff --git a/docs/platforms/esp32/config_options.md b/docs/platforms/esp32/config_options.md index 6dc94b814b8335..8055efb885c142 100644 --- a/docs/platforms/esp32/config_options.md +++ b/docs/platforms/esp32/config_options.md @@ -15,14 +15,12 @@ CONFIG_LWIP_IPV4=n ### Executable component not in "main" component The ESP-IDF framework allows renaming the main component, which can be useful if -you want to place the app_main() function in a different component. +you want to place the `app_main()` function in a different component. For required changes in the executable component, please refer to the [esp-idf documentation](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/build-system.html#renaming-main-component). -If you're building applications that support Matter and want to place app_main() -in a component other than main, use the following command: - -``` -idf.py -DEXECUTABLE_COMPONENT_NAME="your_component" build -``` +You need to list the required components in `idf_component_register()`. If this +module contains Matter related code, you may need to include +`chip, app_update, spi_flash, and nvs_flash` as `PRIV_REQUIRES`, along with any +other necessary dependencies.