Skip to content
Snippets Groups Projects
Commit 2e97213a authored by Michael Huebler's avatar Michael Huebler
Browse files

Update how-to-build.rst - added macOS recommendations.

parent 65efd6bc
No related branches found
No related tags found
No related merge requests found
How To Build How To Build
============ ============
If you just want to write MicroPython code for card10, you probably **won't** If you just want to write MicroPython code for card10, you probably **won't**
need to build the firmware yourself. This page is for people who want to work need to build the firmware yourself. This page is for people **who want to work
on the underlying firmware itself. on the underlying firmware itself**.
Dependencies Dependencies
------------ ------------
...@@ -27,7 +27,20 @@ Dependencies ...@@ -27,7 +27,20 @@ Dependencies
dnf install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib dnf install arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-newlib
- macOS (Note: The card10 firmware team used Linux so far. macOS recommendations here are experimental.)
You can use `Homebrew`_ to install the required tools.
The version of the Arm crosscompiler tool chain is quite important; with the wrong version, e.g. strip and/or ld might throw strange errors.
.. code-block:: shell-session
brew tap px4/px4
brew install px4/px4/gcc-arm-none-eabi-63
brew install coreutils
- Alternative: Download `ARM's GNU toolchain`_. **TODO** - Alternative: Download `ARM's GNU toolchain`_. **TODO**
.. _Homebrew: https://brew.sh/
* **python3**: For meson and various scripts needed for building. * **python3**: For meson and various scripts needed for building.
* **meson** (>0.43.0) & **ninja**: Unfortunately most distros only have very old versions * **meson** (>0.43.0) & **ninja**: Unfortunately most distros only have very old versions
of meson in their repositories. Instead, you'll probably save yourself a lot of meson in their repositories. Instead, you'll probably save yourself a lot
...@@ -46,6 +59,13 @@ Dependencies ...@@ -46,6 +59,13 @@ Dependencies
pacman -S meson pacman -S meson
- macOS
.. code-block:: shell-session
brew install ninja
pip3 install --user meson # see https://mesonbuild.com/Getting-meson.html - you will have to add ~/.local/bin to your PATH.
* **python3-crc16**: Install with ``pip3 install --user crc16``. * **python3-crc16**: Install with ``pip3 install --user crc16``.
* **python3-pillow**: Python Image Library ``pip3 install --user pillow``. * **python3-pillow**: Python Image Library ``pip3 install --user pillow``.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment