blob: aaf241ad147307faf1646736162bf33c2c0f77fd (
plain)
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
|
# ============================================================================
# @file davinci_mvlpro5.0.mk
#
# @path $(DSPLINK)/make/Linux/
#
# @desc This makefile defines OS specific macros used by MAKE system for
# the Montavista Pro 5.0 Linux distribution.
#
# @ver 1.50
# ============================================================================
# Copyright (c) Texas Instruments Incorporated 2002-2007
#
# Use of this software is controlled by the terms and conditions found in the
# license agreement under which this software has been supplied or provided.
# ============================================================================
ifndef DAVINCI_MVLPRO5_0_MK
define DAVINCI_MVLPRO5_0_MK
endef
# ============================================================================
# Let the make system know that a specific distribution for the GPP OS
# is being used.
# ============================================================================
USE_DISTRIBUTION := 1
# ============================================================================
# Set the values of necessary variables to be used for the OS.
# ============================================================================
# ----------------------------------------------------------------------------
# Base directory for the GPP OS
# ----------------------------------------------------------------------------
BASE_BUILDOS := SED_ME_KERNELDIR
# ----------------------------------------------------------------------------
# Base for code generation tools - compiler, linker, archiver etc.
# ----------------------------------------------------------------------------
BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin
# ----------------------------------------------------------------------------
# Base directory for include files provided by GPP OS
# ----------------------------------------------------------------------------
BASE_OSINC := $(BASE_BUILDOS)/include
OSINC_GENERIC := $(BASE_OSINC)
OSINC_PLATFORM := SED_ME_CROSS/4.2.0/include
OSINC_TARGET := SED_ME_STAGINGDIR/usr/include
ifneq ("$(VARIANT)", "")
OSINC_VARIANT := $(BASE_OSINC)
endif
# ----------------------------------------------------------------------------
# Base directory for libraries provided by GPP OS
# ----------------------------------------------------------------------------
BASE_OSLIB := SED_ME_STAGINGDIR/lib
OSLIB_GENERIC := $(BASE_OSLIB)
OSLIB_PLATFORM := $(BASE_OSLIB)
ifneq ("$(VARIANT)", "")
OSLIB_VARIANT := $(BASE_OSLIB)
endif
# ============================================================================
# COMPILER
# ============================================================================
# ----------------------------------------------------------------------------
# Name of the compiler
# ----------------------------------------------------------------------------
COMPILER := SED_ME_TARGET_PREFIXgcc
LD := SED_ME_TARGET_PREFIXld
CROSS_COMPILE := SED_ME_TARGET_PREFIX
export CROSS_COMPILE
# ----------------------------------------------------------------------------
# Command line switches used by the compiler
#
# CC_SW_DEF Command line defines
# CC_SW_INC Search path for header files
# CC_SW_OBJ Create object file
# CC_SW_DEB Include debug information
# ----------------------------------------------------------------------------
CC_SW_DEF := -D
CC_SW_INC := -I
CC_SW_OBJ := -o
CC_SW_DEB := -g
# ----------------------------------------------------------------------------
# Standard flags for the compiler
# ----------------------------------------------------------------------------
STD_KRNL_FLAGS := SEDME_KERNEL_ARMFLAGS
STD_USER_FLAGS := -mlittle-endian SEDME_USER_ARMFLAGS -msoft-float \
-Uarm -Wdeclaration-after-statement -marm -Wall \
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \
-fno-common -fno-omit-frame-pointer -mapcs -c \
-mabi=aapcs-linux
# ----------------------------------------------------------------------------
# Standard flags for the compiler when building an executable
# ----------------------------------------------------------------------------
EXE_CC_FLAGS :=
# ----------------------------------------------------------------------------
# Flags for the compiler when building a driver
# ----------------------------------------------------------------------------
DRV_CC_FLAGS := -nostdinc
# ----------------------------------------------------------------------------
# Flags for the compiler when building a library
# ----------------------------------------------------------------------------
LIB_CC_FLAGS :=
# ----------------------------------------------------------------------------
# Standard definitions for the compiler
# ----------------------------------------------------------------------------
STD_CC_DEFNS := -D_REENTRANT
# ============================================================================
# ARCHIVER1 - This denotes the linker.
# ============================================================================
ARCHIVER1 := SED_ME_TARGET_PREFIXld
# ----------------------------------------------------------------------------
# Standard flags for the archiver
# ----------------------------------------------------------------------------
STD_AR_FLAGS1 := -EL -r
# ============================================================================
# ARCHIVER2 - This denotes the archiver.
# ============================================================================
ARCHIVER2 := SED_ME_TARGET_PREFIXar
# ----------------------------------------------------------------------------
# Standard flags for the archiver
# ----------------------------------------------------------------------------
STD_AR_FLAGS2 := -r
# ============================================================================
# LINKER - The compiler is used for linking purpose as well.
# ============================================================================
LINKER := SED_ME_TARGET_PREFIXgcc
# ----------------------------------------------------------------------------
# Command line switches used by the linker
#
# LD_SW_LIB Search path for libraries
# LD_SW_OUT Output filename
# LD_SW_RELOC Generate relocateable output
# ----------------------------------------------------------------------------
LD_SW_LIB := -L
LD_SW_OUT := -o
LD_SW_RELOC := -r
# ----------------------------------------------------------------------------
# Standard flags for the linker
# ----------------------------------------------------------------------------
STD_LD_FLAGS :=
# ----------------------------------------------------------------------------
# Specific flags for the linker if linking and module generating utility are
# different
# ----------------------------------------------------------------------------
SPECIFIC_LD_FLAGS := -lpthread
# ----------------------------------------------------------------------------
# Flags for the linker when building an executable
# ----------------------------------------------------------------------------
EXE_LD_FLAGS := -lc
# ----------------------------------------------------------------------------
# Flags for the linker when building a driver
# ----------------------------------------------------------------------------
DRV_LD_FLAGS :=
# ============================================================================
# Post processing utilities for Linux 2.6
# ============================================================================
CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost -i $(BASE_BUILDOS)/Module.symvers $(BASE_BUILDOS)/vmlinux
endif # ifndef DAVINCI_MVLPRO5_0_MK
|