-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
arduino-builder overrides build.arch value set in platforms.txt #1241
Comments
Hi @bobc , are you on IDE 1.6.8? From your description I can't understand what the real issue is, but maybe it has been solved in master by merging arduino/arduino-builder#125. |
Hi @facchinm Yes, I'm using IDE 1.6.8 I tried nightly build and it has the same problem, plus an additional bug (missing include path) I have attached files to illustrate the problem. In platform.txt, at line 42, I set "build.arch=SAM". Therefore I would expect the expanded definition to read -DARDUINO_ARCH_SAM In build_output.txt at line 17, the actual value is "-DARDUINO_ARCH_DUET" It appears that build.arch is being set to the capitalized variant name or board name, not what I am setting. Also attached, my boards.txt. I hope that makes sense, thanks. |
Hi @bobc , |
I'm not inheriting from another board, I am creating new ones. "sam" is just an example name, I could have written "foo", or "bambleweeny57". "Dropping an override" is the clue here. Overrides should drop the default case. If the default drops the override, it is not an override, is it? I believe that settings in platform.txt should override whatever defaults are applied by Arduino builder, that is way all the other settings work, and not the other way round. Therefore I think you are confirming that there is a bug in the builder. Even if you do not think it is a bug, please consider it as a feature request "a platform developer should be able to override default settings applied by the builder". |
Setting build.arch in platforms.txt does not work, it appears the builder substitutes the name of something else.
Workaround is to just ignore build.arch and hard code the name in compiler recipes e.g.
-DARCH_KINETIS_K60
The text was updated successfully, but these errors were encountered: