MicroPython on Alpine Linux

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
betabrain
Posts: 5
Joined: Wed Aug 17, 2016 12:55 pm

MicroPython on Alpine Linux

Post by betabrain » 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 "

User avatar
platforma
Posts: 258
Joined: Thu May 28, 2015 5:08 pm
Location: Japan

Re: MicroPython on Alpine Linux

Post by platforma » Thu Sep 29, 2016 10:23 am

What exactly does it fail with? Can you show the command line output?

Post Reply