mirror of
https://github.com/lukstep/raspberry-pi-pico-docker-sdk.git
synced 2025-12-22 18:45:56 +03:00
Dockerfile improvments and fixes
This commit is contained in:
@@ -14,18 +14,19 @@ RUN apk update && \
|
|||||||
gcc-arm-none-eabi
|
gcc-arm-none-eabi
|
||||||
|
|
||||||
# Raspberry Pi Pico SDK
|
# Raspberry Pi Pico SDK
|
||||||
RUN git clone https://github.com/raspberrypi/pico-sdk /usr/pico-sdk && \
|
ARG SDK_PATH=/usr/share/pico_sdk
|
||||||
cd /usr/pico-sdk && \
|
RUN git clone https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
|
||||||
|
cd $SDK_PATH && \
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
|
||||||
ENV PICO_SDK_PATH=/usr/pico-sdk
|
ENV PICO_SDK_PATH=$SDK_PATH
|
||||||
|
|
||||||
# Picotool installation
|
# Picotool installation
|
||||||
RUN git clone -b master https://github.com/raspberrypi/picotool.git /usr/picotool && \
|
RUN git clone -b master https://github.com/raspberrypi/picotool.git /home/picotool && \
|
||||||
cd /usr/picotool && \
|
cd /home/picotool && \
|
||||||
mkdir build && \
|
mkdir build && \
|
||||||
cd build && \
|
cd build && \
|
||||||
cmake .. && \
|
cmake .. && \
|
||||||
make && \
|
make && \
|
||||||
cp /usr/picotool/build/picotool /bin/picotool && \
|
cp /home/picotool/build/picotool /bin/picotool && \
|
||||||
rm -rf /usr/picotool
|
rm -rf /home/picotool
|
||||||
|
|||||||
Reference in New Issue
Block a user