-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmicropython_embed.mk
37 lines (29 loc) · 1.02 KB
/
micropython_embed.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Set the location of the top of the MicroPython repository.
MICROPYTHON_TOP = micropython
# Include modules from extmod in the output.
EMBED_EXTRA = extmod
# Include helper sources for the time module in the output.
EMBED_EXTRA += \
shared/timeutils/timeutils.c \
shared/timeutils/timeutils.h \
shared/timeutils/modtime_mphal.h
# Include source for mphal-backed stdio in the output.
EMBED_EXTRA += \
shared/runtime/sys_stdio_mphal.c \
shared/runtime/stdout_helpers.c
# Include source for REPL and file execution in the output.
EMBED_EXTRA += \
shared/runtime/pyexec.c \
shared/runtime/pyexec.h \
shared/readline/readline.c \
shared/readline/readline.h \
shared/runtime/interrupt_char.c \
shared/runtime/interrupt_char.h
# Include library sources for littlefs 2 in the output.
EMBED_EXTRA += littlefs2
# Freeze Python modules.
FROZEN_MANIFEST ?= manifest.py
# Add C modules.
USER_C_MODULES = src/modules
# Include the main makefile fragment to build the MicroPython component.
include $(MICROPYTHON_TOP)/ports/embed/embed.mk