cmake: also pass IDF_ENV_FPGA in config.env

This commit is contained in:
Ivan Grokhotkov 2020-06-26 11:37:34 +02:00
parent 0bace4e0ca
commit b736eebf90
2 changed files with 2 additions and 2 deletions

View file

@ -140,6 +140,7 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
idf_build_get_property(idf_target IDF_TARGET)
idf_build_get_property(idf_path IDF_PATH)
idf_build_get_property(idf_env_fpga __IDF_ENV_FPGA)
string(REPLACE ";" " " kconfigs "${kconfigs}")
string(REPLACE ";" " " kconfig_projbuilds "${kconfig_projbuilds}")
@ -259,8 +260,6 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
set(TERM_CHECK_CMD ${python} ${idf_path}/tools/check_term.py)
endif()
idf_build_get_property(idf_env_fpga __IDF_ENV_FPGA)
# Generate the menuconfig target
add_custom_target(menuconfig
${menuconfig_depends}

View file

@ -4,6 +4,7 @@
"COMPONENT_SDKCONFIG_RENAMES": "${sdkconfig_renames}",
"IDF_CMAKE": "y",
"IDF_TARGET": "${idf_target}",
"IDF_ENV_FPGA": "${idf_env_fpga}",
"IDF_PATH": "${idf_path}",
"COMPONENT_KCONFIGS_SOURCE_FILE": "${kconfigs_path}",
"COMPONENT_KCONFIGS_PROJBUILD_SOURCE_FILE": "${kconfigs_projbuild_path}"