Container with the inline assembler of Micropython for arm-based platforms (e.g. a Raspberry Pi).
252
This repository provides the Dockerfile for a docker container to run the inline assembler of the Micropython for arm-based platforms (e.g. a Raspberry Pi).
Run the container with:
docker run -v path/to/your/codes:/home -it --name my-mpython-image -d -p 80:80 gabrielrca/micropython-arm-inline-assembler
Then, execute the scripts:
docker exec -it my-mpython-image /mpython /home/main.py
FROM debian
LABEL version="1.0" description="Micropython Docker for ARM" maintainer="Gabriel R. Caldas de Aquino<[email protected]>"
WORKDIR /
RUN apt-get update && apt-get -y install build-essential libreadline-dev libffi-dev pkg-config python-setuptools python-dev git dh-autoreconf python3
WORKDIR /
RUN git clone https://github.com/micropython/micropython.git
WORKDIR /micropython/mpy-cross
RUN make
WORKDIR /micropython/ports/unix
RUN git submodule update --init
RUN make deplibs
RUN make CFLAGS_EXTRA='-DMICROPY_EMIT_INLINE_THUMB=1'
WORKDIR /
RUN git clone https://github.com/micropython/micropython-lib.git
WORKDIR /micropython-lib
RUN make install
WORKDIR /micropython/ports/unix
RUN ln -s /micropython/ports/unix/micropython /mpython
Some examples of Micropython arm assembler codes can be found on the Github link: https://github.com/gabrielrca/micropython-arm-inline-assembler
docker pull gabrielrca/micropython-arm-inline-assembler:latest