If you have checked out the sourcecode for lib430 yet, you have probably already used the chef to build a library for your mcu of taste. However, if you use several different mcus, and would like to have it built for all of them we can use the buildall.sh script.
Also, you should not remember to call svn update frequently as there is a lot of work going on on the code all the time.
noccy@noccy-desktop:~/Development/mspdev/lib430$ ./buildall.sh You must first create a file named MCUS and populate it with one microcontroller per line
So let’s create a MCUS file. Just use “cat > MCUS” if you are on *nix. Put in the mcus one per line and hit Ctrl-D when you are done.
noccy@noccy-desktop:~/Development/mspdev/lib430$ cat > MCUS msp430g2553 msp430f2013 msp430g2452 ^D
Calling on buildall will now call the chef to build for each of the controllers:
noccy@noccy-desktop:~/Development/mspdev/lib430$ ./buildall.sh
== Cooking for: msp430g2553 ==
libair : Failed : See msp430g2553/libair.log
·· libarduino : Successful : (1 libraries, 1 headers)
·· libcomm : Successful : (1 libraries, 3 headers)
·· libcore : Successful : (0 libraries, 4 headers)
libfat : Failed : See msp430g2553/libfat.log
libhal : Failed : See msp430g2553/libhal.log
·· liblcd : Successful : (1 libraries, 1 headers)
libmidi : Failed : See msp430g2553/libmidi.log
·· libsound : Successful : (0 libraries, 0 headers)
:: 3 libraries and 9 headers have been installed.
== Cooking for: msp430f2013 ==
libair : Failed : See msp430f2013/libair.log
libarduino : Failed : See msp430f2013/libarduino.log
libcomm : Failed : See msp430f2013/libcomm.log
·· libcore : Successful : (0 libraries, 4 headers)
libfat : Failed : See msp430f2013/libfat.log
libhal : Failed : See msp430f2013/libhal.log
·· liblcd : Successful : (1 libraries, 1 headers)
libmidi : Failed : See msp430f2013/libmidi.log
·· libsound : Successful : (0 libraries, 0 headers)
:: 1 libraries and 5 headers have been installed.
== Cooking for: msp430g2452 ==
libair : Failed : See msp430g2452/libair.log
·· libarduino : Successful : (1 libraries, 1 headers)
libcomm : Failed : See msp430g2452/libcomm.log
·· libcore : Successful : (0 libraries, 4 headers)
libfat : Failed : See msp430g2452/libfat.log
libhal : Failed : See msp430g2452/libhal.log
·· liblcd : Successful : (1 libraries, 1 headers)
libmidi : Failed : See msp430g2452/libmidi.log
·· libsound : Successful : (0 libraries, 0 headers)
:: 2 libraries and 6 headers have been installed.
noccy@noccy-desktop:~/Development/mspdev/lib430$
One thing you might notice is that some of the libraries doesn’t build for some of the microcontrollers. This can be sorted with custom #defines in the various libraries to adapt to the controller. This is where you come in. If you can get something working that wasn’t, your patches are more than welcome. I am a single developer, and this is a work in progress. So I hope you enjoy lib430!
