Skip to content
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

avr: platform.txt: sketch_flags, -DPLATFORM={version} #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

phd
Copy link

@phd phd commented Jul 26, 2018

platform.txt:

  • sketch_flags for use with ./platform.sketch.txt
  • define -DPLATFORM= with platform {version}
  • added -DARDUINO_ARCH= and -DARDUINO_BOARD=

See: arduino/arduino-builder#282

facchinm added a commit that referenced this pull request Oct 19, 2018
Improved baud rate settings formula
Copy link
Collaborator

@matthijskooijman matthijskooijman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not so sure about the sketch_flags stuff (and I expect it might raise more discussion, as it ties in with previous discussion about setting sketch-specific options that has of yet been unresolved).

However, adding a PLATFORM version define sounds like a sane thing to do. Especially since the IDE and core versions are no longer tied together since quite some time, checking ARDUINO is no longer effective to check for the presence of certain features of bugfixes in the core.

Adding ARDUINO_BOARD and ARDUINO_ARCH is probably a good idea, though I wonder if that stuff should really be done in arduino-builder with some "default flags" thing (in which case the ARDUINO define and some others should be moved as well), to get some consistency in different cores...

@@ -34,6 +34,7 @@ compiler.elf2hex.flags=-O ihex -R .eeprom
compiler.elf2hex.cmd=avr-objcopy
compiler.ldflags=
compiler.size.cmd=avr-size
compiler.define=-DARDUINO= -DPLATFORM=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this variable? It seems unused?

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants