Skip to content

Commit

Permalink
Merge branch 'master' into change_android_gradle_kotlin_version
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored Feb 3, 2025
2 parents 7feceb3 + dd0ce89 commit dae1e6f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/platforms/esp32/config_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit dae1e6f

Please sign in to comment.