1 # CDDL HEADER START
   2 #
   3 # The contents of this file are subject to the terms of the
   4 # Common Development and Distribution License (the "License").
   5 # You may not use this file except in compliance with the License.
   6 #
   7 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   8 # or http://www.opensolaris.org/os/licensing.
   9 # See the License for the specific language governing permissions
  10 # and limitations under the License.
  11 #
  12 # When distributing Covered Code, include this CDDL HEADER in each
  13 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  14 # If applicable, add the following below this CDDL HEADER, with the
  15 # fields enclosed by brackets "[]" replaced with your own identifying
  16 # information: Portions Copyright [yyyy] [name of copyright owner]
  17 #
  18 # CDDL HEADER END
  19 #
  20 
  21 #
  22 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  24 # Copyright 2016 Joyent, Inc.
  25 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2018 Nexenta Systems, Inc.
  27 #
  28 
  29 #
  30 #       This makefile contains the common definitions for all intel
  31 #       implementation architecture independent modules.
  32 #
  33 
  34 #
  35 #       Machine type (implementation architecture):
  36 #
  37 PLATFORM         = i86pc
  38 
  39 #
  40 #       Everybody needs to know how to build modstubs.o and to locate unix.o.
  41 #       Note that unix.o must currently be selected from among the possible
  42 #       "implementation architectures". Note further, that unix.o is only
  43 #       used as an optional error check for undefines so (theoretically)
  44 #       any "implementation architectures" could be used. We choose i86pc
  45 #       because it is the reference port.
  46 #
  47 UNIX_DIR         = $(UTSBASE)/i86pc/unix
  48 GENLIB_DIR       = $(UTSBASE)/intel/genunix
  49 IPDRV_DIR        = $(UTSBASE)/intel/ip
  50 MODSTUBS_DIR     = $(UNIX_DIR)
  51 DSF_DIR          = $(UTSBASE)/$(PLATFORM)/genassym
  52 LINTS_DIR        = $(OBJS_DIR)
  53 LINT_LIB_DIR     = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
  54 
  55 UNIX_O           = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
  56 GENLIB           = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
  57 MODSTUBS_O       = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
  58 LINT_LIB         = $(UTSBASE)/i86pc/lint-libs/$(OBJS_DIR)/llib-lunix.ln
  59 GEN_LINT_LIB     = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
  60 
  61 #
  62 #       Include the makefiles which define build rule templates, the
  63 #       collection of files per module, and a few specific flags. Note
  64 #       that order is significant, just as with an include path. The
  65 #       first build rule template which matches the files name will be
  66 #       used. By including these in order from most machine dependent
  67 #       to most machine independent, we allow a machine dependent file
  68 #       to be used in preference over a machine independent version
  69 #       (Such as a machine specific optimization, which preserves the
  70 #       interfaces.)
  71 #
  72 include $(UTSBASE)/intel/Makefile.files
  73 include $(UTSBASE)/common/Makefile.files
  74 
  75 #
  76 # ----- TRANSITIONAL SECTION --------------------------------------------------
  77 #
  78 
  79 #
  80 #       Not everything which *should* be a module is a module yet. The
  81 #       following is a list of such objects which are currently part of
  82 #       genunix but which might someday become kmods.  This must be
  83 #       defined before we include Makefile.uts, or else genunix's build
  84 #       won't be as parallel as we might like.
  85 #
  86 NOT_YET_KMODS    = $(OLDPTY_OBJS) $(PTY_OBJS) $(VCONS_CONF_OBJS) $(MOD_OBJS)
  87 
  88 #
  89 # ----- END OF TRANSITIONAL SECTION -------------------------------------------
  90 #
  91 #       Include machine independent rules. Note that this does not imply
  92 #       that the resulting module from rules in Makefile.uts is machine
  93 #       independent. Only that the build rules are machine independent.
  94 #
  95 include $(UTSBASE)/Makefile.uts
  96 
  97 #
  98 #       The following must be defined for all implementations:
  99 #
 100 MODSTUBS                = $(UTSBASE)/intel/ia32/ml/modstubs.s
 101 
 102 #
 103 #       Define supported builds
 104 #
 105 DEF_BUILDS              = $(DEF_BUILDS64)
 106 ALL_BUILDS              = $(ALL_BUILDS64)
 107 
 108 #
 109 #       x86 or amd64 inline templates
 110 #
 111 INLINES_32              = $(UTSBASE)/intel/ia32/ml/ia32.il
 112 INLINES_64              = $(UTSBASE)/intel/amd64/ml/amd64.il
 113 INLINES                 += $(INLINES_$(CLASS))
 114 
 115 #
 116 #       kernel-specific optimizations; override default in Makefile.master
 117 #
 118 
 119 CFLAGS_XARCH_32         = $(i386_CFLAGS)
 120 CFLAGS_XARCH_64         = $(amd64_CFLAGS)
 121 CFLAGS_XARCH            = $(CFLAGS_XARCH_$(CLASS))
 122 
 123 COPTFLAG_32             = $(COPTFLAG)
 124 COPTFLAG_64             = $(COPTFLAG64)
 125 COPTIMIZE               = $(COPTFLAG_$(CLASS))
 126 
 127 CFLAGS                  = $(CFLAGS_XARCH)
 128 CFLAGS                  += $(COPTIMIZE)
 129 CFLAGS                  += $(INLINES) -D_ASM_INLINES
 130 CFLAGS                  += $(CCMODE)
 131 CFLAGS                  += $(SPACEFLAG)
 132 CFLAGS                  += $(CCUNBOUND)
 133 CFLAGS                  += $(CFLAGS_uts)
 134 CFLAGS                  += -xstrconst
 135 CFLAGS                  += -_gcc=-fstack-protector
 136 
 137 ASFLAGS_XARCH_32        = $(i386_ASFLAGS)
 138 ASFLAGS_XARCH_64        = $(amd64_ASFLAGS)
 139 ASFLAGS_XARCH           = $(ASFLAGS_XARCH_$(CLASS))
 140 
 141 ASFLAGS                 += $(ASFLAGS_XARCH)
 142 
 143 #
 144 #       Define the base directory for installation.
 145 #
 146 BASE_INS_DIR    = $(ROOT)
 147 
 148 #
 149 #       Debugging level
 150 #
 151 #       Special knowledge of which special debugging options affect which
 152 #       file is used to optimize the build if these flags are changed.
 153 #
 154 DEBUG_DEFS_OBJ32        =
 155 DEBUG_DEFS_DBG32        = -DDEBUG
 156 DEBUG_DEFS_OBJ64        =
 157 DEBUG_DEFS_DBG64        = -DDEBUG
 158 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 159 
 160 DEBUG_COND_OBJ32        = $(POUND_SIGN)
 161 DEBUG_COND_DBG32        =
 162 DEBUG_COND_OBJ64        = $(POUND_SIGN)
 163 DEBUG_COND_DBG64        =
 164 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 165 
 166 $(IF_DEBUG_OBJ)syscall.o        :=      DEBUG_DEFS      += -DSYSCALLTRACE
 167 $(IF_DEBUG_OBJ)clock.o          :=      DEBUG_DEFS      += -DKSLICE=1
 168 
 169 #
 170 #       Collect the preprocessor definitions to be associated with *all*
 171 #       files.
 172 #
 173 ALL_DEFS         = $(DEBUG_DEFS) $(OPTION_DEFS)
 174 
 175 #
 176 #       The kernels modules which are "implementation architecture"
 177 #       specific for this machine are enumerated below. Note that most
 178 #       of these modules must exist (in one form or another) for each
 179 #       architecture.
 180 #
 181 #       Common Drivers (usually pseudo drivers) (/kernel/drv)
 182 #       DRV_KMODS are built both 32-bit and 64-bit
 183 #       DRV_KMODS_32 are built only 32-bit
 184 #       DRV_KMODS_64 are built only 64-bit
 185 #
 186 DRV_KMODS       += aac
 187 DRV_KMODS       += aggr
 188 DRV_KMODS       += ahci
 189 DRV_KMODS       += amd64_gart
 190 DRV_KMODS       += amr
 191 DRV_KMODS       += agpgart
 192 DRV_KMODS       += srn
 193 DRV_KMODS       += agptarget
 194 DRV_KMODS       += arn
 195 DRV_KMODS       += arp
 196 DRV_KMODS       += asy
 197 DRV_KMODS       += ata
 198 DRV_KMODS       += ath
 199 DRV_KMODS       += atu
 200 DRV_KMODS       += audio
 201 DRV_KMODS       += audio1575
 202 DRV_KMODS       += audio810
 203 DRV_KMODS       += audiocmi
 204 DRV_KMODS       += audiocmihd
 205 DRV_KMODS       += audioemu10k
 206 DRV_KMODS       += audioens
 207 DRV_KMODS       += audiohd
 208 DRV_KMODS       += audioixp
 209 DRV_KMODS       += audiols
 210 DRV_KMODS       += audiop16x
 211 DRV_KMODS       += audiopci
 212 DRV_KMODS       += audiosolo
 213 DRV_KMODS       += audiots
 214 DRV_KMODS       += audiovia823x
 215 DRV_KMODS       += bl 
 216 DRV_KMODS       += blkdev
 217 DRV_KMODS       += bge
 218 DRV_KMODS       += bofi
 219 DRV_KMODS       += bpf
 220 DRV_KMODS       += bridge
 221 DRV_KMODS       += bscbus
 222 DRV_KMODS       += bscv
 223 DRV_KMODS       += chxge
 224 DRV_KMODS       += cxgbe
 225 DRV_KMODS       += ntxn
 226 DRV_KMODS       += myri10ge
 227 DRV_KMODS       += clone
 228 DRV_KMODS       += cmdk
 229 DRV_KMODS       += cn
 230 DRV_KMODS       += conskbd
 231 DRV_KMODS       += consms
 232 DRV_KMODS       += cpqary3
 233 DRV_KMODS       += cpuid
 234 DRV_KMODS       += cpunex
 235 DRV_KMODS       += crypto
 236 DRV_KMODS       += cryptoadm
 237 DRV_KMODS       += dca
 238 DRV_KMODS       += devinfo
 239 DRV_KMODS       += dld
 240 DRV_KMODS       += dlpistub
 241 DRV_KMODS       += dnet
 242 DRV_KMODS       += dump
 243 DRV_KMODS       += ecpp
 244 DRV_KMODS       += emlxs
 245 DRV_KMODS       += eventfd
 246 DRV_KMODS       += fd
 247 DRV_KMODS       += fdc
 248 DRV_KMODS       += fm
 249 DRV_KMODS       += fssnap
 250 DRV_KMODS       += hxge
 251 DRV_KMODS       += i8042
 252 DRV_KMODS       += i915
 253 DRV_KMODS       += icmp
 254 DRV_KMODS       += icmp6
 255 DRV_KMODS       += intel_nb5000
 256 DRV_KMODS       += intel_nhm
 257 DRV_KMODS       += ip
 258 DRV_KMODS       += ip6
 259 DRV_KMODS       += ipd
 260 DRV_KMODS       += ipf
 261 DRV_KMODS       += ipnet
 262 DRV_KMODS       += ippctl
 263 DRV_KMODS       += ipsecah
 264 DRV_KMODS       += ipsecesp
 265 DRV_KMODS       += ipw
 266 DRV_KMODS       += iwh
 267 DRV_KMODS       += iwi
 268 DRV_KMODS       += iwn
 269 DRV_KMODS       += iwk
 270 DRV_KMODS       += iwp
 271 DRV_KMODS       += iwscn
 272 DRV_KMODS       += kb8042
 273 DRV_KMODS       += keysock
 274 DRV_KMODS       += kssl
 275 DRV_KMODS       += kstat
 276 DRV_KMODS       += ksyms
 277 DRV_KMODS       += kmdb
 278 DRV_KMODS       += llc1
 279 DRV_KMODS       += lofi
 280 DRV_KMODS       += log
 281 DRV_KMODS       += logindmux
 282 DRV_KMODS       += mega_sas
 283 DRV_KMODS       += mc-amd
 284 DRV_KMODS       += mm
 285 DRV_KMODS       += mouse8042
 286 DRV_KMODS       += mpt_sas
 287 DRV_KMODS       += mr_sas
 288 DRV_KMODS       += mwl 
 289 DRV_KMODS       += nca
 290 DRV_KMODS       += nsmb
 291 DRV_KMODS       += nulldriver
 292 DRV_KMODS       += nv_sata
 293 DRV_KMODS       += nvme
 294 DRV_KMODS       += nxge
 295 DRV_KMODS       += oce
 296 DRV_KMODS       += openeepr
 297 DRV_KMODS       += pci_pci
 298 DRV_KMODS       += pcic
 299 DRV_KMODS       += pcieb
 300 DRV_KMODS       += physmem
 301 DRV_KMODS       += pit_beep
 302 DRV_KMODS       += pm
 303 DRV_KMODS       += poll
 304 DRV_KMODS       += pool
 305 DRV_KMODS       += power
 306 DRV_KMODS       += pseudo
 307 DRV_KMODS       += ptc
 308 DRV_KMODS       += ptm
 309 DRV_KMODS       += pts
 310 DRV_KMODS       += ptsl
 311 DRV_KMODS       += qlge
 312 DRV_KMODS       += radeon
 313 DRV_KMODS       += ral
 314 DRV_KMODS       += ramdisk
 315 DRV_KMODS       += random
 316 DRV_KMODS       += rds
 317 DRV_KMODS       += rdsv3
 318 DRV_KMODS       += rpcib
 319 DRV_KMODS       += rsm
 320 DRV_KMODS       += rts
 321 DRV_KMODS       += rtw
 322 DRV_KMODS       += rum
 323 DRV_KMODS       += rwd
 324 DRV_KMODS       += rwn
 325 DRV_KMODS       += sad
 326 DRV_KMODS       += sd
 327 DRV_KMODS       += sdhost
 328 DRV_KMODS       += sgen
 329 DRV_KMODS       += si3124
 330 DRV_KMODS       += signalfd
 331 DRV_KMODS       += smbios
 332 DRV_KMODS       += skd
 333 DRV_KMODS       += softmac
 334 DRV_KMODS       += spdsock
 335 DRV_KMODS       += smbsrv
 336 DRV_KMODS       += smp
 337 DRV_KMODS       += sppp
 338 DRV_KMODS       += sppptun
 339 DRV_KMODS       += srpt
 340 DRV_KMODS       += st
 341 DRV_KMODS       += sy
 342 DRV_KMODS       += sysevent
 343 DRV_KMODS       += sysmsg
 344 DRV_KMODS       += tcp
 345 DRV_KMODS       += tcp6
 346 DRV_KMODS       += timerfd
 347 DRV_KMODS       += tl
 348 DRV_KMODS       += tnf
 349 DRV_KMODS       += tpm
 350 DRV_KMODS       += trill
 351 DRV_KMODS       += udp
 352 DRV_KMODS       += udp6
 353 DRV_KMODS       += ucode
 354 DRV_KMODS       += ural
 355 DRV_KMODS       += uath
 356 DRV_KMODS       += urtw
 357 DRV_KMODS       += vgatext
 358 DRV_KMODS       += vnic
 359 DRV_KMODS       += vscan
 360 DRV_KMODS       += wc
 361 DRV_KMODS       += winlock
 362 DRV_KMODS       += wpi
 363 DRV_KMODS       += xge
 364 DRV_KMODS       += yge
 365 DRV_KMODS       += zcons
 366 DRV_KMODS       += zyd
 367 DRV_KMODS       += simnet
 368 DRV_KMODS       += stmf
 369 DRV_KMODS       += stmf_sbd
 370 DRV_KMODS       += fct
 371 DRV_KMODS       += fcoe
 372 DRV_KMODS       += fcoet
 373 DRV_KMODS       += fcoei
 374 DRV_KMODS       += qlt
 375 DRV_KMODS       += iscsit
 376 DRV_KMODS       += pppt
 377 DRV_KMODS       += ncall nsctl sdbc nskern sv
 378 DRV_KMODS       += ii rdc rdcsrv rdcstub
 379 DRV_KMODS       += iptun
 380 DRV_KMODS       += vmxnet3s
 381 DRV_KMODS       += pvscsi
 382 
 383 #
 384 # Common code drivers
 385 #
 386 
 387 DRV_KMODS       += afe
 388 DRV_KMODS       += atge
 389 DRV_KMODS       += bfe
 390 DRV_KMODS       += bnxe
 391 DRV_KMODS       += dmfe
 392 DRV_KMODS       += e1000g
 393 DRV_KMODS       += efe
 394 DRV_KMODS       += elxl
 395 DRV_KMODS       += hme
 396 DRV_KMODS       += mxfe
 397 DRV_KMODS       += nge
 398 DRV_KMODS       += pcn
 399 DRV_KMODS       += qede
 400 DRV_KMODS       += rge
 401 DRV_KMODS       += rtls
 402 DRV_KMODS       += sfe
 403 DRV_KMODS       += sfxge
 404 DRV_KMODS       += amd8111s
 405 DRV_KMODS       += igb
 406 DRV_KMODS       += ipmi
 407 DRV_KMODS       += iprb
 408 DRV_KMODS       += ixgbe
 409 DRV_KMODS       += i40e
 410 DRV_KMODS       += vr
 411 
 412 #
 413 # Virtio drivers
 414 #
 415 
 416 # Virtio core
 417 DRV_KMODS       += virtio
 418 
 419 # Virtio block driver
 420 DRV_KMODS       += vioblk
 421 
 422 # Virtio network driver
 423 DRV_KMODS       += vioif
 424 
 425 #
 426 #       DTrace and DTrace Providers
 427 #
 428 DRV_KMODS       += dtrace
 429 DRV_KMODS       += fbt
 430 DRV_KMODS       += lockstat
 431 DRV_KMODS       += profile
 432 DRV_KMODS       += sdt
 433 DRV_KMODS       += systrace
 434 DRV_KMODS       += fasttrap
 435 DRV_KMODS       += dcpc
 436 
 437 #
 438 #       I/O framework test drivers
 439 #
 440 DRV_KMODS       += pshot
 441 DRV_KMODS       += gen_drv
 442 DRV_KMODS       += tvhci tphci tclient
 443 DRV_KMODS       += emul64
 444 
 445 #
 446 #       Machine Specific Driver Modules (/kernel/drv):
 447 #
 448 DRV_KMODS       += options
 449 DRV_KMODS       += scsi_vhci
 450 DRV_KMODS       += pmcs
 451 DRV_KMODS       += pmcs8001fw
 452 DRV_KMODS       += arcmsr
 453 DRV_KMODS       += fcp
 454 DRV_KMODS       += fcip
 455 DRV_KMODS       += fcsm
 456 DRV_KMODS       += fp
 457 DRV_KMODS       += qlc
 458 DRV_KMODS       += iscsi
 459 
 460 #
 461 #       PCMCIA specific module(s)
 462 #
 463 DRV_KMODS       += pcs
 464 MISC_KMODS      += cardbus
 465 
 466 #
 467 #       SCSI Enclosure Services driver
 468 #
 469 DRV_KMODS       += ses
 470 
 471 #
 472 #       USB specific modules
 473 #
 474 DRV_KMODS       += hid
 475 DRV_KMODS       += hubd
 476 DRV_KMODS       += uhci
 477 DRV_KMODS       += ehci
 478 DRV_KMODS       += ohci
 479 DRV_KMODS       += usb_mid
 480 DRV_KMODS       += usb_ia
 481 DRV_KMODS       += scsa2usb
 482 DRV_KMODS       += usbprn
 483 DRV_KMODS       += ugen
 484 DRV_KMODS       += usbser
 485 DRV_KMODS       += usbsacm
 486 DRV_KMODS       += usbsksp
 487 DRV_KMODS       += usbsprl
 488 DRV_KMODS       += usb_ac
 489 DRV_KMODS       += usb_as
 490 DRV_KMODS       += usbskel
 491 DRV_KMODS       += usbvc
 492 DRV_KMODS       += usbftdi
 493 DRV_KMODS       += usbecm
 494 DRV_KMODS       += xhci
 495 
 496 #
 497 #       USBGEM modules
 498 #
 499 DRV_KMODS       += usbgem
 500 DRV_KMODS       += axf
 501 DRV_KMODS       += udmf 
 502 DRV_KMODS       += upf
 503 DRV_KMODS       += urf 
 504 
 505 #
 506 #       1394 modules
 507 #
 508 MISC_KMODS      += s1394 sbp2
 509 DRV_KMODS       += hci1394 scsa1394
 510 DRV_KMODS       += av1394
 511 DRV_KMODS       += dcam1394
 512 
 513 #
 514 #       InfiniBand pseudo drivers
 515 #
 516 DRV_KMODS       += ib ibp eibnx eoib rdsib sdp iser daplt hermon tavor sol_ucma sol_uverbs
 517 DRV_KMODS       += sol_umad 
 518 
 519 #
 520 #       Brand modules
 521 #
 522 BRAND_KMODS     += sn1_brand s10_brand
 523 
 524 #
 525 #       Exec Class Modules (/kernel/exec):
 526 #
 527 EXEC_KMODS      += elfexec intpexec shbinexec javaexec
 528 
 529 #
 530 #       Scheduling Class Modules (/kernel/sched):
 531 #
 532 SCHED_KMODS     += IA RT TS RT_DPTBL TS_DPTBL FSS FX FX_DPTBL SDC
 533 
 534 #
 535 #       File System Modules (/kernel/fs):
 536 #
 537 FS_KMODS        += autofs ctfs dcfs dev devfs fdfs fifofs hsfs lofs
 538 FS_KMODS        += mntfs namefs nfs objfs zfs zut
 539 FS_KMODS        += pcfs procfs sockfs specfs tmpfs udfs ufs sharefs
 540 FS_KMODS        += smbfs bootfs
 541 
 542 #
 543 #       Streams Modules (/kernel/strmod):
 544 #
 545 STRMOD_KMODS    += bufmod connld dedump ldterm pckt pfmod pipemod
 546 STRMOD_KMODS    += ptem redirmod rpcmod rlmod telmod timod
 547 STRMOD_KMODS    += spppasyn spppcomp
 548 STRMOD_KMODS    += tirdwr ttcompat
 549 STRMOD_KMODS    += usbkbm
 550 STRMOD_KMODS    += usbms
 551 STRMOD_KMODS    += usbwcm
 552 STRMOD_KMODS    += usb_ah
 553 STRMOD_KMODS    += drcompat
 554 STRMOD_KMODS    += cryptmod
 555 STRMOD_KMODS    += vuid2ps2
 556 STRMOD_KMODS    += vuid3ps2
 557 STRMOD_KMODS    += vuidm3p
 558 STRMOD_KMODS    += vuidm4p
 559 STRMOD_KMODS    += vuidm5p
 560 
 561 #
 562 #       'System' Modules (/kernel/sys):
 563 #
 564 SYS_KMODS       += c2audit
 565 SYS_KMODS       += doorfs
 566 SYS_KMODS       += exacctsys
 567 SYS_KMODS       += inst_sync
 568 SYS_KMODS       += kaio
 569 SYS_KMODS       += msgsys
 570 SYS_KMODS       += pipe
 571 SYS_KMODS       += portfs
 572 SYS_KMODS       += pset
 573 SYS_KMODS       += semsys
 574 SYS_KMODS       += shmsys
 575 SYS_KMODS       += sysacct
 576 SYS_KMODS       += acctctl
 577 
 578 #
 579 #       'Misc' Modules (/kernel/misc)
 580 #       MISC_KMODS are built both 32-bit and 64-bit
 581 #       MISC_KMODS_32 are built only 32-bit
 582 #       MISC_KMODS_64 are built only 64-bit
 583 #
 584 MISC_KMODS      += ac97
 585 MISC_KMODS      += acpica
 586 MISC_KMODS      += agpmaster
 587 MISC_KMODS      += bignum
 588 MISC_KMODS      += bootdev
 589 MISC_KMODS      += busra
 590 MISC_KMODS      += cmlb
 591 MISC_KMODS      += consconfig
 592 MISC_KMODS      += ctf
 593 MISC_KMODS      += dadk
 594 MISC_KMODS      += dcopy
 595 MISC_KMODS      += dls
 596 MISC_KMODS      += drm
 597 MISC_KMODS      += fssnap_if
 598 MISC_KMODS      += gda
 599 MISC_KMODS      += gld
 600 MISC_KMODS      += hidparser
 601 MISC_KMODS      += hook
 602 MISC_KMODS      += hpcsvc
 603 MISC_KMODS      += ibcm
 604 MISC_KMODS      += ibdm
 605 MISC_KMODS      += ibdma
 606 MISC_KMODS      += ibmf
 607 MISC_KMODS      += ibtl
 608 MISC_KMODS      += idm
 609 MISC_KMODS      += idmap
 610 MISC_KMODS      += iommulib
 611 MISC_KMODS      += ipc
 612 MISC_KMODS      += kbtrans
 613 MISC_KMODS      += kcf
 614 MISC_KMODS      += kgssapi
 615 MISC_KMODS      += kmech_dummy
 616 MISC_KMODS      += kmech_krb5
 617 MISC_KMODS      += ksocket
 618 MISC_KMODS      += mac
 619 MISC_KMODS      += mii
 620 MISC_KMODS      += mwlfw
 621 MISC_KMODS      += net80211
 622 MISC_KMODS      += nfs_dlboot
 623 MISC_KMODS      += nfssrv
 624 MISC_KMODS      += neti
 625 MISC_KMODS      += pci_autoconfig
 626 MISC_KMODS      += pcicfg
 627 MISC_KMODS      += pcihp
 628 MISC_KMODS      += pcmcia
 629 MISC_KMODS      += rpcsec
 630 MISC_KMODS      += rpcsec_gss
 631 MISC_KMODS      += rsmops
 632 MISC_KMODS      += sata
 633 MISC_KMODS      += scsi
 634 MISC_KMODS      += sda
 635 MISC_KMODS      += sol_ofs
 636 MISC_KMODS      += spuni
 637 MISC_KMODS      += strategy
 638 MISC_KMODS      += strplumb
 639 MISC_KMODS      += tem
 640 MISC_KMODS      += tlimod
 641 MISC_KMODS      += usba usba10 usbs49_fw
 642 MISC_KMODS      += scsi_vhci_f_sym_hds
 643 MISC_KMODS      += scsi_vhci_f_sym
 644 MISC_KMODS      += scsi_vhci_f_tpgs
 645 MISC_KMODS      += scsi_vhci_f_asym_sun
 646 MISC_KMODS      += scsi_vhci_f_tape
 647 MISC_KMODS      += scsi_vhci_f_tpgs_tape
 648 MISC_KMODS      += fctl
 649 MISC_KMODS      += emlxs_fw
 650 MISC_KMODS      += qlc_fw_2200
 651 MISC_KMODS      += qlc_fw_2300
 652 MISC_KMODS      += qlc_fw_2400
 653 MISC_KMODS      += qlc_fw_2500
 654 MISC_KMODS      += qlc_fw_6322
 655 MISC_KMODS      += qlc_fw_8100
 656 MISC_KMODS      += uathfw
 657 
 658 MISC_KMODS      += klmmod klmops
 659 
 660 #
 661 #       Software Cryptographic Providers (/kernel/crypto):
 662 #
 663 CRYPTO_KMODS    += aes
 664 CRYPTO_KMODS    += arcfour
 665 CRYPTO_KMODS    += blowfish
 666 CRYPTO_KMODS    += des
 667 CRYPTO_KMODS    += ecc
 668 CRYPTO_KMODS    += edonr
 669 CRYPTO_KMODS    += md4
 670 CRYPTO_KMODS    += md5
 671 CRYPTO_KMODS    += rsa
 672 CRYPTO_KMODS    += sha1
 673 CRYPTO_KMODS    += sha2
 674 CRYPTO_KMODS    += skein
 675 CRYPTO_KMODS    += swrand
 676 
 677 #
 678 #       IP Policy Modules (/kernel/ipp)
 679 #
 680 IPP_KMODS       += dlcosmk
 681 IPP_KMODS       += flowacct
 682 IPP_KMODS       += ipgpc
 683 IPP_KMODS       += dscpmk
 684 IPP_KMODS       += tokenmt
 685 IPP_KMODS       += tswtclmt
 686 
 687 #
 688 #       generic-unix module (/kernel/genunix):
 689 #
 690 GENUNIX_KMODS   += genunix
 691 
 692 #
 693 #       Modules eXcluded from the product:
 694 #
 695 
 696 #
 697 #       'Dacf' Modules (/kernel/dacf):
 698 #
 699 
 700 #
 701 #       Performance Counter BackEnd modules (/usr/kernel/pcbe)
 702 #
 703 PCBE_KMODS      += p4_pcbe opteron_pcbe core_pcbe
 704 
 705 #
 706 #       MAC-Type Plugin Modules (/kernel/mac)
 707 #
 708 MAC_KMODS       += mac_6to4
 709 MAC_KMODS       += mac_ether
 710 MAC_KMODS       += mac_ipv4
 711 MAC_KMODS       += mac_ipv6
 712 MAC_KMODS       += mac_wifi
 713 MAC_KMODS       += mac_ib
 714 
 715 #
 716 # socketmod (kernel/socketmod)
 717 #
 718 SOCKET_KMODS    += sockpfp
 719 SOCKET_KMODS    += socksctp
 720 SOCKET_KMODS    += socksdp
 721 SOCKET_KMODS    += sockrds
 722 SOCKET_KMODS    += ksslf
 723 
 724 #
 725 #       kiconv modules (/kernel/kiconv):
 726 #
 727 KICONV_KMODS    += kiconv_emea kiconv_ja kiconv_ko kiconv_sc kiconv_tc
 728 
 729 #
 730 #       'Dacf' Modules (/kernel/dacf):
 731 #
 732 DACF_KMODS      += net_dacf
 733 
 734 #
 735 # Ensure that the variable member of the cpu_t (cpu_m) is defined
 736 # for the lint builds so as not to cause lint errors during the
 737 # global cross check.
 738 #
 739 LINTFLAGS       += -D_MACHDEP -I$(UTSBASE)/i86pc