mirror of
https://github.com/lukstep/raspberry-pi-pico-docker-sdk.git
synced 2025-12-22 18:45:56 +03:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50c183b45b | |||
| 8a5859f324 | |||
| b0b3ad9c9f | |||
| 5f5b0d262b | |||
| dae1fa9771 | |||
| 9d57df6c8b |
14
Dockerfile
14
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.17.0
|
FROM alpine:3.21.3
|
||||||
|
|
||||||
# Install toolchain
|
# Install toolchain
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
@@ -11,22 +11,24 @@ RUN apk update && \
|
|||||||
libusb-dev \
|
libusb-dev \
|
||||||
bsd-compat-headers \
|
bsd-compat-headers \
|
||||||
newlib-arm-none-eabi \
|
newlib-arm-none-eabi \
|
||||||
gcc-arm-none-eabi
|
gcc-arm-none-eabi \
|
||||||
|
g++-arm-none-eabi \
|
||||||
|
linux-headers
|
||||||
|
|
||||||
# Raspberry Pi Pico SDK
|
# Raspberry Pi Pico SDK
|
||||||
ARG SDK_PATH=/usr/share/pico_sdk
|
ARG SDK_PATH=/usr/share/pico_sdk
|
||||||
RUN git clone --depth 1 --branch 1.5.1 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
|
RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
|
||||||
cd $SDK_PATH && \
|
cd $SDK_PATH && \
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
ENV PICO_SDK_PATH=$SDK_PATH
|
ENV PICO_SDK_PATH=$SDK_PATH
|
||||||
|
|
||||||
# Picotool installation
|
# Picotool installation
|
||||||
RUN git clone --depth 1 --branch 1.1.2 https://github.com/raspberrypi/picotool.git /home/picotool && \
|
RUN git clone --depth 1 --branch 2.1.1 --single-branch https://github.com/raspberrypi/picotool.git /home/picotool && \
|
||||||
cd /home/picotool && \
|
cd /home/picotool && \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make && \
|
make -j$(nproc) && \
|
||||||
cp /home/picotool/build/picotool /bin/picotool && \
|
cmake --install . && \
|
||||||
rm -rf /home/picotool
|
rm -rf /home/picotool
|
||||||
|
|||||||
13
Jenkinsfile
vendored
Normal file
13
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
node {
|
||||||
|
stage("Download SRC") {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
|
stage("Docker build") {
|
||||||
|
docker.build("${env.DOCKER_PREFIX}/picosdk", ".")
|
||||||
|
}
|
||||||
|
|
||||||
|
stage("docker prune") {
|
||||||
|
sh 'docker system prune -f'
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user