4 DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
5 FLASHCMD = arm-elf-gdb -x gdb-flash #
9 TESTSRC_DIR = test_src/
11 TESTPORT = /dev/ttyUSB1
12 TESTPORTBAUDR = 115200
13 TESTLOG_DIR = testlog/#
15 SPEEDTOOL = host/get_performance.rb
16 SPEEDLOG_DIR = speed_log/
18 SPEEDCMD = performance
22 AUTOASM_DIR = autoasm/#
27 override CFLAGS_A = -fomit-frame-pointer \
28 -mthumb -ffunction-sections -fdata-sections -MMD \
29 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1))) \
30 -I. -Itest_src -g -pedantic -std=$(CSTD) \
31 -Wall $(OPTIMIZE) -Wstrict-prototypes \
32 -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)
33 override CFLAGS = -fomit-frame-pointer \
34 -mthumb -ffunction-sections -fdata-sections -MMD \
35 -MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@)) \
36 -I. -Itest_src -g -pedantic -std=$(CSTD) \
37 -Wall $(OPTIMIZE) -Wstrict-prototypes \
38 -mcpu=$(MCU_TARGET) -Wa,-mthumb $(DEFS)
40 override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
41 -Wl,--entry=reset_isr -lc -lgcc \
42 -Wl,-Map,# no space at the end
43 override ASFLAGS = -mthumb -mcpu=$(MCU_TARGET) -Wa,--g -Wa,-mthumb
45 SIZESTAT_FILE = sizestats.txt
47 OBJCOPY = arm-elf-objcopy
48 OBJDUMP = arm-elf-objdump
52 GET_TEST = host/get_test.rb
54 MAKE2GRAPH = ~/bin/make2graph.rb