Clean up preferences handling and make them more consistent #4431
Labels
arduino-builder
The tool used to handle the Arduino sketch compilation process
arduino-cli
Related to the arduino-cli tool
Component: Documentation
Related to Arduino's documentation content
feature request
A request to make an enhancement (not a bug fix)
Currently, there are a lot of places where configuration values can come from. There is preferences.txt, boards.txt, platform.txt, programmers.txt and some runtime generated values. Each of these somehow contribute to the values used for building, uploading, showing the interface, etc., but I believe this process is not entirely clear. Some values can be set in one place, some can be overridden in other places (but not all), etc.
It would be good to:
As part of this, overriding options should probably be more explicit, and less accidental or ad-hoc as it is now. Explicitely specifying overrides (using e.g. an
override.
prefix) could help here, and/or making the source of a preference (or perhaps more the intended use of it) using prefixes likeboard.
,build.
,platform.
,pref.
etc. I'm not sure how this should work exactly yet, but some thought should go into this in any case.@lmihalkovic voiced similar ideas here: #4102 (comment)
Another related issue that should probably be fixed as part of this, is allowing custom compiler flags, as discussed in #421.
The text was updated successfully, but these errors were encountered: