-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile.vxworks-robo-4704
203 lines (177 loc) · 6.58 KB
/
Makefile.vxworks-robo-4704
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# $Id: Makefile.vxworks-robo-4704 1.17.174.1 Broadcom SDK $
# $Copyright: Copyright 2011 Broadcom Corporation.
# This program is the proprietary software of Broadcom Corporation
# and/or its licensors, and may only be used, duplicated, modified
# or distributed pursuant to the terms and conditions of a separate,
# written license agreement executed between you and Broadcom
# (an "Authorized License"). Except as set forth in an Authorized
# License, Broadcom grants no license (express or implied), right
# to use, or waiver of any kind with respect to the Software, and
# Broadcom expressly reserves all rights in and to the Software
# and all intellectual property rights therein. IF YOU HAVE
# NO AUTHORIZED LICENSE, THEN YOU HAVE NO RIGHT TO USE THIS SOFTWARE
# IN ANY WAY, AND SHOULD IMMEDIATELY NOTIFY BROADCOM AND DISCONTINUE
# ALL USE OF THE SOFTWARE.
#
# Except as expressly set forth in the Authorized License,
#
# 1. This program, including its structure, sequence and organization,
# constitutes the valuable trade secrets of Broadcom, and you shall use
# all reasonable efforts to protect the confidentiality thereof,
# and to use this information only in connection with your use of
# Broadcom integrated circuit products.
#
# 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS
# PROVIDED "AS IS" AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES,
# REPRESENTATIONS OR WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY,
# OR OTHERWISE, WITH RESPECT TO THE SOFTWARE. BROADCOM SPECIFICALLY
# DISCLAIMS ANY AND ALL IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY,
# NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, LACK OF VIRUSES,
# ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR
# CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING
# OUT OF USE OR PERFORMANCE OF THE SOFTWARE.
#
# 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL
# BROADCOM OR ITS LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL,
# INCIDENTAL, SPECIAL, INDIRECT, OR EXEMPLARY DAMAGES WHATSOEVER
# ARISING OUT OF OR IN ANY WAY RELATING TO YOUR USE OF OR INABILITY
# TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF
# THE AMOUNT ACTUALLY PAID FOR THE SOFTWARE ITSELF OR USD 1.00,
# WHICHEVER IS GREATER. THESE LIMITATIONS SHALL APPLY NOTWITHSTANDING
# ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY.$
#
# Makefile for the BCM4702 board(CPCI) running VxWorks
include ${SDK}/make/Makefile.vxworks-common
# WIND_BASE and WIND_HOST_TYPE must be modified according to your
# installed location. The environment variables are ignored intentionally.
ifndef VX_VERSION
VX_VERSION = 55
endif
ifeq ($(VX_TARGET_BIG_ENDIAN),1)
TARGET_EFLAGS = -EB -DBE_HOST=1 -DIL_BIGENDIAN=1 -DMIPSEB
TOOL_SUFFIX=
else
TARGET_EFLAGS = -EL -DLE_HOST=1 -DIL_BIGENDIAN=0 -DMIPSEL
TOOL_SUFFIX=le
endif
ifeq ($(HOSTTYPE),Windows2000PC)
else
ifeq ($(HOSTTYPE),Windows_Cygnus)
WIND_BASE = //fs-sj1-21/Projects-V2/ntsw-tools/wrs/t2
WIND_HOST_TYPE = x86-win32
else
WIND_BASE_54 = /projects/ntsw-tools/wrs/tornado/t2
WIND_BASE_542 = /projects/ntsw-tools/wrs/tornado/t2.1.1
WIND_BASE_55 = /projects/ntsw-tools/wrs/tornado/t2.2.1
WIND_BASE = ${WIND_BASE_${VX_VERSION}}
ifeq ($(HOSTTYPE),i386-linux)
WIND_HOST_TYPE = x86-linux
else
WIND_HOST_TYPE = sun4-solaris2
endif
endif
endif
ifeq ($(VX_VERSION),542)
CPU=MIPS32
TOOL=sfgnu$(TOOL_SUFFIX)
else
ifeq ($(VX_VERSION),55)
CPU=MIPS32
TOOL=sfgnu$(TOOL_SUFFIX)
else
CPU = R3000
TOOL = gnu$(TOOL_SUFFIX)
endif
endif
ifdef ALT_ROBO-4704_BSP_DIR
VX_SRC = \
${ALT_ROBO-4704_BSP_DIR}
else
VX_SRC = \
${SDK}/systems/vxworks/robo-4704/bcm4704
endif
VX_SRC_ALL = \
$(VX_SRC)/all
BOOTROM_SWAP=yes
# Extra libraries for this platform
# Configuration Flags
CFGFLAGS += -DBCM_PLATFORM_STRING=\"BCM4704\"
toolbase = $(WIND_BASE)/host/$(WIND_HOST_TYPE)/bin
#
# Set GCC prefix and PATH to find what it needs, and export them to subshells
# etc.
#
export GCC_EXEC_PREFIX=$(WIND_BASE)/host/$(WIND_HOST_TYPE)/lib/gcc-lib/
CC = $(toolbase)/ccmips
CPP = $(toolbase)/cppmips
CXX = $(toolbase)/g++mips
RANLIB = $(toolbase)/ranlibmips
AR = $(toolbase)/armips
LD = $(toolbase)/ldmips
NM = $(toolbase)/nmmips
MUNCH = $(toolbase)/munch
SIZE = $(toolbase)/sizemips
STRIP = $(toolbase)/stripmips
OPTFLAGS_DEFAULT = -O2
#MFLAGS = $(OPTFLAGS) -EB -mcpu=r4000 -mips3 -mgp32 -mfp32 -non_shared -G 0 -DCPU=$(CPU)
ifeq ($(VX_VERSION),542)
MFLAGS = -G 0 $(OPTFLAGS) $(TARGET_EFLAGS) -mips2 -msoft-float -DCPU=$(CPU)
else
ifeq ($(VX_VERSION),55)
MFLAGS = -G 0 $(OPTFLAGS) $(TARGET_EFLAGS) -mips2 -msoft-float -DCPU=$(CPU)
else
MFLAGS = $(OPTFLAGS) $(TARGET_EFLAGS) -mcpu=r4000 -mips2 -mgp32 -msoft-float -G 0 -DCPU=$(CPU)
endif
endif
#MFLAGS = $(OPTFLAGS) -mcpu=r4000 -mips3 -DCPU=$(CPU)
#LDFLAGS = -EB -X -N
ARFLAGS = -rc
# TARGETTYPE Defines: This defines the type of system you are compiling
# the driver for; there are several values allowed. New values can be created
# by porting the routines (system.c) to your platform and adding
# the define in this Makefile.
TARGETTYPE = ROBO_4704
# OSType Defines: This defines the type of RTOS or microkernel which you
# are compiling the SAL (and its associated driver) for. New platforms
# can be created by porting the routines (system.c) to your platform and
# adding the define in this Makefile.
OSTYPE = VXWORKS
INCS += -I$(WIND_BASE)/target/h -I$(VX_SRC) -I${VX_SRC_ALL}
LIBS =
#
# STD_{C|CPP|CXX}FLAGS - Standard flags used by ALL compilations
# BCM_{C|CPP|CXX}FLAGS - Flags used for Broadcom source files
# OPT_{C|CPP|CXX}FLAGS - Defined in local make files BEFORE inclusion of
# this Makefile, to define local "Extra" flags.
#
# We include -DTRUE=1 to fix a Tornado 1 problem where stdarg macros are
# defined incorrectly if TRUE is not defined ahead of including stdarg.h.
# NOTE: Extra -I${INCDIR} puts SDK include before system incs, for assert.h
#
ifeq ($(VX_VERSION),542)
BCM_CFLAGS = -DCPU_VAR=RC32364
STD_CFLAGS = -fno-builtin $(MFLAGS) \
-I${INCDIR} ${INCS} -D${TARGETTYPE} -D${OSTYPE} \
-DVX_VERSION=${VX_VERSION} -DBROADCOM_BSP \
${CFGFLAGS}
else
ifeq ($(VX_VERSION),55)
BCM_CFLAGS = -DCPU_VAR=RC32364
STD_CFLAGS = -fno-builtin $(MFLAGS) \
-I${INCDIR} ${INCS} -D${TARGETTYPE} -D${OSTYPE} \
-DVX_VERSION=${VX_VERSION} -DBROADCOM_BSP \
${CFGFLAGS}
else
STD_CFLAGS = -fno-builtin -nostdinc $(MFLAGS) \
-I${INCDIR} ${INCS} -D${TARGETTYPE} -D${OSTYPE} \
-DVX_VERSION=${VX_VERSION} -DBROADCOM_BSP \
${CFGFLAGS} -DTRUE=1
endif
endif
STD_CPPFLAGS = ${STD_CFLAGS}
STD_CXXFLAGS = ${STD_CFLAGS}
#
# Features which should be explicitly excluded from this configuration:
#
FEATURE_EXCLUDE_LIST = RPC