The Sleep Pixies suggested that what I am really advocating for is keeping old copies of the Pico SDK. That way I can build against any SDK with a simple "PICO_SDK_PATH=~/pico/pico-sdk-X.Y.Z cmake ..' then 'make'. No need to go into the SDK itself and issue whatever 'git' incantations are needed to get that version, other versions, or return to the latest. No risk of forgetting to return to the latest.And, to your point, there is nothing wrong with getting rid of the old and starting with a clean slate if you don't have any interest in the commit-history or local tweaks that will go away in the process.
It is true that local tweaks do have to be reapplied after each cloning but I consider that generally a good thing as it has forced me to keep my documentation on installing the SDK up-to-date. That's handy when a new OS is released or I configure a new Pi and I am forced to start from a clean sheet.
But none of the 'git' commit history etc should disappear; It seems to me that's in all my cloned directories should I want to access that, though only to the point of release for older SDK.
Statistics: Posted by hippy — Fri Aug 01, 2025 10:07 am