Makefile can compile KMK to MPY files

This commit is contained in:
Josh Klar
2019-07-20 15:50:56 -07:00
parent ffe3fa3c64
commit 8f5511327e
2 changed files with 18 additions and 5 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.7-alpine
RUN mkdir -p /app
WORKDIR /app
RUN apk update && apk add alpine-sdk curl gettext git git-lfs openssh rsync wget
RUN pip install pipenv
### Get a local copy of CircuitPython and its dependencies
# Our absolute baseline is 4.0.0, which (as of writing) shares MPY compat
# with all future versions. Our baseline will need to update as MPY compat
# changes
RUN git clone --branch 4.0.0 --depth 1 https://github.com/adafruit/CircuitPython /opt/circuitpython
RUN git -C /opt/circuitpython submodule update --init
### Build the MPY compiler
RUN make -C /opt/circuitpython/mpy-cross
ENV PATH=/opt/circuitpython/mpy-cross:${PATH}