Files
raspberry-pi-pico-docker-sdk/Dockerfile
Бычков Андрей 50c183b45b
All checks were successful
SHS Gitea/raspberry-pi-pico-docker-sdk/pipeline/head This commit looks good
fix picotool install
2025-04-22 11:29:40 +03:00

35 lines
928 B
Docker

FROM alpine:3.21.3
# 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 \
g++-arm-none-eabi \
linux-headers
# Raspberry Pi Pico SDK
ARG SDK_PATH=/usr/share/pico_sdk
RUN git clone --depth 1 --branch 2.1.1 --single-branch 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 2.1.1 --single-branch https://github.com/raspberrypi/picotool.git /home/picotool && \
cd /home/picotool && \
mkdir build && \
cd build && \
cmake .. && \
make -j$(nproc) && \
cmake --install . && \
rm -rf /home/picotool