Skip to content

Commit 60ada1d

Browse files
committed
Shrink C2 and C3 builds
1 parent 18785bd commit 60ada1d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

ports/espressif/esp-idf-config/sdkconfig-esp32c2.defaults

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#
22
# Espressif IoT Development Framework Configuration
33
#
4+
# Compiler options
5+
#
6+
CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS=y
7+
# end of Compiler options
48
#
59
# Component config
610
#

ports/espressif/esp-idf-config/sdkconfig-esp32c3.defaults

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#
22
# Espressif IoT Development Framework Configuration
33
#
4+
# Compiler options
5+
#
6+
CONFIG_COMPILER_SAVE_RESTORE_LIBCALLS=y
7+
# end of Compiler options
48
#
59
# Component config
610
#

ports/espressif/tools/update_sdkconfig.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ def sym_default(sym):
139139
# to n or the symbol to m in those cases).
140140
if (
141141
sym.choice
142-
and not sym.choice.is_optional
143142
and sym.choice._selection_from_defaults() is sym
144-
and sym.orig_type is kconfiglib.core.BOOL
145-
and sym.tri_value == 2
143+
and sym.orig_type == kconfiglib.core.BOOL
144+
and sym.bool_value == 2
146145
):
147146
return True
148147

0 commit comments

Comments
 (0)