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

Better non-Linux support #2524

Merged
merged 3 commits into from
Mar 26, 2018
Merged

Better non-Linux support #2524

merged 3 commits into from
Mar 26, 2018

Conversation

dankm
Copy link
Contributor

@dankm dankm commented Mar 12, 2018

These changes allow a user to select which version of grep and avr-gcc to use. This is useful because FreeBSD and OpenBSD don't necessarily use GNU grep, and sometimes a developer might install a non-default version of avr-gcc.

Some UNIXy systems (FreeBSD for example) don't use GNU grep by default.
Allow the user to specify which grep implementation to use so that
GNU grep can be specified.
Don't hardcode "avr-gcc", and allow strings such as "avr-gcc8", or
"avr-gcc-7.3.0" to match checks for "avr-gcc".
@jackhumbert
Copy link
Member

Nice! I'm not super familiar with how grep is accessed - do all systems define GREP properly?

@dankm
Copy link
Contributor Author

dankm commented Mar 17, 2018

It's actually weakly set to "grep" in the avr.mk makefile. It's not set by default on any platform, so it just uses "grep" unless a user runs "make GREP=gnugrep" or similar. A future change could be to decide how to set GREP based on platform.

@jackhumbert
Copy link
Member

Ah, right! Perfect - thanks :)

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.

2 participants