Commit Graph

12 Commits

Author SHA1 Message Date
Sudeep Mohanty
1d56d59a82 ci(cmakev2): restore clang builds for import_lib example
The cmakev2/features/import_lib example now builds cleanly with
clang. Restore it to the supported target matrix and re-enable it
in CI.
2026-04-17 13:49:05 +02:00
Marius Vikhammer
8c16332fa4 ci(build_sys): disable import lib test app for cmake v2 2026-04-14 10:27:33 +08:00
Sudeep Mohanty
e364a60769 test(cmakev2): add pytest scripts for cmakev2 build system examples
Add pytest test coverage for cmakev2 build system examples that had
none.

CMakeLists.txt fixes required to enable testing:

conditional_component and plugins: added idf_build_generate_flasher_args()
since these use the low-level build API (idf_build_executable /
idf_flash_binary) which unlike idf_project_default() does not call it
automatically. Without it, flasher_args.json was missing from the build
output and pytest-embedded could not initialize the DUT.

multi_binary: both app1 and app2 were registered in the global flash
target via idf_flash_binary(...FLASH), creating a duplicate key at offset
0x10000 in the flasher_args.json generator expression and preventing the
file from being generated. Fixed by removing FLASH from app2's call so
only app1 is registered in the global flash target. idf_build_generate_flasher_args()
now produces a valid flasher_args.json with app1 as the default app binary.
The test patches the binary path to app2.bin when testing the second app.
2026-04-10 13:49:56 +02:00
Sudeep Mohanty
c735d9beb9 feat(cmakev2): Added import_lib_direct example for cmakev2
This commit adds a new example at
examples/build_system/cmakev2/features/import_lib_direct to
demonstrate the cmakev2 ability to integrate with external CMake
projects easily.
2026-02-24 11:21:20 +01:00
Sudeep Mohanty
fa57ea1a10 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.
2026-02-24 11:21:20 +01:00
Sudeep Mohanty
390ce6a832 feat(cmakev2): Added conditional_component example for cmakev2
This commit adds a new example at
examples/build_system/cmakev2/features/conditional_components to
demonstrate the cmakev2 ability to conditionally include components in
the build based on Kconfig options.
2026-02-24 11:21:20 +01:00
Sudeep Mohanty
249f3b167f feat(cmakev2): Added plugins example for cmakev2
This commit updates the examples/build_system/cmake/plugins
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/plugins.
2026-02-24 11:21:19 +01:00
Sudeep Mohanty
1580f7695b feat(cmakev2): Added multi_config example for cmakev2
This commit updates the examples/build_system/cmake/multi_config
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/multi_config.
2026-02-24 11:21:19 +01:00
Sudeep Mohanty
d9aa6adbfc feat(cmakev2): Added import_prebuilt example for cmakev2
This commit updates the examples/build_system/cmake/import_prebuilt
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/import_prebuilt.
2026-02-24 11:21:19 +01:00
Sudeep Mohanty
5d7fdc7c78 feat(cmakev2): Added import_lib example for cmakev2
This commit updates the examples/build_system/cmake/import_lib
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/import_lib.
2026-02-24 11:21:19 +01:00
Sudeep Mohanty
8a1d5f98f9 feat(cmakev2): Added component_manager example for cmakev2
This commit updates the examples/build_system/cmake/component_manager
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/component_manager.
2026-02-24 11:21:19 +01:00
Sudeep Mohanty
db33ccc5c1 feat(cmakev2): Added idf_as_lib example for cmakev2
This commit updates the examples/build_system/cmake/idf_as_lib
example for the new build system and adds the newly created example at
examples/build_system/cmakev2/features/idf_as_lib.
2026-02-24 11:21:19 +01:00