This commit is contained in:
commit
2824b20d7d
2
.drone.yml
Normal file
2
.drone.yml
Normal file
@ -0,0 +1,2 @@
|
||||
kind: template
|
||||
load: docker.yaml
|
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
11
README.md
Normal 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user