Skip to content

Commit c92a6ec

Browse files
committed
adding pico-sdk as submodule
1 parent 7807024 commit c92a6ec

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/pico-sdk"]
2+
path = lib/pico-sdk
3+
url = [email protected]:raspberrypi/pico-sdk.git

Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,19 @@ RUN apt-get update && \
1010
# Set the working directory
1111
WORKDIR /opt
1212

13-
# Clone the Pico SDK
14-
RUN git clone -b master https://github.com/raspberrypi/pico-sdk.git
15-
16-
# Set up environment variables for the Pico SDK
17-
ENV PICO_SDK_PATH=/opt/pico-sdk
18-
19-
# Export environment variables
20-
RUN echo "export PICO_SDK_PATH=/opt/pico-sdk" >> ~/.bashrc
21-
2213
# Install CMake
2314
RUN wget https://github.com/Kitware/CMake/releases/download/v3.19.6/cmake-3.19.6-Linux-x86_64.sh && \
2415
chmod +x cmake-3.19.6-Linux-x86_64.sh && \
2516
./cmake-3.19.6-Linux-x86_64.sh --skip-license --prefix=/usr/local
2617

2718
RUN git clone -b main https://@github.com/mdkul22/picomotion.git
19+
ENV PICO_SDK_PATH=/opt/picomotion/lib/pico-sdk
20+
# Export environment variables
21+
RUN echo "export PICO_SDK_PATH=/opt/picomotion/lib/pico-sdk" >> ~/.bashrc
2822

2923
# Set the working directory to the example project
3024
WORKDIR /opt/picomotion
31-
25+
RUN git submodule init && git submodule update --recursive
3226
# Create a build directory
3327
RUN mkdir build && cd build && cmake .. && make -j$(nproc)
3428

lib/pico-sdk

Submodule pico-sdk added at 6a7db34

0 commit comments

Comments
 (0)