Skip to content

Commit fe40181

Browse files
committed
Turn back on for pewpew_m4, turn off terminalio for incomplete fonts in pewpew_m4
1 parent 328585f commit fe40181

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ports/atmel-samd/boards/pewpew_m4/mpconfigboard.mk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ CIRCUITPY_PWMIO = 0
3030
CIRCUITPY_RAINBOWIO = 0
3131
CIRCUITPY_ROTARYIO = 0
3232
CIRCUITPY_RTC = 0
33-
CIRCUITPY_SAFEMODE_PY = 0
3433
CIRCUITPY_SAMD = 0
3534
CIRCUITPY_TOUCHIO = 0
3635
CIRCUITPY_USB_HID = 0
@@ -54,3 +53,13 @@ CIRCUITPY_DISPLAY_FONT = $(TOP)/ports/atmel-samd/boards/ugame10/brutalist-6.bdf
5453

5554
# Override optimization to keep binary small
5655
OPTIMIZATION_FLAGS = -Os
56+
57+
# We don't have room for the fonts for terminalio for certain languages,
58+
# so turn off terminalio, and if it's off and displayio is on,
59+
# force a clean build.
60+
# Note that we cannot test $(CIRCUITPY_DISPLAYIO) directly with an
61+
# ifeq, because it's not set yet.
62+
ifneq (,$(filter $(TRANSLATION),ja ko ru))
63+
CIRCUITPY_TERMINALIO = 0
64+
RELEASE_NEEDS_CLEAN_BUILD = $(CIRCUITPY_DISPLAYIO)
65+
endif

0 commit comments

Comments
 (0)