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 @@ -135,13 +135,15 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
135135 ]
136136 cmake_preconf_dir = os .path .join (BUILD_DIR , "config" )
137137 deafult_sdk_config = os .path .join (PROJECT_DIR , "sdkconfig.defaults" )
138+ idf_deps_lock = os .path .join (PROJECT_DIR , "dependencies.lock" )
139+ ninja_buildfile = os .path .join (BUILD_DIR , "build.ninja" )
138140
139141 for d in (cmake_api_reply_dir , cmake_preconf_dir ):
140142 if not os .path .isdir (d ) or not os .listdir (d ):
141143 return True
142144 if not os .path .isfile (cmake_cache_file ):
143145 return True
144- if not os .path .isfile (os . path . join ( BUILD_DIR , "build.ninja" ) ):
146+ if not os .path .isfile (ninja_buildfile ):
145147 return True
146148 if not os .path .isfile (SDKCONFIG_PATH ) or os .path .getmtime (
147149 SDKCONFIG_PATH
@@ -151,6 +153,10 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
151153 deafult_sdk_config
152154 ) > os .path .getmtime (cmake_cache_file ):
153155 return True
156+ if os .path .isfile (idf_deps_lock ) and os .path .getmtime (
157+ idf_deps_lock
158+ ) > os .path .getmtime (ninja_buildfile ):
159+ return True
154160 if any (
155161 os .path .getmtime (f ) > os .path .getmtime (cmake_cache_file )
156162 for f in cmake_txt_files + [cmake_preconf_dir , FRAMEWORK_DIR ]
You can’t perform that action at this time.
0 commit comments