File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -405,13 +405,15 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
405405 ]
406406 cmake_preconf_dir = os .path .join (BUILD_DIR , "config" )
407407 deafult_sdk_config = os .path .join (PROJECT_DIR , "sdkconfig.defaults" )
408+ idf_deps_lock = os .path .join (PROJECT_DIR , "dependencies.lock" )
409+ ninja_buildfile = os .path .join (BUILD_DIR , "build.ninja" )
408410
409411 for d in (cmake_api_reply_dir , cmake_preconf_dir ):
410412 if not os .path .isdir (d ) or not os .listdir (d ):
411413 return True
412414 if not os .path .isfile (cmake_cache_file ):
413415 return True
414- if not os .path .isfile (os . path . join ( BUILD_DIR , "build.ninja" ) ):
416+ if not os .path .isfile (ninja_buildfile ):
415417 return True
416418 if not os .path .isfile (SDKCONFIG_PATH ) or os .path .getmtime (
417419 SDKCONFIG_PATH
@@ -421,6 +423,10 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
421423 deafult_sdk_config
422424 ) > os .path .getmtime (cmake_cache_file ):
423425 return True
426+ if os .path .isfile (idf_deps_lock ) and os .path .getmtime (
427+ idf_deps_lock
428+ ) > os .path .getmtime (ninja_buildfile ):
429+ return True
424430 if any (
425431 os .path .getmtime (f ) > os .path .getmtime (cmake_cache_file )
426432 for f in cmake_txt_files + [cmake_preconf_dir , FRAMEWORK_DIR ]
You can’t perform that action at this time.
0 commit comments