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