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