| 5677 |
dpurdie |
1 |
###############################################################################
|
| 6177 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 5677 |
dpurdie |
3 |
#
|
| 5679 |
dpurdie |
4 |
# File: TOOLSET/CORTEXM3_IAR.DEF
|
|
|
5 |
# Contents: TOOLSET Environment definitions
|
|
|
6 |
# Make definitions for the CORTEXM3_IAR tools.
|
| 5677 |
dpurdie |
7 |
#
|
|
|
8 |
# Description:
|
|
|
9 |
# This file provides Toolset definitions for the target makefiles
|
|
|
10 |
# The file is dropped into the top of the generated platform specfic makefile
|
|
|
11 |
#
|
|
|
12 |
###############################################################################
|
|
|
13 |
|
|
|
14 |
toolset = avr_iar
|
|
|
15 |
|
| 5732 |
dpurdie |
16 |
o = o
|
|
|
17 |
s = s
|
|
|
18 |
a = a
|
|
|
19 |
exe = srec
|
| 5677 |
dpurdie |
20 |
|
|
|
21 |
.SUFFIXES: .asm
|
|
|
22 |
.PHONY: iar
|
|
|
23 |
|
|
|
24 |
#
|
|
|
25 |
# Ensure that the compiler can be found
|
|
|
26 |
# Use the environment varibales
|
|
|
27 |
# PROGRAMFILES - Windows Program Files (Magic happens in 64bit windows)
|
|
|
28 |
# CORTEXM3_IAR - Root of the AVR workbench
|
|
|
29 |
#
|
|
|
30 |
PROGRAMFILES ?= C:/Program Files
|
| 5757 |
dpurdie |
31 |
GBE_CORTEXM3_IAR ?= $(PROGRAMFILES)/IAR Systems/Embedded Workbench 7.4
|
| 5677 |
dpurdie |
32 |
export GBE_CORTEXM3_IAR
|
|
|
33 |
|
|
|
34 |
cortexm3:
|
| 6177 |
dpurdie |
35 |
$(AA_PRE)if [ -z "$$GBE_CORTEXM3_IAR" ]; then echo "GBE_CORTEXM3_IAR env var not set"; exit 2; fi; \
|
| 5677 |
dpurdie |
36 |
if [ ! -d "$$GBE_CORTEXM3_IAR" ]; then echo "ERROR: GBE_CORTEXM3_IAR directory not found ($$GBE_CORTEXM3_IAR). Compiler not available"; exit 2; fi; \
|
|
|
37 |
echo "[Toolset CORTEXM3 - IAR Systems]";
|
|
|
38 |
|
|
|
39 |
iar_avr = $(subst \,/,$(strip $(GBE_CORTEXM3_IAR)))
|
|
|
40 |
|
|
|
41 |
#
|
|
|
42 |
# Define the compiler specfic names and paths for the various tools
|
| 5679 |
dpurdie |
43 |
# Retain 'avr_iar' so we can reuse the .RUL file
|
| 5677 |
dpurdie |
44 |
#
|
|
|
45 |
COMPILER_HOME=$(iar_avr)
|
|
|
46 |
COMPILER_HOME_AVR=$(iar_avr)/arm
|
|
|
47 |
|
|
|
48 |
avr_iar_assembler = $(COMPILER_HOME_AVR)/bin/iasmarm.exe
|
|
|
49 |
avr_iar_compiler = $(COMPILER_HOME_AVR)/bin/iccarm.exe
|
|
|
50 |
avr_iar_cpp_compiler = $(COMPILER_HOME_AVR)/bin/iccarm.exe
|
|
|
51 |
avr_iar_linker = $(COMPILER_HOME_AVR)/bin/ilinkarm.exe
|
|
|
52 |
avr_iar_librarian = $(COMPILER_HOME_AVR)/bin/iarchive.exe
|
| 5726 |
dpurdie |
53 |
avr_iar_elftool = $(COMPILER_HOME_AVR)/bin/ielftool.exe
|
| 5677 |
dpurdie |
54 |
avr_linker_lib_dir = $(COMPILER_HOME_AVR)/lib
|
|
|
55 |
avr_linker_lib = $(avr_linker_lib_dir)/cl6s-ec
|
|
|
56 |
|
|
|
57 |
|