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