Clone specified vesion of SDK and picotool

This commit is contained in:
lukstep
2022-11-11 16:19:53 +01:00
parent 989cd790e4
commit 90483caaef
2 changed files with 3 additions and 3 deletions

View File

@@ -15,14 +15,14 @@ RUN apk update && \
# 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 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \ RUN git clone --depth 1 --branch 1.4.0 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 -b master https://github.com/raspberrypi/picotool.git /home/picotool && \ RUN git clone --depth 1 --branch 1.1.0 https://github.com/raspberrypi/picotool.git /home/picotool && \
cd /home/picotool && \ cd /home/picotool && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \

View File

@@ -1,4 +1,4 @@
docker build . --tag pico-sdk docker build . --tag lukstep/raspberry-pi-pico-sdk:latest
docker run -d -it --name pico-sdk --mount type=bind,source=${PWD}/test_poject,target=/home/dev pico-sdk docker run -d -it --name pico-sdk --mount type=bind,source=${PWD}/test_poject,target=/home/dev pico-sdk
docker exec pico-sdk /bin/sh -c "cd /home/dev && mkdir build && cd build && cmake .. && make -j4" docker exec pico-sdk /bin/sh -c "cd /home/dev && mkdir build && cd build && cmake .. && make -j4"
docker exec pico-sdk /bin/sh -c "picotool" docker exec pico-sdk /bin/sh -c "picotool"