Skip to content

Commit 8c6e67b

Browse files
authored
Fix all clusters app clear build. (project-chip#5269)
1 parent 8755428 commit 8c6e67b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/examples/build-all-clusters-app.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ def main():
5454

5555
if args.clear_config:
5656
logging.info('Building a clear configuration')
57-
sdk_config = 'sdkconfig_%s.defaults' % args.clear_config
57+
sdkconfig = 'sdkconfig_%s.defaults' % args.clear_config
5858

59-
os.remove(os.path.join(ROOT, 'sdkconfig'))
59+
curr_sdkconfig = os.path.join(ROOT, 'sdkconfig')
60+
if os.path.exists(curr_sdkconfig):
61+
os.remove(curr_sdkconfig)
6062

6163
e.execute('SDKCONFIG_DEFAULTS="{sdkname}" make -j{cpus} -C {example_root} defconfig'.format(
6264
sdkname=sdkconfig, cpus=os.cpu_count(), example_root = ROOT

0 commit comments

Comments
 (0)