mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(cmakev2): Added multi_binary example for cmakev2
This commit adds a new example at examples/build_system/cmakev2/features/multi_binary to demonstrate the cmakev2 ability to build multiple binaries in a single CMake project.
This commit is contained in:
committed by
Frantisek Hrbata
parent
1a51a0ad01
commit
66851c702e
@@ -167,6 +167,21 @@ Demonstrates the use of the Kconfig configuration system to conditionally includ
|
||||
|
||||
**When to use:** When you need to build applications or components that must conditionally depend on other components based on `sdkconfig` options.
|
||||
|
||||
---
|
||||
|
||||
### multi_binary
|
||||
**Location:** [multi_binary](./features/multi_binary/)
|
||||
|
||||
Demonstrates building multiple independent firmware binaries from a single project in one build command.
|
||||
|
||||
**Build:** `idf.py build` creates both `app1.bin` and `app2.bin`
|
||||
**Flash App1:** `idf.py app1-flash monitor`
|
||||
**Flash App2:** `idf.py app2-flash monitor`
|
||||
|
||||
**Key Concepts:** `idf_build_executable()`, `idf_build_binary()`, `idf_flash_binary()`, conditional component linking, Kconfig integration, multiple entry points
|
||||
|
||||
**When to use:** Creating firmware variants with different features, manufacturing test firmware, or developing modular applications with compile-time configurable behavior.
|
||||
|
||||
## Build System v2 API Quick Reference
|
||||
|
||||
### Project Setup
|
||||
|
||||
Reference in New Issue
Block a user