analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
871 stars 1.63k forks source link

tools: scripts: Delete .vscode on reset #2193

Closed CiprianRegus closed 1 month ago

CiprianRegus commented 1 month ago

After 86d407b("tools:scripts: Don't overwrite .vscode config if it already exists") the vscode configuration files (contents of the .vscode directory) are no longer overwritten on every make build. This may lead to confusion if the build was acciedentally done for a different platform than the one intended.

Such a situation may occur if the user runs "make build" (without the PLATFORM variable), resulting in generating the vscode configurations for the STM32 platform. From this point there is no way to change the target to another platform using the build system. Fix this by removing the .vscode directory on "make reset".

Pull Request Description

Please replace this with a detailed description and motivation of the changes. You can tick the checkboxes below with an 'x' between square brackets or just check them after publishing the PR. If this PR contains a breaking change, list dependent PRs and try to push all related PRs at the same time.

PR Type

PR Checklist