Page 1 of 1

MicroPython on Alpine Linux

Posted: Thu Sep 29, 2016 9:22 am
by betabrain
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 "

Re: MicroPython on Alpine Linux

Posted: Thu Sep 29, 2016 10:23 am
by platforma
What exactly does it fail with? Can you show the command line output?