diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 42408ab..3c9491b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -66,12 +66,15 @@ RUN --mount=type=cache,target=/var/cache/dnf,id=dev-dnf \ ln -sf /usr/bin/clang /usr/bin/cc && \ ln -sf /usr/bin/clang++ /usr/bin/c++ -RUN git clone --single-branch --depth 1 -b "develop" https://github.com/stlink-org/stlink.git /tmp/stlink +RUN git clone --single-branch --depth 2 -b "develop" https://github.com/CreaxxOG/stlink.git /tmp/stlink && \ + cd /tmp/stlink && \ + git fetch origin 6622e2c4b9e28296ef14e7a0740b388eccb47987 && \ + git checkout 6622e2c4b9e28296ef14e7a0740b388eccb47987 RUN --mount=type=cache,target=/tmp/stlink/build \ - cd /tmp/stlink && \ - make -j release && \ - make install && \ - ldconfig + cd /tmp/stlink && \ + make -j release && \ + make install && \ + ldconfig # Fix for Fedora not finding libstlink.so.1 ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 diff --git a/README.md b/README.md index ebf3150..a4603fa 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ An RTOS designed and verified to enable reliable software updates and operation ### Development & Debugging Tools These tools are used for flashing, debugging, and other development tasks. -* `stlink`: For flashing and debugging on STM32 hardware. +* [stlink (Fork)](https://github.com/CreaxxOG/stlink): For flashing and debugging on STM32 hardware. * `arm-none-eabi-gdb`: The GNU debugger for ARM targets. * `cargo-binutils`: Provides `objdump`, `objcopy`, etc. for Rust.