Ah! Thanks for the reply. Sounds about as ad-hoc as what I was doing :-)
I just found a method with platformio that actually works reasonably well:
I do a clone like you did of the libraries, but put them into <mylibdir>/framework-teensyduino, so it includes framework-teensyduino/cores, librarries, etc.
Then, I can point platformio over to get the files directly from my local directory instead of git by doing something like this:
platformio.ini
Code:
[env:teensy41-dev]
board = teensy41
framework = arduino
platform = git@gitlab.com:signal-essence/teensy/platform-teensy.git
; For local development, use a local checkout of the framework
platform_packages = framework-arduinoteensy @ file:///home/caleb/se/framework-arduinoteensy
;
; for non-local develoopment, use this one.
;platform_packages = framework-arduinoteensy @ git@gitlab.com:<your local copy of the stuff>/framework-arduinoteensy.git
Then when building I
Code:
rm -rf ~/.platformio/packages/framework-arduinoteensy .pio/ && pio run
to rebuild and make sure it picks up the latest edits.
Thanks!