]> git.cryptolib.org Git - arm-crypto-lib.git/blob - Makefile_arm7tdmi_conf.inc
fixing bugs reported by Christian Dernehl
[arm-crypto-lib.git] / Makefile_arm7tdmi_conf.inc
1 BOARD          = arm7tdmi_generic
2 MCU_TARGET     = arm7tdmi 
3 MCU_OPTS       = -marm -mthumb-interwork
4 OPTIMIZE       = -Os
5 FLASHCMD       = $(OPENOCD) -f openocd.cfg \
6                      -c "init" \
7                      -c "halt" \
8                      -c "flash write_image erase $(1) 0 bin" \
9                      -c "reset run" \
10                      -c "shutdown"
11
12 override CFLAGS_A       = $(COMMON_FLAGS) \
13                       -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) 
14 override CFLAGS         = $(COMMON_FLAGS) \
15                       -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@))
16                       
17 override LDFLAGS       =  -g -Wl,--gc-sections \
18                          -Wl,--entry=reset_isr  \
19                          -Wl,-Map,# no space at the end
20                           
21 override ASFLAGS           =  -mcpu=$(MCU_TARGET) 
22