chipKIT® Development Platform

Inspired by Arduino™

Using git to manage chipKIT projects

Created Mon, 05 Dec 2011 13:11:44 +0000 by Jacob Christ


Jacob Christ

Mon, 05 Dec 2011 13:11:44 +0000

I'm wondering if anyone has any suggestions for managing chipKIT projects that use libraries using the git version control system. Since the library directory exists in the same directory as individual projects it seems impossible to make a library that is used by your project a submodule.

Jacob


jmlynesjr

Fri, 04 Jan 2013 17:30:40 +0000

Jacob:

Did you ever settle on an approach for this?

I just set up a git repo to publish my example code for wider use.

My sketches are located in home/Projects/chipKIT-sketches. Libraries in home/Projects/chipKIT-sketches/libraries.

And for sending examples to github I setup home/Projects/chipKIT-sketches/chipKITgit.

For moving to git hub, so far, I am moving the code to ..../chipKITgit and commiting from there.

Any better ideas?

James


Jacob Christ

Sat, 26 Jan 2013 22:19:44 +0000

James,

One of my colleges has come up with a hack... He wrote a perl script that moves libraries stored in a submodule into the contributed libraries directory when you want to use them and work with them, then back when you are done and want to commit.

The Arduino build systems and the prevalence Arduino and compatible systems such as chipKIT which have adopted this build system is a detriment to humanity. Fortunately the problems have been recognized by both the Ardunio developer community and the chipKIT developer community and hopefully it will be fixed soon.

Another alternative we are exploring is to dump MPIDE for building and just use the compiler on the command line.

Jacob