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