Add ESP_PLATFORM to build environment.
Merges https://github.com/espressif/esp-idf/pull/2601
This commit is contained in:
parent
88dc626fd7
commit
25333b59c2
2 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,8 @@ cmake_minimum_required(VERSION 3.5)
|
|||
include("${IDF_PATH}/tools/cmake/utilities.cmake")
|
||||
include("${IDF_PATH}/tools/cmake/component_utils.cmake")
|
||||
|
||||
set(ESP_PLATFORM 1)
|
||||
|
||||
if(NOT DEPENDENCIES_FILE)
|
||||
message(FATAL_ERROR "DEPENDENCIES_FILE must be set.")
|
||||
endif()
|
||||
|
|
|
@ -165,7 +165,7 @@ def _ensure_build_directory(args, always_run_cmake=False):
|
|||
if args.generator is None:
|
||||
args.generator = detect_cmake_generator()
|
||||
try:
|
||||
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1"]
|
||||
cmake_args = ["cmake", "-G", args.generator, "-DPYTHON_DEPS_CHECKED=1", "-DESP_PLATFORM=1"]
|
||||
if not args.no_warnings:
|
||||
cmake_args += ["--warn-uninitialized"]
|
||||
if args.no_ccache:
|
||||
|
|
Loading…
Reference in a new issue