| 363 |
dpurdie |
1 |
###############################################################################
|
| 6177 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 363 |
dpurdie |
3 |
#
|
|
|
4 |
# File: TOOLSET/ARM251.rul[e]
|
|
|
5 |
# Contents: Rules as used for the ARM251 compiler
|
|
|
6 |
# Make definitions for the ARM251 tools.
|
|
|
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 = arm251
|
|
|
15 |
|
|
|
16 |
o = o
|
|
|
17 |
s = s
|
|
|
18 |
a = lib
|
|
|
19 |
exe = axf
|
|
|
20 |
|
|
|
21 |
.SUFFIXES: .asm
|
|
|
22 |
.PHONY: arm251
|
|
|
23 |
|
|
|
24 |
#
|
|
|
25 |
# Ensure that the compiler can be found
|
|
|
26 |
# Use the environment varibales
|
|
|
27 |
# GBE_ARM251 - Root of the ARM251 directory
|
|
|
28 |
# GBE_ARM251_INGEDEV - Root of the Ingedev SDK
|
|
|
29 |
#
|
|
|
30 |
GBE_ARM251 ?= c:/ARM251
|
|
|
31 |
GBE_ARM251_INGEDEV ?= C:/Ingedev/V5.03.0.2
|
|
|
32 |
|
|
|
33 |
export GBE_ARM251 GBE_ARM251_INGEDEV
|
|
|
34 |
|
|
|
35 |
arm251:
|
|
|
36 |
@$(echo) "[Toolset ARM 2.51]"; \
|
| 6177 |
dpurdie |
37 |
if [ -z "$$GBE_ARM251" ]; then echo "GBE_ARM251 env var not set"; exit 2; fi; \
|
| 363 |
dpurdie |
38 |
if [ ! -d "$$GBE_ARM251" ]; then echo "ERROR: GBE_ARM251 directory not found ($$GBE_ARM251). Compiler not available"; exit 2; fi; \
|
| 6177 |
dpurdie |
39 |
if [ -z "$$GBE_ARM251_INGEDEV" ]; then echo "GBE_ARM251_INGEDEV env var not set"; exit 2; fi; \
|
| 363 |
dpurdie |
40 |
if [ ! -d "$$GBE_ARM251_INGEDEV" ]; then echo "ERROR: GBE_ARM251_INGEDEV directory not found ($$GBE_ARM251_INGEDEV). Compiler not available"; exit 2; fi;
|
|
|
41 |
|
|
|
42 |
#
|
|
|
43 |
# Ensure tools are not in paths with a space
|
|
|
44 |
# The toolchain does not handle spaces
|
|
|
45 |
#
|
|
|
46 |
ifeq ($(findstring $(space),$(GBE_ARM251_INGEDEV)),$(space))
|
|
|
47 |
$(error ERROR: GBE_ARM251_INGEDEV path contain a space: $(GBE_ARM251_INGEDEV))
|
|
|
48 |
endif
|
|
|
49 |
|
|
|
50 |
ifeq ($(findstring $(space),$(GBE_ARM251)),$(space))
|
|
|
51 |
$(error ERROR: GBE_ARM251 path contain a space: $(GBE_ARM251))
|
|
|
52 |
endif
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
COMPILER_HOME = $(subst \,/,$(strip $(GBE_ARM251)))
|
|
|
56 |
INGEDEV_SDK = $(subst \,/,$(strip $(GBE_ARM251_INGEDEV)))
|
|
|
57 |
|
|
|
58 |
#
|
|
|
59 |
# Define the compiler specfic names and paths for the various tools
|
|
|
60 |
#
|
|
|
61 |
assembler := $(COMPILER_HOME)/bin/armasm
|
|
|
62 |
compiler := $(COMPILER_HOME)/bin/armcc
|
|
|
63 |
librarian := $(COMPILER_HOME)/bin/armlib
|
|
|
64 |
linker := $(COMPILER_HOME)/bin/armlink
|
|
|
65 |
|
|
|
66 |
#
|
|
|
67 |
# Compiler include search paths
|
|
|
68 |
#
|
|
|
69 |
ARM_INCLUDES := $(COMPILER_HOME)/include
|
|
|
70 |
|
|
|
71 |
#
|
|
|
72 |
# Compiler library search paths
|
|
|
73 |
# EnvVar ARMLIB may be used by some tools
|
|
|
74 |
#
|
|
|
75 |
ARMLIB := $(COMPILER_HOME)/lib
|
|
|
76 |
INGEDEV_LIBS := $(INGEDEV_SDK)/Lib/Arm
|
|
|
77 |
|
|
|
78 |
export ARMLIB
|