X-Git-Url: https://git.cryptolib.org/?p=arm-crypto-lib.git;a=blobdiff_plain;f=Makefile_m644_conf.inc;fp=Makefile_m644_conf.inc;h=8d698e37d6be973a2c5af2581d861f2bfa513145;hp=0000000000000000000000000000000000000000;hb=566eed8328ea61e4b18a7a77031ca22cdaf21ccc;hpb=2b315cbc6459229aa65274be41647394be099b85 diff --git a/Makefile_m644_conf.inc b/Makefile_m644_conf.inc new file mode 100644 index 0000000..8d698e3 --- /dev/null +++ b/Makefile_m644_conf.inc @@ -0,0 +1,20 @@ + +MCU_TARGET = atmega644 +F_CPU = 20000000 +OPTIMIZE = -Os # -Os +EXTRALINK = +DEFS = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU) +BOARD_NAME = pollin_eval_m644 + +override CFLAGS_A = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) +override CFLAGS = -MMD -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) $(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) + +override LDFLAGS = -gdwarf-2 -Wl,-Map, +override ASFLAGS = -mmcu=$(MCU_TARGET) -Wa,--gdwarf-2 + +PROGRAMMER = avr911 +PROG_PORT = /dev/ttyUSB1 +DEFS = -D$(call uc, $(MCU_TARGET)) -DF_CPU=$(F_CPU) +FLASHCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER) -U flash:w:# no space at the end +#FLASHCMD = avrdude -p $(MCU_TARGET) -c usbasp -U flash:w:# no space at the end +RESETCMD = avrdude -p $(MCU_TARGET) -P $(PROG_PORT) -c $(PROGRAMMER)