avr: Remove F_CPU compile time definition

Directly use the Kconfig defined CONFIG_CLOCK_FREQ in the code and
avoid defining F_CPU.  Also, remove the unnecessary O2 option - that
is already the default from the main makefile.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2017-03-28 12:11:02 -04:00
parent 31e78c90e2
commit 18f4d343f5
3 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ CROSS_PREFIX=avr-
dirs-y += src/avr lib/pjrc_usb_serial
CFLAGS-y += -O2 -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ)
CFLAGS-y += -mmcu=$(CONFIG_MCU)
LDFLAGS-y += -Wl,--relax
# Add avr source files