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>
This commit is contained in:
parent
12dbbc8065
commit
b5c81f6bfb
@ -38,6 +38,7 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main.
|
|||||||
|
|
||||||
.. code-block:: c
|
.. code-block:: c
|
||||||
|
|
||||||
|
#include "py/builtin.h"
|
||||||
#include "py/compile.h"
|
#include "py/compile.h"
|
||||||
#include "py/gc.h"
|
#include "py/gc.h"
|
||||||
#include "py/mperrno.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/pyexec.c \
|
||||||
shared/runtime/stdout_helpers.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.
|
# Define the required object files.
|
||||||
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user