Skip to content

Commit ace5ee6

Browse files
committed
Update pico-sdk to 2.1.1
Also manually install picotool from source to ensure its version matches the sdk version (and doesn't have to be rebuilt by each firmware build). This was necessary to bump pico-sdk to 2.1.1
1 parent 16c36ac commit ace5ee6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docker/Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,23 @@ FROM base AS buildtools
2222
RUN \
2323
mkdir -p /pico/ && \
2424
cd /pico/ && \
25-
git clone https://github.com/raspberrypi/pico-sdk.git --branch 2.0.0 && \
25+
git clone https://github.com/raspberrypi/pico-sdk.git --branch 2.1.1 && \
2626
cd pico-sdk/ && \
2727
git submodule update --init && \
2828
cd /
2929

3030
# Set the Pico SDK environment variable
3131
ENV PICO_SDK_PATH=/pico/pico-sdk/
32+
33+
# Install picotool
34+
# ensure versions of sdk and picotool match
35+
RUN \
36+
git clone https://github.com/raspberrypi/picotool.git --branch 2.1.1 && \
37+
cd picotool && \
38+
mkdir build && \
39+
cd build && \
40+
cmake .. && \
41+
make -j$(nproc) && \
42+
cmake --install . && \
43+
cd ../.. && \
44+
rm -rf picotool

0 commit comments

Comments
 (0)