updated README; added git submodule info

This commit is contained in:
sommersoft 2018-03-30 22:16:36 +00:00
parent bee0d2edb4
commit c70acab8b3

View File

@ -141,16 +141,26 @@ The compiler can be changed using the ``CROSS_COMPILE`` variable when invoking
Building Building
-------- --------
Before building the firmware for a given board the MicroPython cross-compiler Before building the firmware for a given board, there are two additional steps.
must be built; it will be used to pre-compile some of the built-in scripts to These commands should be executed from the root directory of the repository
bytecode. The cross-compiler is built and run on the host machine, using: (``%clone location%/circuitpython/``). All other commands are run from the
``%clone location%/circuitpython/ports/atmel-samd/``directory.
1. There are various submodules that reside in different repositories. In order
to have these submodules locally, you must pull them into your clone.
.. code-block:: shell
git submodule update --init --recursive
2. The MicroPython cross-compiler must be built; it will be used to pre-compile
some of the built-in scripts to bytecode. The cross-compiler is built and
run on the host machine, using:
.. code-block:: shell .. code-block:: shell
make -C mpy-cross make -C mpy-cross
This command should be executed from the root directory of this repository.
All other commands below should be executed from the ports/atmel-samd/ directory.
To build for the Arduino Zero: To build for the Arduino Zero:
@ -158,7 +168,8 @@ To build for the Arduino Zero:
make make
To build for other boards you must change it by setting ``BOARD``. For example: To build for other boards you must change it by setting ``BOARD``. This command
is executed from the ``~/circuitpython/ports/atmel-samd`` directory. For example:
.. code-block:: shell .. code-block:: shell