File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,6 @@ def setup_logging():
71
71
if os .environ .get ('ARDUINO_FRAMEWORK_ENABLE_LOGGING' ):
72
72
setup_logging ()
73
73
74
- # Constants for better performance
75
- UNICORE_FLAGS = {
76
- "CORE32SOLO1" ,
77
- "CONFIG_FREERTOS_UNICORE=y"
78
- }
79
-
80
74
# Thread-safe global flags to prevent message spam
81
75
_PATH_SHORTENING_LOCK = threading .Lock ()
82
76
_PATH_SHORTENING_MESSAGES = {
@@ -588,13 +582,8 @@ def safe_remove_sdkconfig_files():
588
582
589
583
flag_any_custom_sdkconfig = exists (join (platform .get_package_dir ("framework-arduinoespressif32-libs" ),"sdkconfig" ))
590
584
591
- def has_unicore_flags ():
592
- """Check if any UNICORE flags are present in configuration"""
593
- return any (flag in extra_flags or flag in entry_custom_sdkconfig
594
- or flag in board_sdkconfig for flag in UNICORE_FLAGS )
595
-
596
585
# Esp32-solo1 libs settings
597
- if flag_custom_sdkconfig and has_unicore_flags ( ):
586
+ if flag_custom_sdkconfig == True and ( "CORE32SOLO1" in extra_flags or "CONFIG_FREERTOS_UNICORE=y" in entry_custom_sdkconfig or "CONFIG_FREERTOS_UNICORE=y" in board_sdkconfig ):
598
587
build_unflags = env .GetProjectOption ("build_unflags" )
599
588
if not build_unflags : # not existing needs init
600
589
env ['BUILD_UNFLAGS' ] = []
You can’t perform that action at this time.
0 commit comments