File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ language which can be compiled to stand-alone machine code can be put into a
2121
2222A native .mpy module is built using the ``mpy_ld.py `` tool, which is found in the
2323``tools/ `` directory of the project. This tool takes a set of object files
24- (.o files) and links them together to create a native .mpy files.
24+ (.o files) and links them together to create a native .mpy files. It requires
25+ CPython 3 and the library pyelftools v0.25 or greater.
2526
2627Supported features and limitations
2728----------------------------------
@@ -179,6 +180,14 @@ The file ``Makefile`` contains:
179180 Compiling the module
180181--------------------
181182
183+ The prerequisite tools needed to build a native .mpy file are:
184+
185+ * The MicroPython repository (at least the ``py/ `` and ``tools/ `` directories).
186+ * CPython 3, and the library pyelftools (eg ``pip install 'pyelftools>=0.25' ``).
187+ * GNU make.
188+ * A C compiler for the target architecture (if C source is used).
189+ * Optionally ``mpy-cross ``, built from the MicroPython repository (if .py source is used).
190+
182191Be sure to select the correct ``ARCH `` for the target you are going to run on.
183192Then build with::
184193
You can’t perform that action at this time.
0 commit comments