analogdevicesinc / no-OS

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

tools: scripts: make TARGET case insensitive #2115

Closed amiclaus closed 4 months ago

amiclaus commented 4 months ago

Pull Request Description

This is a small suggestion for improvement.

Currently when using uppercase letters for specifying the maxim target an unrelated error is thrown.

Allow users to use both lower case and uppercase letters when specifying the target.

For maxim targets we already have uppercase and lowercase variables initialized with TARGET_UCASE, TARGET_LCASE so they can be directly used for this feature.

With this patch both versions work, for example: make TARGET=max32650 make TARGET=MAX32650

PR Type

PR Checklist