arduino-cmake icon indicating copy to clipboard operation
arduino-cmake copied to clipboard

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

Open danielmorlock opened this issue 10 years ago • 1 comments

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.

danielmorlock avatar Nov 26 '14 09:11 danielmorlock

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.

queezythegreat avatar Nov 26 '14 19:11 queezythegreat