File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
109
109
os .path .join (PROJECT_SRC_DIR , "CMakeLists.txt" ),
110
110
]
111
111
cmake_preconf_dir = os .path .join (BUILD_DIR , "config" )
112
+ deafult_sdk_config = os .path .join (PROJECT_DIR , "sdkconfig.defaults" )
112
113
113
114
for d in (cmake_api_reply_dir , cmake_preconf_dir ):
114
115
if not os .path .isdir (d ) or not os .listdir (d ):
@@ -117,10 +118,14 @@ def is_cmake_reconfigure_required(cmake_api_reply_dir):
117
118
return True
118
119
if not os .path .isfile (os .path .join (BUILD_DIR , "build.ninja" )):
119
120
return True
120
- if os .path .isfile (SDKCONFIG_PATH ) and os .path .getmtime (
121
+ if not os .path .isfile (SDKCONFIG_PATH ) or os .path .getmtime (
121
122
SDKCONFIG_PATH
122
123
) > os .path .getmtime (cmake_cache_file ):
123
124
return True
125
+ if os .path .isfile (deafult_sdk_config ) and os .path .getmtime (
126
+ deafult_sdk_config
127
+ ) > os .path .getmtime (cmake_cache_file ):
128
+ return True
124
129
if any (
125
130
os .path .getmtime (f ) > os .path .getmtime (cmake_cache_file )
126
131
for f in cmake_txt_files + [cmake_preconf_dir , FRAMEWORK_DIR ]
You can’t perform that action at this time.
0 commit comments