Print this page
11226 Remove NetraCT support
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sparc/Makefile.sparc
+++ new/usr/src/uts/sparc/Makefile.sparc
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]
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright (c) 2013 Andrew Stormont. All rights reserved.
25 25 # Copyright (c) 2015, Joyent, Inc. All rights reserved.
26 26 # Copyright 2016 Gary Mills
27 27 # Copyright 2016 Nexenta Systems, Inc.
28 +# Copyright 2019 Peter Tribble.
28 29 #
29 30
30 31 #
31 32 # This makefile contains the common definitions for all sparc
32 33 # implementation architecture independent modules.
33 34 #
34 35
35 36 #
36 37 # Define supported builds
37 38 #
38 39 DEF_BUILDS = $(DEF_BUILDS64)
39 40 ALL_BUILDS = $(ALL_BUILDS64)
40 41
41 42 #
42 43 # Everybody needs to know how to build modstubs.o and to locate unix.o.
43 44 # Note that unix.o must currently be selected from among the possible
44 45 # "implementation architectures". Note further, that unix.o is only
45 46 # used as an optional error check for undefines so (theoretically)
46 47 # any "implementation architectures" could be used. We choose sun4u
47 48 # because it is the reference port.
48 49 #
49 50 UNIX_DIR = $(UTSBASE)/sun4u/unix
50 51 GENLIB_DIR = $(UTSBASE)/sun4u/genunix
51 52 IPDRV_DIR = $(UTSBASE)/sparc/ip
52 53 MODSTUBS_DIR = $(UNIX_DIR)
53 54 DSF_DIR = $(UNIX_DIR)
54 55 LINTS_DIR = $(OBJS_DIR)
55 56 LINT_LIB_DIR = $(UTSBASE)/sparc/lint-libs/$(OBJS_DIR)
56 57
57 58 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
58 59 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
59 60 GENLIB = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/libgenunix.so
60 61
61 62 LINT_LIB_32 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lunix.ln
62 63 GEN_LINT_LIB_32 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
63 64
64 65 LINT_LIB_64 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lunix.ln
65 66 GEN_LINT_LIB_64 = $(UTSBASE)/sun4u/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
66 67
67 68 LINT_LIB = $(LINT_LIB_$(CLASS))
68 69 GEN_LINT_LIB = $(GEN_LINT_LIB_$(CLASS))
69 70
70 71 LINT32_DIRS = $(LINT32_BUILDS:%=$(UTSBASE)/sparc/lint-libs/%)
71 72 LINT32_FILES = $(LINT32_DIRS:%=%/llib-l$(MODULE).ln)
72 73
73 74 LINT64_DIRS = $(LINT64_BUILDS:%=$(UTSBASE)/sparc/lint-libs/%)
74 75 LINT64_FILES = $(LINT64_DIRS:%=%/llib-l$(MODULE).ln)
75 76
76 77 #
77 78 # Include the makefiles which define build rule templates, the
78 79 # collection of files per module, and a few specific flags. Note
79 80 # that order is significant, just as with an include path. The
80 81 # first build rule template which matches the files name will be
81 82 # used. By including these in order from most machine dependent
82 83 # to most machine independent, we allow a machine dependent file
83 84 # to be used in preference over a machine independent version
84 85 # (Such as a machine specific optimization, which preserves the
85 86 # interfaces.)
86 87 #
87 88 include $(UTSBASE)/sparc/Makefile.files
88 89 include $(UTSBASE)/sparc/v9/Makefile.files
89 90 include $(UTSBASE)/sun/Makefile.files
90 91 include $(UTSBASE)/common/Makefile.files
91 92
92 93 #
93 94 # ----- TRANSITIONAL SECTION --------------------------------------------------
94 95 #
95 96
96 97 #
97 98 # Not everything which *should* be a module is a module yet. The
98 99 # following is a list of such objects which are currently part of
99 100 # genunix but which might someday become kmods. This must be
100 101 # defined before we include Makefile.uts, or else genunix's build
101 102 # won't be as parallel as we might like.
102 103 #
103 104 NOT_YET_KMODS = $(OLDPTY_OBJS) $(PTY_OBJS) $(VCONS_CONF_OBJS) $(MOD_OBJS)
104 105
105 106 #
106 107 # ----- END OF TRANSITIONAL SECTION -------------------------------------------
107 108 #
108 109 # Include machine independent rules. Note that this does not imply
109 110 # that the resulting module from rules in Makefile.uts is machine
110 111 # independent. Only that the build rules are machine independent.
111 112 #
112 113 include $(UTSBASE)/Makefile.uts
113 114
114 115 #
115 116 # machine specific optimization, override default in Makefile.master
116 117 #
117 118 XARCH_32 = -xarch=v8
118 119 XARCH_64 = -m64
119 120 XARCH = $(XARCH_$(CLASS))
120 121
121 122 COPTIMIZE_32 = -xO3
122 123 COPTIMIZE_64 = -xO3
123 124 COPTIMIZE = $(COPTIMIZE_$(CLASS))
124 125
125 126 CCMODE = -Xa
126 127
127 128 CFLAGS_32 = -xcg92
128 129 CFLAGS_64 = -xchip=ultra $(CCABS32) $(CCREGSYM)
129 130 CFLAGS = $(CFLAGS_$(CLASS))
130 131
131 132 CFLAGS += $(XARCH)
132 133 CFLAGS += $(COPTIMIZE)
133 134 CFLAGS += $(EXTRA_CFLAGS)
134 135 CFLAGS += $(XAOPT)
135 136 CFLAGS += $(INLINES) -D_ASM_INLINES
136 137 CFLAGS += $(CCMODE)
137 138 CFLAGS += $(SPACEFLAG)
138 139 CFLAGS += $(CERRWARN)
139 140 CFLAGS += $(CTF_FLAGS_$(CLASS))
140 141 CFLAGS += $(CSTD)
141 142 CFLAGS += $(CCUNBOUND)
142 143 CFLAGS += $(CCSTATICSYM)
143 144 CFLAGS += $(CC32BITCALLERS)
144 145 CFLAGS += $(CCNOAUTOINLINE)
145 146 CFLAGS += $(IROPTFLAG)
146 147 CFLAGS += $(CGLOBALSTATIC)
147 148 CFLAGS += -xregs=no%float
148 149 CFLAGS += -xstrconst
149 150 CFLAGS += $(CSOURCEDEBUGFLAGS)
150 151 CFLAGS += $(CUSERFLAGS)
151 152
152 153 ASFLAGS += $(XARCH)
153 154
154 155 LINT_DEFS_32 =
155 156 LINT_DEFS_64 = -m64
156 157 LINT_DEFS += $(LINT_DEFS_$(CLASS))
157 158
158 159 #
159 160 # The following must be defined for all implementations:
160 161 #
161 162 # MODSTUBS: Module stubs source file.
162 163 #
163 164 MODSTUBS = $(UTSBASE)/sparc/ml/modstubs.s
164 165
165 166 #
166 167 # Define the actual specific platforms - obviously none.
167 168 #
168 169 MACHINE_DEFS =
169 170
170 171 #
171 172 # Debugging level
172 173 #
173 174 # Special knowledge of which special debugging options effect which
174 175 # file is used to optimize the build if these flags are changed.
175 176 #
176 177 # XXX: The above could possibly be done for more flags and files, but
177 178 # is left as an experiment to the interested reader. Be forewarned,
178 179 # that excessive use could lead to maintenance difficulties.
179 180 #
180 181 DEBUG_DEFS_OBJ32 =
181 182 DEBUG_DEFS_DBG32 = -DDEBUG
182 183 DEBUG_DEFS_OBJ64 =
183 184 DEBUG_DEFS_DBG64 = -DDEBUG
184 185 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
185 186
186 187 DEBUG_COND_OBJ32 = $(POUND_SIGN)
187 188 DEBUG_COND_DBG32 =
188 189 DEBUG_COND_OBJ64 = $(POUND_SIGN)
189 190 DEBUG_COND_DBG64 =
190 191 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
191 192
192 193 $(IF_DEBUG_OBJ)syscall.o := DEBUG_DEFS += -DSYSCALLTRACE
193 194 $(IF_DEBUG_OBJ)clock.o := DEBUG_DEFS += -DKSLICE=1
194 195
195 196 # Comment these out if you don't want dispatcher lock statistics.
196 197
197 198 # $(IF_DEBUG_OBJ)disp_lock.o := DEBUG_DEFS += -DDISP_LOCK_STATS
198 199
199 200 #
200 201 # Collect the preprocessor definitions to be associated with *all*
201 202 # files.
202 203 #
203 204 ALL_DEFS = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
204 205 #
205 206 #
206 207 # The kernels modules which are "implementation architecture"
207 208 # specific for this machine are enumerated below. Note that most
208 209 # of these modules must exist (in one form or another) for each
209 210 # architecture.
210 211 #
211 212 # Common Drivers (usually pseudo drivers) (/kernel/drv):
212 213 #
↓ open down ↓ |
175 lines elided |
↑ open up ↑ |
213 214 DRV_KMODS += aggr arp audio bl blkdev bofi clone cn conskbd consms cpuid
214 215 DRV_KMODS += crypto cryptoadm devinfo dump
215 216 DRV_KMODS += dtrace fasttrap fbt lockstat profile sdt systrace dcpc
216 217 DRV_KMODS += fssnap icmp icmp6 ip ip6 ipnet ipsecah
217 218 DRV_KMODS += ipsecesp iptun iwscn keysock kmdb kstat ksyms llc1
218 219 DRV_KMODS += lofi
219 220 DRV_KMODS += log logindmux kssl mm nca physmem pm poll pool
220 221 DRV_KMODS += pseudo ptc ptm pts ptsl ramdisk random rsm rts sad
221 222 DRV_KMODS += simnet softmac sppp sppptun sy sysevent sysmsg
222 223 DRV_KMODS += spdsock
223 -DRV_KMODS += tcp tcp6 timerfd tl tnf ttymux udp udp6 wc winlock zcons
224 +DRV_KMODS += tcp tcp6 timerfd tl tnf udp udp6 wc winlock zcons
224 225 DRV_KMODS += ippctl
225 226 DRV_KMODS += dld
226 227 DRV_KMODS += ipd
227 228 DRV_KMODS += ipf
228 229 DRV_KMODS += rpcib
229 230 DRV_KMODS += dlpistub
230 231 DRV_KMODS += vnic
231 232 DRV_KMODS += xge
232 233 DRV_KMODS += rds
233 234 DRV_KMODS += rdsv3
234 235 DRV_KMODS += chxge
235 236 DRV_KMODS += smbsrv
236 237 DRV_KMODS += vscan
237 238 DRV_KMODS += nsmb
238 239 DRV_KMODS += fm
239 240 DRV_KMODS += nulldriver
240 241 DRV_KMODS += bridge trill
241 242 DRV_KMODS += bpf
242 243 DRV_KMODS += dca
243 244 DRV_KMODS += eventfd
244 245 DRV_KMODS += signalfd
245 246
246 247 #
247 248 # Hardware Drivers in common space
248 249 #
249 250
250 251 DRV_KMODS += afe
251 252 DRV_KMODS += audio1575
252 253 DRV_KMODS += audioens
253 254 DRV_KMODS += audiols
254 255 DRV_KMODS += audiop16x
255 256 DRV_KMODS += audiopci
256 257 DRV_KMODS += audiots
257 258 DRV_KMODS += bnxe
258 259 DRV_KMODS += e1000g
259 260 DRV_KMODS += efe
260 261 DRV_KMODS += hxge
261 262 DRV_KMODS += mxfe
262 263 DRV_KMODS += rge
263 264 DRV_KMODS += rtls
264 265 DRV_KMODS += sfe
265 266 DRV_KMODS += aac
266 267 DRV_KMODS += igb
267 268 DRV_KMODS += ixgbe
268 269 DRV_KMODS += vr
269 270 DRV_KMODS += mr_sas
270 271 DRV_KMODS += yge
271 272
272 273 #
273 274 # Machine Specific Driver Modules (/kernel/drv):
274 275 #
275 276 DRV_KMODS += audiocs
276 277 DRV_KMODS += bge dmfe eri fas hme qfe
277 278 DRV_KMODS += openeepr options sd ses st
278 279 DRV_KMODS += ssd
279 280 DRV_KMODS += ecpp
280 281 DRV_KMODS += hid hubd ehci ohci uhci usb_mid usb_ia scsa2usb usbprn ugen
281 282 DRV_KMODS += usbser usbsacm usbsksp usbsprl
282 283 DRV_KMODS += usb_as usb_ac
283 284 DRV_KMODS += usbskel
284 285 DRV_KMODS += usbvc
285 286 DRV_KMODS += usbftdi
286 287 DRV_KMODS += usbecm
287 288 DRV_KMODS += hci1394 av1394 scsa1394 dcam1394
288 289 DRV_KMODS += sbp2
289 290 DRV_KMODS += ib ibp eibnx eoib rdsib sdp iser daplt hermon tavor sol_ucma sol_uverbs
290 291 DRV_KMODS += sol_umad
291 292 DRV_KMODS += pci_pci pcieb pcieb_bcm
292 293 DRV_KMODS += i8042 kb8042 mouse8042
293 294 DRV_KMODS += fcode
294 295 DRV_KMODS += mpt_sas
295 296 DRV_KMODS += socal
296 297 DRV_KMODS += sgen
297 298 DRV_KMODS += myri10ge
298 299 DRV_KMODS += smp
299 300 DRV_KMODS += dad
300 301 DRV_KMODS += scsi_vhci
301 302 DRV_KMODS += fcp
302 303 DRV_KMODS += fcip
303 304 DRV_KMODS += fcsm
304 305 DRV_KMODS += fp
305 306 DRV_KMODS += qlc
306 307 DRV_KMODS += qlge
307 308 DRV_KMODS += stmf
308 309 DRV_KMODS += stmf_sbd
309 310 DRV_KMODS += fct
310 311 DRV_KMODS += fcoe
311 312 DRV_KMODS += fcoet
312 313 DRV_KMODS += fcoei
313 314 DRV_KMODS += qlt
314 315 DRV_KMODS += iscsit
315 316 DRV_KMODS += pppt
316 317 DRV_KMODS += iscsi
317 318 DRV_KMODS += emlxs
318 319 DRV_KMODS += oce
319 320 DRV_KMODS += srpt
320 321 DRV_KMODS += pmcs
321 322 DRV_KMODS += pmcs8001fw
322 323
323 324 #
324 325 # I/O framework test drivers
325 326 #
326 327 DRV_KMODS += pshot
327 328 DRV_KMODS += gen_drv
328 329 DRV_KMODS += tvhci tphci tclient
329 330 DRV_KMODS += emul64
330 331
331 332 #
332 333 # PCMCIA specific module(s)
333 334 #
334 335 DRV_KMODS += pcs
335 336 MISC_KMODS += busra cardbus dada pcmcia
336 337 DRV_KMODS += pcic
337 338
338 339 #
339 340 # Exec Class Modules (/kernel/exec):
340 341 #
341 342 EXEC_KMODS += aoutexec elfexec intpexec shbinexec javaexec
342 343
343 344 #
344 345 # Scheduling Class Modules (/kernel/sched):
345 346 #
346 347 SCHED_KMODS += RT TS RT_DPTBL TS_DPTBL IA FSS FX FX_DPTBL SDC
347 348
348 349 #
349 350 # File System Modules (/kernel/fs):
350 351 #
351 352 FS_KMODS += dev devfs fdfs fifofs hsfs lofs namefs nfs pcfs tmpfs zfs
352 353 FS_KMODS += zut specfs udfs ufs autofs procfs sockfs mntfs
353 354 FS_KMODS += ctfs objfs sharefs dcfs smbfs bootfs
354 355
355 356 #
356 357 # Streams Modules (/kernel/strmod):
357 358 #
358 359 STRMOD_KMODS += bufmod connld dedump ldterm ms pckt pfmod
359 360 STRMOD_KMODS += pipemod ptem redirmod rpcmod rlmod telmod timod
360 361 STRMOD_KMODS += spppasyn spppcomp
361 362 STRMOD_KMODS += tirdwr ttcompat
362 363 STRMOD_KMODS += usbkbm usbms usbwcm usb_ah
363 364 STRMOD_KMODS += drcompat
364 365 STRMOD_KMODS += cryptmod
365 366 STRMOD_KMODS += vuid3ps2
366 367
367 368 #
368 369 # 'System' Modules (/kernel/sys):
369 370 #
370 371 SYS_KMODS += c2audit
371 372 SYS_KMODS += exacctsys
372 373 SYS_KMODS += inst_sync kaio msgsys semsys shmsys sysacct pipe
373 374 SYS_KMODS += doorfs pset acctctl portfs
374 375
375 376 #
376 377 # 'User' Modules (/kernel/misc):
377 378 #
378 379 MISC_KMODS += ac97
379 380 MISC_KMODS += bignum
380 381 MISC_KMODS += consconfig gld ipc nfs_dlboot nfssrv scsi
381 382 MISC_KMODS += strplumb swapgeneric tlimod
382 383 MISC_KMODS += rpcsec rpcsec_gss kgssapi kmech_dummy
383 384 MISC_KMODS += kmech_krb5
384 385 MISC_KMODS += fssnap_if
385 386 MISC_KMODS += hidparser kbtrans usba usba10 usbs49_fw
386 387 MISC_KMODS += s1394
387 388 MISC_KMODS += hpcsvc pcihp
388 389 MISC_KMODS += rsmops
389 390 MISC_KMODS += sata
390 391 MISC_KMODS += kcf
391 392 MISC_KMODS += ksocket
392 393 MISC_KMODS += ibcm
393 394 MISC_KMODS += ibdm
394 395 MISC_KMODS += ibdma
395 396 MISC_KMODS += ibmf
396 397 MISC_KMODS += ibtl
397 398 MISC_KMODS += sol_ofs
398 399 MISC_KMODS += idm
399 400 MISC_KMODS += idmap
400 401 MISC_KMODS += hook
401 402 MISC_KMODS += neti
402 403 MISC_KMODS += ctf
403 404 MISC_KMODS += mac dls
404 405 MISC_KMODS += cmlb
405 406 MISC_KMODS += tem
406 407 MISC_KMODS += pcicfg fcodem fcpci
407 408 MISC_KMODS += scsi_vhci_f_sym scsi_vhci_f_tpgs scsi_vhci_f_asym_sun
408 409 MISC_KMODS += scsi_vhci_f_sym_hds
409 410 MISC_KMODS += scsi_vhci_f_tape scsi_vhci_f_tpgs_tape
410 411 MISC_KMODS += fctl
411 412 MISC_KMODS += emlxs_fw
412 413 MISC_KMODS += qlc_fw_2200
413 414 MISC_KMODS += qlc_fw_2300
414 415 MISC_KMODS += qlc_fw_2400
415 416 MISC_KMODS += qlc_fw_2500
416 417 MISC_KMODS += qlc_fw_6322
417 418 MISC_KMODS += qlc_fw_8100
418 419 MISC_KMODS += mii
419 420
420 421 MISC_KMODS += klmmod klmops
421 422
422 423 #
423 424 # Software Cryptographic Providers (/kernel/crypto):
424 425 #
425 426 CRYPTO_KMODS += aes
426 427 CRYPTO_KMODS += arcfour
427 428 CRYPTO_KMODS += blowfish
428 429 CRYPTO_KMODS += des
429 430 CRYPTO_KMODS += ecc
430 431 CRYPTO_KMODS += edonr
431 432 CRYPTO_KMODS += md4
432 433 CRYPTO_KMODS += md5
433 434 CRYPTO_KMODS += rsa
434 435 CRYPTO_KMODS += sha1
435 436 CRYPTO_KMODS += sha2
436 437 CRYPTO_KMODS += skein
437 438 CRYPTO_KMODS += swrand
438 439
439 440 #
440 441 # IP Policy Modules (/kernel/ipp):
441 442 #
442 443 IPP_KMODS += dlcosmk
443 444 IPP_KMODS += flowacct
444 445 IPP_KMODS += ipgpc
445 446 IPP_KMODS += dscpmk
446 447 IPP_KMODS += tokenmt
447 448 IPP_KMODS += tswtclmt
448 449
449 450 #
450 451 # 'Dacf' modules (/kernel/dacf)
451 452 DACF_KMODS += consconfig_dacf
452 453
453 454 #
454 455 # SVVS Testing Modules (/kernel/strmod):
455 456 #
456 457 # These are streams and driver modules which are not to be
457 458 # delivered with a released system. However, during development
458 459 # it is convenient to build and install the SVVS kernel modules.
459 460 #
460 461 SVVS_KMODS += lmodb lmode lmodr lmodt svvslo tidg tivc tmux
461 462
462 463 #
463 464 # Modules eXcluded from the product:
464 465 #
465 466 XMODS +=
466 467
467 468 #
468 469 # 'Dacf' Modules (/kernel/dacf):
469 470 #
470 471 DACF_KMODS += net_dacf
471 472
472 473 #
473 474 # MAC-Type Plugin Modules (/kernel/mac)
474 475 #
475 476 MAC_KMODS += mac_6to4
476 477 MAC_KMODS += mac_ether
477 478 MAC_KMODS += mac_ipv4
478 479 MAC_KMODS += mac_ipv6
479 480 MAC_KMODS += mac_wifi
480 481 MAC_KMODS += mac_ib
481 482
482 483 #
483 484 # socketmod (kernel/socketmod)
484 485 #
485 486 SOCKET_KMODS += sockpfp
486 487 SOCKET_KMODS += socksctp
487 488 SOCKET_KMODS += socksdp
488 489 SOCKET_KMODS += sockrds
489 490 SOCKET_KMODS += ksslf
490 491
491 492 #
492 493 # kiconv modules (/kernel/kiconv):
493 494 #
494 495 KICONV_KMODS += kiconv_emea kiconv_ja kiconv_ko kiconv_sc kiconv_tc
495 496
496 497 #
497 498 # Ensure that the variable member of the cpu_t (cpu_m) is defined
498 499 # for the lint builds so as not to cause lint errors during the
499 500 # global cross check.
500 501 #
501 502 $(LINTFLAGSUPPRESS)LINTFLAGS += -D_MACHDEP -I$(UTSBASE)/sun4 \
502 503 -I$(UTSBASE)/sun4u -I$(UTSBASE)/sfmmu
↓ open down ↓ |
269 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX