arm-crypto-lib/arm-makefile.inc

70 lines
2.2 KiB
PHP
Raw Permalink Normal View History

2012-04-03 18:16:38 +00:00
TOOLCHAIN = arm-elf-#
2010-05-12 22:12:38 +00:00
MCU_TARGET = cortex-m3
2011-08-19 00:36:30 +00:00
MCU_OPTS = -mthumb
2012-04-03 18:16:38 +00:00
OPTIMIZE = -Os -fomit-frame-pointer
DEBUG = -gdwarf-2
2011-02-02 01:25:44 +00:00
WARNING = -pedantic -Wall -Wstrict-prototypes -Werror
2010-05-12 22:12:38 +00:00
DEFS = -D$(call uc, $(subst -,_,$(MCU_TARGET)))
2011-07-19 16:20:06 +00:00
FLASHCMD = $(OPENOCD) -f openocd.cfg \
-c "init" \
-c "halt" \
-c "flash write_image erase $(1) 0 bin" \
-c "reset run" \
-c "shutdown"
2011-08-19 00:36:30 +00:00
DEP_DIR = deps/#
TEST_DIR = test/#
BIN_DIR = bin/#
TESTSRC_DIR = test_src/#
2010-05-12 22:12:38 +00:00
ERASECMD =
TESTPORT = /dev/ttyUSB2
2010-05-12 22:12:38 +00:00
TESTPORTBAUDR = 115200
TESTLOG_DIR = testlog/#
2011-08-19 00:36:30 +00:00
TESTPREFIX = nessie-#
2010-05-12 22:12:38 +00:00
SPEEDTOOL = host/get_performance.rb
2011-08-19 00:36:30 +00:00
SPEEDLOG_DIR = speed_log/#
2010-05-12 22:12:38 +00:00
SPEEDPREFIX =
SPEEDCMD = performance
SIZE_DIR = size_log/#
LIST_DIR = listings/#
STAT_DIR = stats/#
AUTOASM_DIR = autoasm/#
2011-08-19 00:36:30 +00:00
LIB_DIR = lib/#
LIB_NAME = libcrypto.a
2010-05-12 22:12:38 +00:00
AUTOASM_OPT = -S
CSTD = gnu99
2011-08-19 00:36:30 +00:00
LIBS = c gcc
2010-05-12 22:12:38 +00:00
2011-08-19 00:36:30 +00:00
COMMON_FLAGS = -ffunction-sections -fdata-sections \
$(DEBUG) $(WARNING) -std=$(CSTD) $(OPTIMIZE) \
-mcpu=$(MCU_TARGET) $(MCU_OPTS) $(DEFS) -MMD
2010-05-12 22:12:38 +00:00
2011-08-19 00:36:30 +00:00
override CFLAGS_A = $(COMMON_FLAGS) \
-MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $(1)))
override CFLAGS = $(COMMON_FLAGS) \
-MF$(DEP_DIR)$(patsubst %.o,%.d,$(notdir $@))
2010-05-12 22:12:38 +00:00
override LDFLAGS = -g -T lm3s9b90.ld -Wl,--gc-sections \
2011-08-19 00:36:30 +00:00
-Wl,--entry=reset_isr \
-Wl,-Map,# no space at the end
2011-07-19 16:20:06 +00:00
override ASFLAGS = -mcpu=$(MCU_TARGET)
2010-05-12 22:12:38 +00:00
SIZESTAT_FILE = sizestats.txt
2011-08-19 00:36:30 +00:00
CC = $(TOOLCHAIN)gcc
2011-02-01 00:12:24 +00:00
OBJCOPY = $(TOOLCHAIN)objcopy
OBJDUMP = $(TOOLCHAIN)objdump
SIZE = $(TOOLCHAIN)size
2011-07-19 16:20:06 +00:00
OPENOCD = openocd
2010-05-12 22:12:38 +00:00
READELF = readelf
2011-08-19 00:36:30 +00:00
AR = $(TOOLCHAIN)ar
CHMOD = chmod
CHOWN = chown
CHGRP = chgrp
RM = rm
2010-05-12 22:12:38 +00:00
RUBY = ruby
GET_TEST = host/get_test.rb
MAKE = make
MAKE2GRAPH = ~/bin/make2graph.rb
TWOPI = twopi