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