mirror of
https://github.com/lukstep/raspberry-pi-pico-docker-sdk.git
synced 2025-12-22 18:45:56 +03:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 50c183b45b | |||
| 8a5859f324 | |||
| b0b3ad9c9f | |||
| 5f5b0d262b | |||
| dae1fa9771 | |||
| 9d57df6c8b | |||
|
|
3d8b06e9b7 |
14
Dockerfile
14
Dockerfile
@@ -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
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'
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user