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