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