queezythegreat/arduino-cmake — pull request #56 by igormiktor (2013-01-05 03:32:22+00:00)
Title: Added some features to support pure AVR (non-Arduino) usage

Hi Tomasz,

First of all, thank you very much for arduino-cmake. It is wonderful!

I end up doing more and more pure AVR (non-Arduino) coding. Your toolset works great for doing this kind of work, simply using the NO_AUTOLIBS and MANUAL options. It is better than any of the other AVR toolchains, especially as I can use a single toolchain to work in either Arduino or AVR mode.

Still, I've worked it long enough that I wanted to recommend some changes to make this usage even easier and pass them for your consideration. Please look at branch "igor" in my forked version of your repository.

There are 4 distinct, independent commits that do the following:

1 - Fix minor errors in the documentation that appears in the comments section of your code
2 - Changes the size reporting to report on both fimware and eeprom image sizes and provide the more detailed by section information
3 - Change the upload target so that it uploads both firmware and eeprom images
4 - Adds two new functions, generate_avr_firmware() and generate_avr_library() that work just like generate_arduino_XXX() except that you don't pass NO_AUTOLIBS or MANUAL -- these options are implied. I coded these functions to just call the corresponding generate_arduino_XXX() functions appending the NO_AUTOLIBS and MANUAL arguments.

I'm not very experienced with CMake, so pehaps there are better ways to code the functions in patch 4.

Thanks for considering these changes.

Igor

igormt@alumni.caltech.edu