This repository was archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Arch linux support #81
Merged
MrPointer
merged 7 commits into
arduino-cmake:master
from
TellowKrinkle:ArchLinuxSupport
Apr 22, 2019
Merged
Arch linux support #81
MrPointer
merged 7 commits into
arduino-cmake:master
from
TellowKrinkle:ArchLinuxSupport
Apr 22, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Now tested on Fedora as well
MrPointer
MrPointer
suggested changes
Apr 20, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TellowKrinkle Many thanks for this extremely useful PR!
I left a note in one of the files, please take a look at it. After that we can merge it 😃
Does that seem right?
MrPointer
MrPointer
approved these changes
Apr 22, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does LGTM, merging.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds support for the Arduino IDE available from the arduino and arduino-avr-core arch linux repositories. All examples now compile assuming you've installed the required Arduino libraries and set
AUTO_SET_SKETCHBOOK_PATH=ON.Hopefully fixes #53 (for Arch Linux, Ubuntu ships an ancient version 1.0.5 of the IDE, untested on Fedora)
AFAIK Fedora does something similar to Arch but I haven't tested that yet so if someone with Fedora could test that would be great
Major differences between Arch install and the default distribution:
/usr/bininstead of a subdirectory of/usr/share/arduinoavrdude.confis in/etcinstead of a subdirectory of/usr/share/arduinoARDUINO_SDK_ROOT_PATHso I just set that to/if this is the case. It didn't break my compiling of the examples, but if you do think that could break anything important please say so/usr/share/arduino/libraries, all Arduino base libraries (likeStepper) are installed from the Arduino GUI package manager and get put in the user's sketchbook libraries folder.AUTO_SET_SKETCHBOOK_PATH=ONor supply a sketchbook pathOther Changes
~/.arduino15on linux and~/Library/Arduino15on mac. Not sure what the old path was to, but I left it in as a fallback if the above paths don't existCMAKE_HOST_ARCHLINUX AND ${USE_ARCHLINUX_BUILTIN_SUPPORT}check with a check for the existence of${ARDUINO_SDK_PATH}/hardware/archlinux-arduino. The above check wasn't working for me, and if your arduino folder contains anarchlinux-arduinosubdirectory I would be surprised if that wasn't what you were supposed to use.