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