summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarble <git@computer-in.love>2023-04-14 18:31:22 +0200
committerDamien George <damien@micropython.org>2023-05-19 21:51:19 +1000
commitb5c81f6bfbd77ab5b0c3590d6ea7a6a3bb1e12f2 (patch)
tree0acec9299a52a7585b91bd73f609b9a43db2088c
parent12dbbc8065e1073ffa1bb038f0cdc24101f69bc4 (diff)
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>
-rw-r--r--docs/develop/porting.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst
index 74974a39e..fab8a751b 100644
--- a/docs/develop/porting.rst
+++ b/docs/develop/porting.rst
@@ -38,6 +38,7 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main.
.. code-block:: c
+ #include "py/builtin.h"
#include "py/compile.h"
#include "py/gc.h"
#include "py/mperrno.h"
@@ -110,6 +111,9 @@ We also need a Makefile at this point for the port:
shared/runtime/pyexec.c \
shared/runtime/stdout_helpers.c \
+ # Define source files containung qstrs.
+ SRC_QSTR += shared/readline/readline.c shared/runtime/pyexec.c
+
# Define the required object files.
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))