| Line 1... |
Line 1... |
| 1 |
###############################################################################
|
1 |
###############################################################################
|
| 2 |
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
|
2 |
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
|
| 3 |
#
|
3 |
#
|
| 4 |
# File: TOOLSET/CORTEXM3_IAR.rul[e]
|
4 |
# File: TOOLSET/CORTEXM3_IAR.DEF
|
| 5 |
# Contents: IAR rules as used for the CORTEXM3
|
5 |
# Contents: TOOLSET Environment definitions
|
| 6 |
# Make definitions for the IAR tools.
|
6 |
# Make definitions for the CORTEXM3_IAR tools.
|
| 7 |
#
|
7 |
#
|
| 8 |
# Description:
|
8 |
# Description:
|
| 9 |
# This file provides Toolset definitions for the target makefiles
|
9 |
# This file provides Toolset definitions for the target makefiles
|
| 10 |
# The file is dropped into the top of the generated platform specfic makefile
|
10 |
# The file is dropped into the top of the generated platform specfic makefile
|
| 11 |
#
|
11 |
#
|
| Line 30... |
Line 30... |
| 30 |
PROGRAMFILES ?= C:/Program Files
|
30 |
PROGRAMFILES ?= C:/Program Files
|
| 31 |
GBE_CORTEXM3_IAR ?= $(PROGRAMFILES)/IAR Systems/Embedded Workbench 7.3
|
31 |
GBE_CORTEXM3_IAR ?= $(PROGRAMFILES)/IAR Systems/Embedded Workbench 7.3
|
| 32 |
export GBE_CORTEXM3_IAR
|
32 |
export GBE_CORTEXM3_IAR
|
| 33 |
|
33 |
|
| 34 |
cortexm3:
|
34 |
cortexm3:
|
| 35 |
@if [ -z "$$GBE_CORTEXM3_IAR" ]; then echo GBE_CORTEXM3_IAR env var not set; exit 2; fi; \
|
35 |
$(AA_PRE)if [ -z "$$GBE_CORTEXM3_IAR" ]; then echo GBE_CORTEXM3_IAR env var not set; exit 2; fi; \
|
| 36 |
if [ ! -d "$$GBE_CORTEXM3_IAR" ]; then echo "ERROR: GBE_CORTEXM3_IAR directory not found ($$GBE_CORTEXM3_IAR). Compiler not available"; exit 2; fi; \
|
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]";
|
37 |
echo "[Toolset CORTEXM3 - IAR Systems]";
|
| 38 |
|
38 |
|
| 39 |
iar_avr = $(subst \,/,$(strip $(GBE_CORTEXM3_IAR)))
|
39 |
iar_avr = $(subst \,/,$(strip $(GBE_CORTEXM3_IAR)))
|
| 40 |
|
40 |
|
| 41 |
#
|
41 |
#
|
| 42 |
# Define the compiler specfic names and paths for the various tools
|
42 |
# Define the compiler specfic names and paths for the various tools
|
| 43 |
# Retain 'avr_air' so we can reuse the .RUL file
|
43 |
# Retain 'avr_iar' so we can reuse the .RUL file
|
| 44 |
#
|
44 |
#
|
| 45 |
COMPILER_HOME=$(iar_avr)
|
45 |
COMPILER_HOME=$(iar_avr)
|
| 46 |
COMPILER_HOME_AVR=$(iar_avr)/arm
|
46 |
COMPILER_HOME_AVR=$(iar_avr)/arm
|
| 47 |
|
47 |
|
| 48 |
avr_iar_assembler = $(COMPILER_HOME_AVR)/bin/iasmarm.exe
|
48 |
avr_iar_assembler = $(COMPILER_HOME_AVR)/bin/iasmarm.exe
|