forked from andrey/raspberry-pi-pico-docker-sdk
Clone specified vesion of SDK and picotool
This commit is contained in:
@@ -15,14 +15,14 @@ RUN apk update && \
|
||||
|
||||
# Raspberry Pi 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 && \
|
||||
git submodule update --init
|
||||
|
||||
ENV PICO_SDK_PATH=$SDK_PATH
|
||||
|
||||
# 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 && \
|
||||
mkdir build && \
|
||||
cd build && \
|
||||
|
||||
@@ -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 exec pico-sdk /bin/sh -c "cd /home/dev && mkdir build && cd build && cmake .. && make -j4"
|
||||
docker exec pico-sdk /bin/sh -c "picotool"
|
||||
|
||||
Reference in New Issue
Block a user