-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save build properties in profiles #1995
Comments
Hi @alranel. Thanks for your suggestion.
Even though the requested capability of being able to define properties in profiles does have valid advanced use cases (e.g., arduino/tooling-rfcs#9), in this specific case it is not necessary and I would even strongly discourage this approach when using Arduino CLI from the command line since these properties are not intended to be part of the public interface of the platform and might be changed at any time without the platform developers considering it a breaking change. The correct approach to setting "custom board options" is via the FQBN. The format of the FQBN is like this:
You can learn all the available menu IDs and option IDs for a given board by running the following
(where For example:
Here we can see that the ID for the "Flash Size" menu is So the full FQBN is:
Much easier than digging up all those build properties! Setting custom build options via the FQBN is covered in the platform specification (though not in a very user friendly manner) and to some extent in the FAQ. I do think the documentation of this needs to be expanded though as it is a common source of confusion. We are using this public issue to track that: #355
|
Thank you for the answer Per! That was not easy to understand from documentation indeed, and might also be a good idea to mention this in the examples related to |
Closing as this is already tracked by #355 |
Describe the request
Extend the build profiles feature to also include build properties in the profiles.
Suppose you're compiling a sketch for ESP8266. In the IDE, you'll select multiple options from the Tools menu (like Flash Size, Erase Flash etc.) which affect the compilation of the core. In the CLI, unfortunately, the menu structure is not exposed so instead of using those shortcuts you need to specify all the single properties. For instance:
Now, when adding
--dump-profile
I would expect such build properties to be included in the resulting file in order to get a "reproducibile build". However, they are not included.TL;DR: build properties should be added to the sketch file specification and then implemented in
--dump-profile
and--profile
.Describe the current behavior
As of now, the
--dump-profile
option implemented as part of the "reproducible builds" project (see RFC) includes information about board, core and libraries but does not include any additional information such as build properties.Arduino CLI version
0.27.1
Operating system
macOS
Operating system version
10.15.7
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: