feat(cmakev2): Add uf2 target support for cmakev2

This commit adds support for uf2 targets for cmake2. The following
changes have been made:
- Adds a new tools/cmakev2/uf2.cmake.
- Adds the idf_create_uf2() function to create the uf2 targets. This
  function now takes the executable as an argument thus allowing the uf2
  target to be created per-executable.
- idf_project_default() is updated to create the uf2 targets.
This commit is contained in:
Sudeep Mohanty
2025-11-19 14:45:55 +05:30
parent e28a2262f3
commit e5f35bc2d7
3 changed files with 89 additions and 0 deletions
+6
View File
@@ -773,6 +773,12 @@ macro(idf_project_default)
idf_create_save_defconfig()
idf_create_uf2("${executable}"
TARGET uf2)
idf_create_uf2("${executable}"
TARGET uf2-app
APP_ONLY)
idf_build_generate_metadata("${executable}")
unset(build_dir)