]> git.cryptolib.org Git - arm-crypto-lib.git/blobdiff - Makefile_m644_conf.inc
new make system
[arm-crypto-lib.git] / Makefile_m644_conf.inc
diff --git a/Makefile_m644_conf.inc b/Makefile_m644_conf.inc
new file mode 100644 (file)
index 0000000..8d698e3
--- /dev/null
@@ -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)