Skip to content

Commit d769698

Browse files
committed
bricks/_common/arm_none_eabi: omit readline on move hub
This reduces the firmware size by avoiding adding root pointers for the unused readline code on Move hub.
1 parent 74e99de commit d769698

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bricks/_common/arm_none_eabi.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,18 @@ include $(PBTOP)/bricks/_common/sources.mk
199199

200200
PY_EXTRA_SRC_C = $(addprefix shared/,\
201201
libc/string0.c \
202-
readline/readline.c \
203202
runtime/gchelper_native.c \
204203
runtime/interrupt_char.c \
205204
runtime/pyexec.c \
206205
runtime/stdout_helpers.c \
207206
runtime/sys_stdio_mphal.c \
208207
)
209208

209+
ifneq ($(PBIO_PLATFORM),move_hub)
210+
# to avoid adding unused root pointers
211+
PY_EXTRA_SRC_C += shared/readline/readline.c
212+
endif
213+
210214
PY_EXTRA_SRC_C += $(addprefix bricks/_common/,\
211215
micropython.c \
212216
)

0 commit comments

Comments
 (0)