esp-idf/tools/cmake
Frantisek Hrbata 53f271ce10 tools: extend information in project_description.json
This extends information provided in the project_description.json file.
Newly added information can be used in the SBOM generating tool and
also to improve hints regarding the the component dependency issues.

Added fields

version:
   This adds versioning to the project_description.json file,
   so it's easy to identify if it contains the required information.

project_version:
   Can be used as a version for the resulting binary e.g. `hello_world.bin`.

idf_path:
   This one is probably not necessary, but it allows tools to run even without
   esp-idf environment exported(e.g. export.sh).

c_compiler:
   The `CMAKE_C_COMPILER` value with full path to the compiler binary. This can
   be used to get information about toolchain, which was used to build the project.

common_component_reqs:
   List of common components as presented in cmake's __COMPONENT_REQUIRES_COMMON
   and set in tools/cmake/build.cmake:__build_init().

build_component_info:
   Detailed information about components used during build. It's a
   dictionary with the component name as a key and each component has
   a dictionary with detailed information. Following is an example for
   the efuse component.

   "efuse": {
       "alias": "idf::efuse",
       "target": "___idf_efuse",
       "prefix": "idf",
       "dir": "/home/fhrbata/work/esp-idf/components/efuse",
       "type": "LIBRARY",
       "lib": "__idf_efuse",
       "reqs": [],
       "priv_reqs": [ "bootloader_support", "soc", "spi_flash" ],
       "managed_reqs": [],
       "managed_priv_reqs": [],
       "file": "/home/fhrbata/work/blink/build/esp-idf/efuse/libefuse.a",
       "sources": [ "/home/fhrbata/work/esp-idf/components/efuse/esp32s3/esp_efuse_table.c", ... ],
       "include_dirs": [ "include", "esp32s3/include" ]
   }

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2023-06-08 18:35:00 +02:00
..
scripts
third_party
build.cmake
component.cmake
convert_to_cmake.py
crosstool_version_check.cmake
dfu.cmake
git_submodules.cmake
idf.cmake
kconfig.cmake
ldgen.cmake
project.cmake tools: extend information in project_description.json 2023-06-08 18:35:00 +02:00
project_description.json.in tools: extend information in project_description.json 2023-06-08 18:35:00 +02:00
run_dfu_util.cmake
targets.cmake
toolchain-clang-esp32.cmake
toolchain-clang-esp32s2.cmake
toolchain-esp32.cmake
toolchain-esp32c3.cmake
toolchain-esp32h2.cmake
toolchain-esp32s2.cmake
toolchain-esp32s3.cmake
toolchain-linux.cmake
uf2.cmake
utilities.cmake
version.cmake