Skip to content

Commit 708574b

Browse files
committed
teensy: Update for readline module moved to lib/.
1 parent 06e9cb6 commit 708574b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

teensy/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat
3232
INC = -I.
3333
INC += -I..
3434
INC += -I../stmhal
35+
INC += -I../lib/mp-readline
3536
INC += -I$(BUILD)
3637
INC += -Icore
3738

@@ -100,14 +101,17 @@ STM_SRC_C = $(addprefix stmhal/,\
100101
printf.c \
101102
pyexec.c \
102103
pybstdio.c \
103-
readline.c \
104104
string0.c \
105105
)
106106

107107
STM_SRC_S = $(addprefix stmhal/,\
108108
gchelper.s \
109109
)
110110

111+
LIB_SRC_C = $(addprefix lib/,\
112+
mp-readline/readline.c \
113+
)
114+
111115
SRC_TEENSY = $(addprefix core/,\
112116
mk20dx128.c \
113117
pins_teensy.c \
@@ -120,6 +124,7 @@ SRC_TEENSY = $(addprefix core/,\
120124
)
121125

122126
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(STM_SRC_C:.c=.o) $(STM_SRC_S:.s=.o) $(SRC_TEENSY:.c=.o))
127+
OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
123128
OBJ += $(BUILD)/pins_gen.o
124129

125130
all: hex

0 commit comments

Comments
 (0)