I have recently started a couple of projects based on the great Sparkcore board and although the online IDE and the cloud building functionalities are great they are also very slow. If you are like me and want to code small iterations and build frequently it is a bit frustrating…
So I moved to code and build locally.
Here the problem was that being working on two projects in parallel meant having two copies of the core-firmware repo and if you use a code versioning system for your code (GIT, SVN,…) you have two main options: forking and have big repos or ignoring a bunch of files (but having the whole firmware code in the working copy, presumably outdated).
So I decided to go the other way round. Projects with just the minimum required files and a way to transparently “merge” and “unmerge” a single core-firmware folder with my project. I have created a small bash script that does that and allows you to build and upload the code from the command line without leaving you project folder.
I don’t know if I am reinventing the wheel but “my” wheel is making me save a lot of time. I can manage my build from within my favourite IDE (vim) keeping the main core-firmware folder clean and up to date.
You can check out the code at https://bitbucket.org/xoseperez/spark-util. There is a simple README file with documentation.
Any comment will be very welcomed.