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