Go Down

Topic: Eclipse plugin: How to preserve source files extensions for object files?  (Read 155 times) previous topic - next topic

cengizkirilmaz

Eclipse version: 4.4.2
AVR-eclipse plugin version: 2.4.1

I don't use precompiled core lib from Arduino IDE, but include all necessary core sources as "external sources" in Eclipse and compile core along with my sources.

Kırılmaz Makina: https://kirilmazmakina.com/


Everything compiled OK, but I have following warning in build log:
Code: [Select]

arduino/subdir.mk:258: warning: overriding recipe for target 'arduino/wiring_pulse.o'
arduino/subdir.mk:251: warning: ignoring old recipe for target 'arduino/wiring_pulse.o'


in mentioned subdir.mk, I have
Code: [Select]

arduino/wiring_pulse.o: /usr/share/arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.S
       @echo 'Building file: $<'
       @echo 'Invoking: AVR Assembler'
....................................
arduino/wiring_pulse.o: /usr/share/arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.c
       @echo 'Building file: $<'
       @echo 'Invoking: AVR Compiler'
....................................


i.e. I have same targets for wiring_pulse.S and wiring_pulse.c from Arduino core. Obviously first one is ignored and does not get into resulting binary.

Question: is it possible to configure AVR-eclipse plugin so, that it will preserve source files extensions (like it does Arduino IDE), so that i get targets like
Code: [Select]

arduino/wiring_pulse.S.o: /usr/share/arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.S
.....
arduino/wiring_pulse.c.o: /usr/share/arduino/hardware/arduino/avr/cores/arduino/wiring_pulse.c
.....

Go Up