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
21
21
22
22
A native .mpy module is built using the ``mpy_ld.py `` tool, which is found in the
23
23
``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.
25
26
26
27
Supported features and limitations
27
28
----------------------------------
@@ -179,6 +180,14 @@ The file ``Makefile`` contains:
179
180
Compiling the module
180
181
--------------------
181
182
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
+
182
191
Be sure to select the correct ``ARCH `` for the target you are going to run on.
183
192
Then build with::
184
193
You can’t perform that action at this time.
0 commit comments