2019-08-15 06:41:28 -04:00
|
|
|
# The following lines of boilerplate have to be in your project's CMakeLists
|
|
|
|
# in this exact order for cmake to work correctly
|
2022-05-27 04:10:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2019-08-15 06:41:28 -04:00
|
|
|
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
|
|
project(efuse)
|
2023-01-03 11:30:38 -05:00
|
|
|
|
|
|
|
idf_component_get_property(esptool_py_dir esptool_py COMPONENT_DIR)
|
|
|
|
set(efuse_names "MAC" "WR_DIS")
|
2024-06-07 07:44:23 -04:00
|
|
|
add_custom_target(efuse-filter
|
2023-01-03 11:30:38 -05:00
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-D "IDF_PATH=${IDF_PATH}"
|
|
|
|
-D "esptool_py_dir=${esptool_py_dir}"
|
|
|
|
-D "ESPEFUSEPY=${ESPEFUSEPY}"
|
|
|
|
-D "ESPEFUSEPY_OFFLINE=${CONFIG_IDF_CI_BUILD}" # Only for CI tests. Do not establish a connection with the chip
|
|
|
|
-D "IDF_TARGET=${IDF_TARGET}"
|
|
|
|
-D "efuse_names=${efuse_names}"
|
|
|
|
-P get_efuse_summary.cmake
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
USES_TERMINAL
|
|
|
|
VERBATIM
|
|
|
|
)
|