Print this page
1961 investigate stopping uniquifying CTF information
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/Makefile.sun4v
+++ new/usr/src/uts/sun4v/Makefile.sun4v
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
26 26 #
27 27 # This makefile contains the common definitions for the sun4v unix
28 28 # and all sun4v implementation architecture dependent modules.
29 29 #
30 30
31 31 #
32 32 # Machine type (implementation architecture):
33 33 #
34 34 PLATFORM = sun4v
35 35 LINKED_PLATFORMS += SUNW,Sun-Fire-T1000
36 36 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
37 37 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5220
38 38 LINKED_PLATFORMS += SUNW,T5140
39 39 LINKED_PLATFORMS += SUNW,T5240
40 40 LINKED_PLATFORMS += SUNW,T5440
41 41 LINKED_PLATFORMS += SUNW,SPARC-Enterprise-T1000
42 42 LINKED_PLATFORMS += SUNW,Sun-Blade-T6300
43 43 LINKED_PLATFORMS += SUNW,Sun-Blade-T6320
44 44 LINKED_PLATFORMS += SUNW,Netra-CP3260
45 45 LINKED_PLATFORMS += SUNW,Netra-T5220
46 46 LINKED_PLATFORMS += SUNW,USBRDT-5240
47 47 LINKED_PLATFORMS += SUNW,Netra-T5440
48 48 LINKED_PLATFORMS += SUNW,Sun-Blade-T6340
49 49 PROMIF = ieee1275
50 50 PSMBASE = $(UTSBASE)/../psm
51 51
52 52 #
53 53 # uname -m value
54 54 #
55 55 UNAME_M = $(PLATFORM)
56 56
57 57 #
58 58 # Definitions for the platform-specific /platform directories.
59 59 #
60 60 # PLATFORMS designates those sun4v machines which have no platform
61 61 # specific code.
62 62 #
63 63 # IMPLEMENTATIONS is used to designate sun4v machines which have
64 64 # platform specific modules. All code specific to a given implementation
65 65 # resides in the appropriately named subdirectory. This requires
66 66 # these platforms to have their own Makefiles to define ROOT_PLAT_DIRS,
67 67 # USR_PLAT_DIRS, etc.
68 68 # The number of IMPLEMENTATIONS should not grow!
69 69 #
70 70 # So if we had an implementation named 'foo', we would need the following
71 71 # Makefiles in the foo subdirectory:
72 72 #
73 73 # sun4v/foo/Makefile
74 74 # sun4v/foo/Makefile.foo
75 75 # sun4v/foo/Makefile.targ
76 76 #
77 77
78 78 #
79 79 # all PLATFORMS that do not belong in the $(IMPLEMENTATIONS) list.
80 80 # This list should be empty. A platform without platform modules
81 81 # is a plain, generic sun4v platform.
82 82 #
83 83 #IMPLEMENTED_PLATFORM =
84 84 #PLATFORMS = $(IMPLEMENTED_PLATFORM)
85 85
86 86 IMPLEMENTATIONS = ontario montoya huron maramba
87 87
88 88 #ROOT_PLAT_DIRS = $(PLATFORMS:%=$(ROOT_PLAT_DIR)/%)
89 89 #USR_PLAT_DIRS = $(PLATFORMS:%=$(USR_PLAT_DIR)/%)
90 90
91 91 #USR_DESKTOP_DIR = $(USR_PLAT_DIR)/$(IMPLEMENTED_PLATFORM)
92 92 #USR_DESKTOP_INC_DIR = $(USR_DESKTOP_DIR)/include
93 93 #USR_DESKTOP_SBIN_DIR = $(USR_DESKTOP_DIR)/sbin
94 94 #USR_DESKTOP_LIB_DIR = $(USR_DESKTOP_DIR)/lib
95 95
96 96 #
97 97 # Define supported builds
98 98 #
99 99 DEF_BUILDS = $(DEF_BUILDS64)
100 100 ALL_BUILDS = $(ALL_BUILDS64)
101 101
102 102 #
103 103 # Everybody needs to know how to build modstubs.o and to locate unix.o
104 104 #
105 105 UNIX_DIR = $(UTSBASE)/$(PLATFORM)/unix
106 106 GENLIB_DIR = $(UTSBASE)/$(PLATFORM)/genunix
107 107 MODSTUBS_DIR = $(UNIX_DIR)
108 108 DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
109 109 LINTS_DIR = $(OBJS_DIR)
110 110 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
111 111
112 112 DTRACESTUBS_O = $(OBJS_DIR)/dtracestubs.o
113 113 DTRACESTUBS = $(OBJS_DIR)/libdtracestubs.so
114 114
115 115 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
116 116 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
117 117 GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
118 118
119 119 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
120 120 GEN_LINT_LIB = $(LINT_LIB_DIR)/llib-lgenunix.ln
121 121
122 122 LINT64_DIRS = $(LINT64_BUILDS:%=$(UTSBASE)/$(PLATFORM)/lint-libs/%)
123 123 LINT64_FILES = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln)
124 124
125 125 #
126 126 # cpu and platform modules need to know how to build their own symcheck module
127 127 #
128 128 PLATMOD = platmod
129 129 PLATLIB = $(PLAT_DIR)/$(OBJS_DIR)/libplatmod.so
130 130
131 131 CPUNAME = cpu
132 132 CPULIB = $(CPU_DIR)/$(OBJS_DIR)/libcpu.so
133 133
134 134 SYM_MOD = $(OBJS_DIR)/unix.sym
135 135
136 136 #
137 137 # Include the makefiles which define build rule templates, the
138 138 # collection of files per module, and a few specific flags. Note
139 139 # that order is significant, just as with an include path. The
140 140 # first build rule template which matches the files name will be
141 141 # used. By including these in order from most machine dependent
142 142 # to most machine independent, we allow a machine dependent file
143 143 # to be used in preference over a machine independent version
144 144 # (Such as a machine specific optimization, which preserves the
145 145 # interfaces.)
146 146 #
147 147 include $(UTSBASE)/sun4/Makefile.files
148 148 include $(UTSBASE)/$(PLATFORM)/Makefile.files
149 149 include $(UTSBASE)/sfmmu/Makefile.files
150 150 include $(UTSBASE)/sparc/v9/Makefile.files
151 151 include $(UTSBASE)/sparc/Makefile.files
152 152 include $(UTSBASE)/sun/Makefile.files
153 153 include $(SRC)/psm/promif/$(PROMIF)/common/Makefile.files
↓ open down ↓ |
153 lines elided |
↑ open up ↑ |
154 154 include $(SRC)/psm/promif/$(PROMIF)/$(PLATFORM)/Makefile.files
155 155 include $(UTSBASE)/common/Makefile.files
156 156
157 157 #
158 158 # Include machine independent rules. Note that this does not imply
159 159 # that the resulting module from rules in Makefile.uts is machine
160 160 # independent. Only that the build rules are machine independent.
161 161 #
162 162 include $(UTSBASE)/Makefile.uts
163 163
164 -CTFMERGE_GUDIR = sun4v
165 -
166 164 #
167 165 # machine specific optimization, override default in Makefile.master
168 166 #
169 167 CC_XARCH = -m64 -xarch=sparcvis
170 168 AS_XARCH = -xarch=v9v
171 169 COPTIMIZE = -xO3
172 170 CCMODE = -Xa
173 171
174 172 CFLAGS = -xchip=ultra $(CCABS32) $(CCREGSYM)
175 173 CFLAGS += $(CC_XARCH)
176 174 CFLAGS += $(COPTIMIZE)
177 175 CFLAGS += $(EXTRA_CFLAGS)
178 176 CFLAGS += $(XAOPT)
179 177 CFLAGS += $(INLINES) -D_ASM_INLINES
180 178 CFLAGS += $(CCMODE)
181 179 CFLAGS += $(SPACEFLAG)
182 180 CFLAGS += $(CERRWARN)
183 181 CFLAGS += $(CTF_FLAGS_$(CLASS))
184 182 CFLAGS += $(C99MODE)
185 183 CFLAGS += $(CCUNBOUND)
186 184 CFLAGS += $(CCNOAUTOINLINE)
187 185 CFLAGS += $(CCSTATICSYM)
188 186 CFLAGS += $(CC32BITCALLERS)
189 187 CFLAGS += $(IROPTFLAG)
190 188 CFLAGS += $(CGLOBALSTATIC)
191 189 CFLAGS += -xregs=no%float
192 190 CFLAGS += -xstrconst
193 191 CFLAGS += $(CSOURCEDEBUGFLAGS)
194 192 CFLAGS += $(CUSERFLAGS)
195 193
196 194 CPPFLAGS += -DGLREG
197 195
198 196 ASFLAGS += $(AS_XARCH) -DGLREG
199 197
200 198 AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
201 199
202 200 LINT_KMODS += $(GENUNIX_KMODS)
203 201
204 202 LINT_DEFS = -m64
205 203
206 204 #
207 205 # The following must be defined for all implementations:
208 206 #
209 207 # MAPFILE: ld mapfile for the build of kernel/unix.
210 208 # MODSTUBS: Module stubs source file.
211 209 # GENCONST_SRC: genconst.c
212 210 # OFFSETS: offsets.in
213 211 # PLATFORM_OFFSETS: Platform specific mach_offsets.in
214 212 # FDOFFSETS: fd_offsets.in
215 213 #
216 214 MAPFILE = $(UTSBASE)/sun4/conf/Mapfile
217 215 MODSTUBS = $(UTSBASE)/sparc/ml/modstubs.s
218 216 GENCONST_SRC = $(UTSBASE)/sun4/ml/genconst.c
219 217 OFFSETS = $(UTSBASE)/sun4/ml/offsets.in
220 218 PLATFORM_OFFSETS = $(UTSBASE)/sun4v/ml/mach_offsets.in
221 219 FDOFFSETS = $(UTSBASE)/sun/io/fd_offsets.in
222 220
223 221 #
224 222 # Define the actual specific platforms
225 223 #
226 224
227 225 MACHINE_DEFS = -D$(PLATFORM) -D_MACHDEP -DSFMMU
228 226 MACHINE_DEFS += -DMAX_MEM_NODES=8
229 227
230 228 #
231 229 # Software workarounds for hardware "features"
232 230 #
233 231
234 232 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
235 233
236 234 #
237 235 # Debugging level
238 236 #
239 237 # Special knowledge of which special debugging options effect which
240 238 # file is used to optimize the build if these flags are changed.
241 239 #
242 240 # XXX: The above could possibly be done for more flags and files, but
243 241 # is left as an experiment to the interested reader. Be forewarned,
244 242 # that excessive use could lead to maintenance difficulties.
245 243 #
246 244 # Note: kslice can be enabled for the sun4v, but is disabled by default
247 245 # in all cases.
248 246 #
249 247
250 248 DEBUG_DEFS_OBJ64 =
251 249 DEBUG_DEFS_DBG64 = -DDEBUG
252 250 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
253 251
254 252 DEBUG_COND_OBJ64 = $(POUND_SIGN)
255 253 DEBUG_COND_DBG64 =
256 254 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
257 255
258 256 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG
259 257 $(IF_DEBUG_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPDEBUG
260 258 $(IF_DEBUG_OBJ)syscall_trap.o := DEBUG_DEFS += -DSYSCALLTRACE
261 259 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=0
262 260
263 261 IF_TRAPTRACE_OBJ = $(IF_DEBUG_OBJ)
264 262 # comment this out for a non-debug kernel with TRAPTRACE
265 263 #IF_TRAPTRACE_OBJ = $(OBJS_DIR)/
266 264
267 265 $(IF_TRAPTRACE_OBJ)mach_locore.o := DEBUG_DEFS += -DTRAPTRACE
268 266 $(IF_TRAPTRACE_OBJ)mlsetup.o := DEBUG_DEFS += -DTRAPTRACE
269 267 $(IF_TRAPTRACE_OBJ)syscall_trap.o := DEBUG_DEFS += -DTRAPTRACE
270 268 $(IF_TRAPTRACE_OBJ)startup.o := DEBUG_DEFS += -DTRAPTRACE
271 269 $(IF_TRAPTRACE_OBJ)mach_startup.o := DEBUG_DEFS += -DTRAPTRACE
272 270 $(IF_TRAPTRACE_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
273 271 $(IF_TRAPTRACE_OBJ)cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
274 272 $(IF_TRAPTRACE_OBJ)mach_cpu_states.o := DEBUG_DEFS += -DTRAPTRACE
275 273 $(IF_TRAPTRACE_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
276 274 $(IF_TRAPTRACE_OBJ)mach_interrupt.o := DEBUG_DEFS += -DTRAPTRACE
277 275 $(IF_TRAPTRACE_OBJ)sfmmu_asm.o := DEBUG_DEFS += -DTRAPTRACE
278 276 $(IF_TRAPTRACE_OBJ)trap_table.o := DEBUG_DEFS += -DTRAPTRACE
279 277 $(IF_TRAPTRACE_OBJ)xc.o := DEBUG_DEFS += -DTRAPTRACE
280 278 $(IF_TRAPTRACE_OBJ)mach_xc.o := DEBUG_DEFS += -DTRAPTRACE
281 279 $(IF_TRAPTRACE_OBJ)wbuf.o := DEBUG_DEFS += -DTRAPTRACE
282 280 $(IF_TRAPTRACE_OBJ)trap.o := DEBUG_DEFS += -DTRAPTRACE
283 281 $(IF_TRAPTRACE_OBJ)mach_trap.o := DEBUG_DEFS += -DTRAPTRACE
284 282 $(IF_TRAPTRACE_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
285 283
286 284 # Comment these out if you don't want dispatcher lock statistics.
287 285
288 286 #$(IF_DEBUG_OBJ)lock_prim.o := DEBUG_DEFS += -DDISP_LOCK_STATS
289 287 #$(IF_DEBUG_OBJ)disp.o := DEBUG_DEFS += -DDISP_LOCK_STATS
290 288
291 289 # Comment these out if you don't want dispatcher debugging
292 290
293 291 #$(IF_DEBUG_OBJ)lock_prim.o := DEBUG_DEFS += -DDISP_DEBUG
294 292
295 293 #
296 294 # Collect the preprocessor definitions to be associated with *all*
297 295 # files.
298 296 #
299 297 ALL_DEFS = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
300 298 $(OPTION_DEFS)
301 299 GENCONST_DEFS = $(MACHINE_DEFS) $(OPTION_DEFS)
302 300
303 301 #
304 302 # ----- TRANSITIONAL SECTION --------------------------------------------------
305 303 #
306 304
307 305 #
308 306 # Not everything which *should* be a module is a module yet. The
309 307 # following is a list of such objects which are currently part of
310 308 # the base kernel but should soon become kmods.
311 309 #
312 310 MACH_NOT_YET_KMODS = $(AUTOCONF_OBJS)
313 311
314 312 #
315 313 # ----- END OF TRANSITIONAL SECTION -------------------------------------------
316 314 #
317 315
318 316 #
319 317 # The kernels modules which are "implementation architecture"
320 318 # specific for this machine are enumerated below. Note that most
321 319 # of these modules must exist (in one form or another) for each
322 320 # architecture.
323 321 #
324 322 # Common Drivers (usually pseudo drivers) (/kernel/drv):
325 323 #
326 324
327 325 #
328 326 # Machine Specific Driver Modules (/kernel/drv):
329 327 #
330 328 DRV_KMODS += bge
331 329 DRV_KMODS += cnex
332 330 DRV_KMODS += cpc
333 331 DRV_KMODS += drctl
334 332 DRV_KMODS += ds_pri
335 333 DRV_KMODS += ds_snmp
336 334 DRV_KMODS += ebus
337 335 DRV_KMODS += fpc
338 336 DRV_KMODS += glvc
339 337 DRV_KMODS += mdesc
340 338 DRV_KMODS += niumx
341 339 DRV_KMODS += ntwdt
342 340 DRV_KMODS += nxge
343 341 DRV_KMODS += n2piupc
344 342 DRV_KMODS += iospc
345 343 DRV_KMODS += n2rng
346 344 DRV_KMODS += px
347 345 DRV_KMODS += qcn
348 346 DRV_KMODS += rootnex
349 347 DRV_KMODS += su
350 348 DRV_KMODS += tpm
351 349 DRV_KMODS += trapstat
352 350 DRV_KMODS += vcc
353 351 DRV_KMODS += vdc
354 352 DRV_KMODS += vds
355 353 DRV_KMODS += vldc
356 354 DRV_KMODS += vlds
357 355 DRV_KMODS += vnet
358 356 DRV_KMODS += vnex
359 357 DRV_KMODS += vsw
360 358
361 359 #
362 360 # Exec Class Modules (/kernel/exec):
363 361 #
364 362 EXEC_KMODS +=
365 363
366 364 #
367 365 # Scheduling Class Modules (/kernel/sched):
368 366 #
369 367 SCHED_KMODS +=
370 368
371 369 #
372 370 # File System Modules (/kernel/fs):
373 371 #
374 372 FS_KMODS +=
375 373
376 374 #
377 375 # Streams Modules (/kernel/strmod):
378 376 #
379 377 # STRMOD_KMODS += kb
380 378
381 379 #
382 380 # 'System' Modules (/kernel/sys):
383 381 #
384 382 SYS_KMODS +=
385 383
386 384 #
387 385 # 'User' Modules (/kernel/misc):
388 386 #
389 387 MISC_KMODS += bootdev
390 388 MISC_KMODS += dr_cpu
391 389 MISC_KMODS += dr_io
392 390 MISC_KMODS += dr_mem
393 391 MISC_KMODS += ds
394 392 MISC_KMODS += fault_iso
395 393 MISC_KMODS += ldc
396 394 MISC_KMODS += obpsym
397 395 MISC_KMODS += platmod
398 396 MISC_KMODS += platsvc
399 397 MISC_KMODS += vis
400 398 MISC_KMODS += pcie
401 399
402 400 # md5 optimized for Niagara
403 401 #
404 402 MISC_KMODS += md5
405 403
406 404 #
407 405 # Brand modules
408 406 #
409 407 BRAND_KMODS += sn1_brand s10_brand
410 408
411 409 #
412 410 # Software Cryptographic Providers (/kernel/crypto):
413 411 #
414 412 CRYPTO_KMODS += arcfour
415 413
416 414 #
417 415 # generic-unix module (/kernel/genunix):
418 416 #
419 417 GENUNIX_KMODS += genunix
420 418
421 419 #
422 420 # Modules eXcluded from the product:
423 421 #
424 422 XMODS +=
425 423
426 424 #
427 425 # cpu modules
428 426 #
429 427 CPU_KMODS += generic niagara niagara2 vfalls kt
430 428
431 429 LINT_CPU_KMODS += generic
432 430
433 431 #
434 432 # Performance Counter BackEnd Modules (/usr/kernel/pcbe):
435 433 #
436 434 PCBE_KMODS += niagara_pcbe
437 435 PCBE_KMODS += niagara2_pcbe
438 436 PCBE_KMODS += vfalls_pcbe
439 437 PCBE_KMODS += kt_pcbe
↓ open down ↓ |
264 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX