File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ def safe_remove_sdkconfig_files():
370
370
entry_custom_sdkconfig = env .GetProjectOption ("custom_sdkconfig" )
371
371
flag_custom_sdkconfig = True
372
372
373
- if len ( board_sdkconfig ) > 2 :
373
+ if board_sdkconfig :
374
374
flag_custom_sdkconfig = True
375
375
376
376
extra_flags_raw = board .get ("build.extra_flags" , [])
@@ -395,8 +395,9 @@ def has_unicore_flags():
395
395
396
396
# Esp32-solo1 libs settings
397
397
if flag_custom_sdkconfig and has_unicore_flags ():
398
- if len (str (env .GetProjectOption ("build_unflags" ))) == 2 : # No valid env, needs init
399
- env ['BUILD_UNFLAGS' ] = {}
398
+ build_unflags = env .GetProjectOption ("build_unflags" )
399
+ if not build_unflags : # not existing needs init
400
+ env ['BUILD_UNFLAGS' ] = []
400
401
401
402
build_unflags = " " .join (env ['BUILD_UNFLAGS' ]) + " -mdisable-hardware-atomics -ustart_app_other_cores"
402
403
new_build_unflags = build_unflags .split ()
You can’t perform that action at this time.
0 commit comments