MicroPython on Alpine Linux
Posted: Thu Sep 29, 2016 9:22 am
Does anyone know how to build MicroPython for Alpine Linux? I tried building it inside a docker container but failed in multiple places. Below is the Dockerfile I arrived at.
Code: Select all
FROM alpine:3.4
RUN apk add --no-cache git make
RUN cd /tmp ; \
git clone https://github.com/micropython/micropython.git ; \
cd micropython ; \
git submodule init ; \
git submodule update
RUN apk add --no-cache pkgconfig python libffi-dev gcc musl-dev autoconf automake libtool
# install sys/cdefs.h
# RUN apk add --no-cache bsd-compat-headers
RUN cd /tmp/micropython/unix ; \
make deplibs
RUN cd /tmp/micropython/unix ; \
make
# disable -Werror when including sys/cdefs.h
# RUN cd /tmp/micropython/unix ; \
# make CFLAGS=" -Wno-error=switch "