mirror of
https://github.com/lukstep/raspberry-pi-pico-docker-sdk.git
synced 2025-12-22 18:45:56 +03:00
33 lines
854 B
Docker
33 lines
854 B
Docker
FROM alpine:3.17.0
|
|
|
|
# Install toolchain
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add git \
|
|
python3 \
|
|
py3-pip \
|
|
cmake \
|
|
build-base \
|
|
libusb-dev \
|
|
bsd-compat-headers \
|
|
newlib-arm-none-eabi \
|
|
gcc-arm-none-eabi
|
|
|
|
# Raspberry Pi Pico SDK
|
|
ARG SDK_PATH=/usr/share/pico_sdk
|
|
RUN git clone --depth 1 --branch 1.5.0 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
|
|
cd $SDK_PATH && \
|
|
git submodule update --init
|
|
|
|
ENV PICO_SDK_PATH=$SDK_PATH
|
|
|
|
# Picotool installation
|
|
RUN git clone --depth 1 --branch 1.1.1 https://github.com/raspberrypi/picotool.git /home/picotool && \
|
|
cd /home/picotool && \
|
|
mkdir build && \
|
|
cd build && \
|
|
cmake .. && \
|
|
make && \
|
|
cp /home/picotool/build/picotool /bin/picotool && \
|
|
rm -rf /home/picotool
|