mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
1.1 KiB
1.1 KiB
title, layout, image, alt
title | layout | image | alt |
---|---|---|---|
Building Micropython from source | post |
These are notes to myself mainly.
-
Start by following the main guide.
-
For Mac you can get the build chain through a [special brew tap](https://github.com/ARMmbed/homebrew-formulae:
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
You also need the brew equivalents of the dependencies listed:
brew install gcc cmake libffi-dev git pkg-config
-
Build
mpy-cross
as directed. -
Build the unix port just because it's useful
-
Build the port for the board you want, RP2040 for me
cd ports/rp2
make submodules
make -j 16
- Build the port with additional libraries. I wanted to try out this display driver so following the build instructions there, I ran:
make USER_C_MODULES=../../../gc9a01_mpy/src/micropython.cmake all
If you run into trouble, it helps to make clean
in between trying things. I upgraded my cmake
and it didn't seem to help until I ran make clean and tried again.