7 Commits

3 changed files with 24 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.17.0
FROM alpine:3.21.3
# Install toolchain
RUN apk update && \
@@ -11,22 +11,24 @@ RUN apk update && \
libusb-dev \
bsd-compat-headers \
newlib-arm-none-eabi \
gcc-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 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 && \
git submodule update --init
ENV PICO_SDK_PATH=$SDK_PATH
# 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 && \
mkdir build && \
cd build && \
cmake .. && \
make && \
cp /home/picotool/build/picotool /bin/picotool && \
make -j$(nproc) && \
cmake --install . && \
rm -rf /home/picotool

13
Jenkinsfile vendored Normal file
View 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'
}
}

View File

@@ -4,6 +4,9 @@ include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
project(sample C CXX ASM)
set(CMAKE_C_COMPILER /usr/bin/arm-none-eabi-gcc CACHE PATH "" FORCE)
set(CMAKE_CXX_COMPILER /usr/bin/arm-none-eabi-g++ CACHE PATH "" FORCE)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)