Skip to content

Commit b5c81f6

Browse files
cyber-murmeldpgeorge
authored andcommitted
docs/develop/porting: Add missing code to example main.c and Makefile.
These two missing lines caused the build process to fail when implementing the tutorial example port. Signed-off-by: marble <git@computer-in.love>
1 parent 12dbbc8 commit b5c81f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/develop/porting.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main.
3838

3939
.. code-block:: c
4040
41+
#include "py/builtin.h"
4142
#include "py/compile.h"
4243
#include "py/gc.h"
4344
#include "py/mperrno.h"
@@ -110,6 +111,9 @@ We also need a Makefile at this point for the port:
110111
shared/runtime/pyexec.c \
111112
shared/runtime/stdout_helpers.c \
112113
114+
# Define source files containung qstrs.
115+
SRC_QSTR += shared/readline/readline.c shared/runtime/pyexec.c
116+
113117
# Define the required object files.
114118
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
115119

0 commit comments

Comments
 (0)