queezythegreat / arduino-cmake

Arduino CMake Build system
645 stars 216 forks source link

Dropped support of AVRSIZE_PROGRAM "-C" and "--mcu" parameters #103

Open danielmorlock opened 9 years ago

danielmorlock commented 9 years ago

Hi,

unfortunately, the support of the "-C" and "--mcu" parameter has been dropped to the binutils size command (tested on binutils 2.20 and 2.24) but Arudino.cmake still relies on these: https://github.com/queezythegreat/arduino-cmake/blob/master/cmake/Platform/Arduino.cmake#L1870

I found this patch that adds support for "-C" and "--mcu": http://distribute.atmel.no/tools/opensource/avr-gcc/binutils-2.20.1/30-binutils-2.20.1-avr-size.patch But this patch is (no more) included in the common dist packages i.e. for Arch, Gentoo, Ubuntu or SLES.

Is there a know workaround or solution so that we don't have to manually patch binutils in order to use Arduino CMake?

Thanks, Daniel.

queezythegreat commented 9 years ago

For now the only solution for now would be to comment out https://github.com/queezythegreat/arduino-cmake/blob/master/cmake/Platform/Arduino.cmake#L1099.