@@ -52,6 +52,11 @@ ifndef CIRCUITPY_DEFAULT_BUILD
52
52
endif
53
53
endif
54
54
55
+ # Some features have no unique HAL component, and thus there's never
56
+ # a reason to not include them.
57
+ ifndef CIRCUITPY_ALWAYS_BUILD
58
+ CIRCUITPY_ALWAYS_BUILD = 1
59
+ endif
55
60
56
61
57
62
# All builtin modules are listed below, with default values (0 for off, 1 for on)
@@ -151,7 +156,7 @@ endif
151
156
CFLAGS += -DCIRCUITPY_I2CSLAVE=$(CIRCUITPY_I2CSLAVE )
152
157
153
158
ifndef CIRCUITPY_MATH
154
- CIRCUITPY_MATH = $(CIRCUITPY_DEFAULT_BUILD )
159
+ CIRCUITPY_MATH = $(CIRCUITPY_ALWAYS_BUILD )
155
160
endif
156
161
CFLAGS += -DCIRCUITPY_MATH=$(CIRCUITPY_MATH )
157
162
@@ -232,17 +237,17 @@ endif
232
237
CFLAGS += -DCIRCUITPY_STORAGE=$(CIRCUITPY_STORAGE )
233
238
234
239
ifndef CIRCUITPY_STRUCT
235
- CIRCUITPY_STRUCT = $(CIRCUITPY_DEFAULT_BUILD )
240
+ CIRCUITPY_STRUCT = $(CIRCUITPY_ALWAYS_BUILD )
236
241
endif
237
242
CFLAGS += -DCIRCUITPY_STRUCT=$(CIRCUITPY_STRUCT )
238
243
239
244
ifndef CIRCUITPY_SUPERVISOR
240
- CIRCUITPY_SUPERVISOR = $(CIRCUITPY_DEFAULT_BUILD )
245
+ CIRCUITPY_SUPERVISOR = $(CIRCUITPY_ALWAYS_BUILD )
241
246
endif
242
247
CFLAGS += -DCIRCUITPY_SUPERVISOR=$(CIRCUITPY_SUPERVISOR )
243
248
244
249
ifndef CIRCUITPY_TIME
245
- CIRCUITPY_TIME = $(CIRCUITPY_DEFAULT_BUILD )
250
+ CIRCUITPY_TIME = $(CIRCUITPY_ALWAYS_BUILD )
246
251
endif
247
252
CFLAGS += -DCIRCUITPY_TIME=$(CIRCUITPY_TIME )
248
253
0 commit comments