File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,19 @@ RUN apk update && \
1414 gcc-arm-none-eabi
1515
1616# Raspberry Pi Pico SDK
17- RUN git clone https://github.com/raspberrypi/pico-sdk /usr/pico-sdk && \
18- cd /usr/pico-sdk && \
17+ ARG SDK_PATH=/usr/share/pico_sdk
18+ RUN git clone https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
19+ cd $SDK_PATH && \
1920 git submodule update --init
2021
21- ENV PICO_SDK_PATH=/usr/pico-sdk
22+ ENV PICO_SDK_PATH=$SDK_PATH
2223
2324# Picotool installation
24- RUN git clone -b master https://github.com/raspberrypi/picotool.git /usr /picotool && \
25- cd /usr /picotool && \
25+ RUN git clone -b master https://github.com/raspberrypi/picotool.git /home /picotool && \
26+ cd /home /picotool && \
2627 mkdir build && \
2728 cd build && \
2829 cmake .. && \
2930 make && \
30- cp /usr /picotool/build/picotool /bin/picotool && \
31- rm -rf /usr /picotool
31+ cp /home /picotool/build/picotool /bin/picotool && \
32+ rm -rf /home /picotool
You can’t perform that action at this time.
0 commit comments