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