Initial commit
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-03-14 20:04:33 +02:00 committed by Lauri Võsandi
commit 2824b20d7d
3 changed files with 21 additions and 0 deletions

2
.drone.yml Normal file
View File

@ -0,0 +1,2 @@
kind: template
load: docker.yaml

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM larsks/esp-open-sdk
RUN yum install -y libffi-devel
RUN git clone --depth 1 -b v1.18 https://github.com/micropython/micropython.git /src
WORKDIR /src/mpy-cross
RUN make
WORKDIR /src/ports/esp8266
RUN make submodules && make
CMD make && cp build-GENERIC/firmware-combined.bin /build/

11
README.md Normal file
View File

@ -0,0 +1,11 @@
This Docker image drastically simplifies building MicroPython binaries for ESP8266 microcontrollers with
[frozen modules](https://docs.micropython.org/en/latest/reference/manifest.html#freezing-source-code)
-- that is flashable MicroPython images that include your payload as bytecode so they're easy to deploy
and even more importantly free up precious RAM for ESP8266.
Place your source code under `modules/` and the Docker image should pick them
up and bundle them into the resulting firmware image placed under `build/`
```
docker run --rm -v $PWD/modules:/src/ports/esp8266/modules -v $PWD/build:/build harbor.k-space.ee/k-space/micropython-esp8266
```