I would guess it's this one - https://github.com/raspberrypi/pico-setup/blob/master/pico_setup.shCan you link me to the script?
The pertinent part seems to be https://github.com/raspberrypi/pico-setup/blob/master/pico_setup.sh#L99, see the end for 'picotool' installation -
Code:
# Debugprobe and picotoolfor REPO in debugprobe picotooldo DEST="$OUTDIR/$REPO" REPO_URL="${GITHUB_PREFIX}${REPO}${GITHUB_SUFFIX}" git clone $REPO_URL # Build both cd $DEST git submodule update --init mkdir build cd build cmake ../ make -j$JNUM if [[ "$REPO" == "picotool" ]]; then echo "Installing picotool to /usr/local/bin/picotool" sudo cp picotool /usr/local/bin/ fi cd $OUTDIRdonePrior to Pico SDK 2.0.0 just having the executable in place was enough but that changed for Pico SDK 2.0.0 and I guess that change did not make it into 'pico_setup.sh'.
That would probably explain why 'picotool' is available as a system command but Pico SDK 'cmake' builds keep downloading it and rebuilding it again and again.
We now have three different ways to install the Pico development environment -
- Manual install as per official documentation
- Automated 'pico_setup.sh' - which seems to have diverged from manual install
- Official VS Code Pico Extension install - which is different to the above
Statistics: Posted by hippy — Mon Feb 10, 2025 10:32 am