File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "lib/pico-sdk "]
2
+ path = lib/pico-sdk
3
+ url = https://github.com/raspberrypi/pico-sdk.git
Original file line number Diff line number Diff line change @@ -10,27 +10,23 @@ RUN apt-get update && \
10
10
# Set the working directory
11
11
WORKDIR /opt
12
12
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
-
22
13
# Install CMake
23
14
RUN wget https://github.com/Kitware/CMake/releases/download/v3.19.6/cmake-3.19.6-Linux-x86_64.sh && \
24
15
chmod +x cmake-3.19.6-Linux-x86_64.sh && \
25
16
./cmake-3.19.6-Linux-x86_64.sh --skip-license --prefix=/usr/local
26
17
27
18
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
28
22
29
23
# Set the working directory to the example project
30
24
WORKDIR /opt/picomotion
31
-
25
+ RUN git submodule init && git submodule update --recursive
32
26
# Create a build directory
33
- RUN mkdir build && cd build && cmake .. && make -j$(nproc)
27
+ RUN mkdir build
28
+ RUN cd build && cmake ..
29
+ RUN cd build && make -j$(nproc)
34
30
35
31
FROM ubuntu:20.04
36
32
You can’t perform that action at this time.
0 commit comments