-
Notifications
You must be signed in to change notification settings - Fork 26
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
pull in LUFA as a git submodule for simplified install procedure #4
Comments
LUFA itself is not a git repo. |
It has been for a while: https://github.com/abcminiuser/lufa |
ohh yeah? that's cool! I'll add it in as a submodule when I have some free time, being super busy for the moment. for now I'll leave this issue open as a reminder. |
I already did it on my home machine and changed all include paths accordingly, I'll create a PR this evening. Should I make a separate issue for tracking the activate/deactivate scripts idea? |
The PR was confirmed to be working properly now. The only disadvantage is that you always have to |
These are the installation instructions as of today:
I think a few things could be improved about this. First, it would be helpful to allow using LUFA as a git submodule instead of manually copying it. This way a user can just use
git clone --recursive
to get everything they need.Additionally, it seems to me like there is little reason to actually execute step 3 of the installation instructions. Step 4 seems to be enough. I could see the argument of wanting to give more accurate error messages to people who accidentally import libraries using the USB core.
Either way, it would be enough to just append
.removed
to the filenames of these files and to enclose the lines in step 4 with#if 0
and#endif
or/*
and*/
. This way it would also be easier to activate and deactivate LUFA in a regular Arduino installation. To implement this, I'd write a simple script that does exactly what I described above, and another one to reverse these changes.This would mean that to install LUFA for Arduino, this command would be enough:
$ git clone --recursive https://github.com/Palatis/Arduino-Lufa.git LUFA; ./LUFA/activate
I'd be willing to implement this myself, any thoughts on the general idea?
The text was updated successfully, but these errors were encountered: