@@ -259,13 +259,16 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
259
259
set (TERM_CHECK_CMD ${python} ${idf_path} /tools/check_term.py )
260
260
endif ()
261
261
262
+ idf_build_get_property (idf_env_fpga __IDF_ENV_FPGA )
263
+
262
264
# Generate the menuconfig target
263
265
add_custom_target (menuconfig
264
266
${menuconfig_depends}
265
267
# create any missing config file, with defaults if necessary
266
268
COMMAND ${prepare_kconfig_files_command}
267
269
COMMAND ${confgen_basecommand}
268
270
--env "IDF_TARGET=${idf_target} "
271
+ --env "IDF_ENV_FPGA=${idf_env_fpga} "
269
272
--dont-write-deprecated
270
273
--output config ${sdkconfig}
271
274
COMMAND ${TERM_CHECK_CMD}
@@ -275,13 +278,17 @@ function(__kconfig_generate_config sdkconfig sdkconfig_defaults)
275
278
"IDF_CMAKE=y"
276
279
"KCONFIG_CONFIG=${sdkconfig} "
277
280
"IDF_TARGET=${idf_target} "
281
+ "IDF_ENV_FPGA=${idf_env_fpga} "
278
282
${MENUCONFIG_CMD} ${root_kconfig}
279
283
# VERBATIM cannot be used here because it cannot handle ${mconf}="winpty mconf-idf" and the escaping must be
280
284
# done manually
281
285
USES_TERMINAL
282
286
# additional run of confgen esures that the deprecated options will be inserted into sdkconfig (for backward
283
287
# compatibility)
284
- COMMAND ${confgen_basecommand} --env "IDF_TARGET=${idf_target} " --output config ${sdkconfig}
288
+ COMMAND ${confgen_basecommand}
289
+ --env "IDF_TARGET=${idf_target} "
290
+ --env "IDF_ENV_FPGA=${idf_env_fpga} "
291
+ --output config ${sdkconfig}
285
292
)
286
293
287
294
# Custom target to run confserver.py from the build tool
0 commit comments