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