diff --git a/README.md b/README.md index 56fd6e5..06fe818 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Generates my personal website. I copied (rather than forked to preserve previous history of this repo) the template is from https://academicpages.github.io/ which is a Github Pages template for academic websites released under the MIT License. See LICENSE.md. +Generates my personal website. ## Installing Ruby You probably want to run ruby from a version manager like `chruby`, see [here](https://jekyllrb.com/docs/installation/macos/). diff --git a/_drafts/2023-07-24-building-micropython.md b/_drafts/2023-07-24-building-micropython.md new file mode 100644 index 0000000..b95b624 --- /dev/null +++ b/_drafts/2023-07-24-building-micropython.md @@ -0,0 +1,38 @@ +--- +title: Building Micropython from source +layout: post +image: +alt: +--- + +These are notes to myself mainly. +1. Start by following [the main guide](https://docs.micropython.org/en/latest/develop/gettingstarted.html). + +2. For Mac you can get the build chain through a [special brew tap](https://github.com/ARMmbed/homebrew-formulae: + +```sh +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` + +3. Build `mpy-cross` as directed. + +4. Build the unix port just because it's useful + +5. Build the port for the board you want, RP2040 for me +``` +cd ports/rp2 +make submodules +make -j 16 +``` + +6. Build the port with additional libraries. +I wanted to try out this [display driver](https://github.com/russhughes/gc9a01_mpy) 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. \ No newline at end of file