Print this page
11553 Want pluggable TCP congestion control algorithms
Portions contributed by: Cody Peter Mello <cody.mello@joyent.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>


   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 #
  23 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
  25 # Copyright (c) 2011 by Delphix. All rights reserved.
  26 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  27 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  28 # Copyright (c) 2019, Joyent, Inc.
  29 #
  30 
  31 #
  32 #       This Makefile contains the common targets and definitions for
  33 #       all kernels. It is to be included in the Makefiles for specific
  34 #       implementation architectures and processor architecture dependent
  35 #       modules: i.e.: all driving kernel Makefiles.
  36 #
  37 #       Include global definitions:
  38 #
  39 include $(SRC)/Makefile.master
  40 
  41 #
  42 #       No text domain in the kernel.
  43 #
  44 DTEXTDOM =
  45 


 408 ROOT_FS_DIR_32          = $(ROOT_MOD_DIR)/fs
 409 ROOT_SCHED_DIR_32       = $(ROOT_MOD_DIR)/sched
 410 ROOT_SOCK_DIR_32        = $(ROOT_MOD_DIR)/socketmod
 411 ROOT_STRMOD_DIR_32      = $(ROOT_MOD_DIR)/strmod
 412 ROOT_IPP_DIR_32         = $(ROOT_MOD_DIR)/ipp
 413 ROOT_SYS_DIR_32         = $(ROOT_MOD_DIR)/sys
 414 ROOT_MISC_DIR_32        = $(ROOT_MOD_DIR)/misc
 415 ROOT_KGSS_DIR_32        = $(ROOT_MOD_DIR)/misc/kgss
 416 ROOT_SCSI_VHCI_DIR_32   = $(ROOT_MOD_DIR)/misc/scsi_vhci
 417 ROOT_PMCS_FW_DIR_32     = $(ROOT_MOD_DIR)/misc/pmcs
 418 ROOT_QLC_FW_DIR_32      = $(ROOT_MOD_DIR)/misc/qlc
 419 ROOT_EMLXS_FW_DIR_32    = $(ROOT_MOD_DIR)/misc/emlxs
 420 ROOT_NLMISC_DIR_32      = $(ROOT_MOD_DIR)/misc
 421 ROOT_MACH_DIR_32        = $(ROOT_MOD_DIR)/mach
 422 ROOT_CPU_DIR_32         = $(ROOT_MOD_DIR)/cpu
 423 ROOT_TOD_DIR_32         = $(ROOT_MOD_DIR)/tod
 424 ROOT_FONT_DIR_32        = $(ROOT_MOD_DIR)/fonts
 425 ROOT_DACF_DIR_32        = $(ROOT_MOD_DIR)/dacf
 426 ROOT_CRYPTO_DIR_32      = $(ROOT_MOD_DIR)/crypto
 427 ROOT_MAC_DIR_32         = $(ROOT_MOD_DIR)/mac

 428 ROOT_KICONV_DIR_32      = $(ROOT_MOD_DIR)/kiconv
 429 
 430 ROOT_KERN_DIR_64        = $(ROOT_MOD_DIR)/$(SUBDIR64)
 431 ROOT_BRAND_DIR_64       = $(ROOT_MOD_DIR)/brand/$(SUBDIR64)
 432 ROOT_DRV_DIR_64         = $(ROOT_MOD_DIR)/drv/$(SUBDIR64)
 433 ROOT_DTRACE_DIR_64      = $(ROOT_MOD_DIR)/dtrace/$(SUBDIR64)
 434 ROOT_EXEC_DIR_64        = $(ROOT_MOD_DIR)/exec/$(SUBDIR64)
 435 ROOT_FS_DIR_64          = $(ROOT_MOD_DIR)/fs/$(SUBDIR64)
 436 ROOT_SCHED_DIR_64       = $(ROOT_MOD_DIR)/sched/$(SUBDIR64)
 437 ROOT_SOCK_DIR_64        = $(ROOT_MOD_DIR)/socketmod/$(SUBDIR64)
 438 ROOT_STRMOD_DIR_64      = $(ROOT_MOD_DIR)/strmod/$(SUBDIR64)
 439 ROOT_IPP_DIR_64         = $(ROOT_MOD_DIR)/ipp/$(SUBDIR64)
 440 ROOT_SYS_DIR_64         = $(ROOT_MOD_DIR)/sys/$(SUBDIR64)
 441 ROOT_MISC_DIR_64        = $(ROOT_MOD_DIR)/misc/$(SUBDIR64)
 442 ROOT_KGSS_DIR_64        = $(ROOT_MOD_DIR)/misc/kgss/$(SUBDIR64)
 443 ROOT_SCSI_VHCI_DIR_64   = $(ROOT_MOD_DIR)/misc/scsi_vhci/$(SUBDIR64)
 444 ROOT_PMCS_FW_DIR_64     = $(ROOT_MOD_DIR)/misc/pmcs/$(SUBDIR64)
 445 ROOT_QLC_FW_DIR_64      = $(ROOT_MOD_DIR)/misc/qlc/$(SUBDIR64)
 446 ROOT_EMLXS_FW_DIR_64    = $(ROOT_MOD_DIR)/misc/emlxs/$(SUBDIR64)
 447 ROOT_NLMISC_DIR_64      = $(ROOT_MOD_DIR)/misc/$(SUBDIR64)
 448 ROOT_MACH_DIR_64        = $(ROOT_MOD_DIR)/mach/$(SUBDIR64)
 449 ROOT_CPU_DIR_64         = $(ROOT_MOD_DIR)/cpu/$(SUBDIR64)
 450 ROOT_TOD_DIR_64         = $(ROOT_MOD_DIR)/tod/$(SUBDIR64)
 451 ROOT_FONT_DIR_64        = $(ROOT_MOD_DIR)/fonts/$(SUBDIR64)
 452 ROOT_DACF_DIR_64        = $(ROOT_MOD_DIR)/dacf/$(SUBDIR64)
 453 ROOT_CRYPTO_DIR_64      = $(ROOT_MOD_DIR)/crypto/$(SUBDIR64)
 454 ROOT_MAC_DIR_64         = $(ROOT_MOD_DIR)/mac/$(SUBDIR64)

 455 ROOT_KICONV_DIR_64      = $(ROOT_MOD_DIR)/kiconv/$(SUBDIR64)
 456 
 457 ROOT_KERN_DIR           = $(ROOT_KERN_DIR_$(CLASS))
 458 ROOT_BRAND_DIR          = $(ROOT_BRAND_DIR_$(CLASS))
 459 ROOT_DRV_DIR            = $(ROOT_DRV_DIR_$(CLASS))
 460 ROOT_DTRACE_DIR         = $(ROOT_DTRACE_DIR_$(CLASS))
 461 ROOT_EXEC_DIR           = $(ROOT_EXEC_DIR_$(CLASS))
 462 ROOT_FS_DIR             = $(ROOT_FS_DIR_$(CLASS))
 463 ROOT_SCHED_DIR          = $(ROOT_SCHED_DIR_$(CLASS))
 464 ROOT_SOCK_DIR           = $(ROOT_SOCK_DIR_$(CLASS))
 465 ROOT_STRMOD_DIR         = $(ROOT_STRMOD_DIR_$(CLASS))
 466 ROOT_IPP_DIR            = $(ROOT_IPP_DIR_$(CLASS))
 467 ROOT_SYS_DIR            = $(ROOT_SYS_DIR_$(CLASS))
 468 ROOT_MISC_DIR           = $(ROOT_MISC_DIR_$(CLASS))
 469 ROOT_KGSS_DIR           = $(ROOT_KGSS_DIR_$(CLASS))
 470 ROOT_SCSI_VHCI_DIR      = $(ROOT_SCSI_VHCI_DIR_$(CLASS))
 471 ROOT_PMCS_FW_DIR        = $(ROOT_PMCS_FW_DIR_$(CLASS))
 472 ROOT_QLC_FW_DIR         = $(ROOT_QLC_FW_DIR_$(CLASS))
 473 ROOT_EMLXS_FW_DIR       = $(ROOT_EMLXS_FW_DIR_$(CLASS))
 474 ROOT_NLMISC_DIR         = $(ROOT_NLMISC_DIR_$(CLASS))
 475 ROOT_MACH_DIR           = $(ROOT_MACH_DIR_$(CLASS))
 476 ROOT_CPU_DIR            = $(ROOT_CPU_DIR_$(CLASS))
 477 ROOT_TOD_DIR            = $(ROOT_TOD_DIR_$(CLASS))
 478 ROOT_FONT_DIR           = $(ROOT_FONT_DIR_$(CLASS))
 479 ROOT_DACF_DIR           = $(ROOT_DACF_DIR_$(CLASS))
 480 ROOT_CRYPTO_DIR         = $(ROOT_CRYPTO_DIR_$(CLASS))
 481 ROOT_MAC_DIR            = $(ROOT_MAC_DIR_$(CLASS))

 482 ROOT_KICONV_DIR         = $(ROOT_KICONV_DIR_$(CLASS))
 483 ROOT_FIRMWARE_DIR       = $(ROOT_MOD_DIR)/firmware
 484 
 485 ROOT_MOD_DIRS_32        = $(ROOT_BRAND_DIR_32) $(ROOT_DRV_DIR_32)
 486 ROOT_MOD_DIRS_32        = $(ROOT_BRAND_DIR_32) $(ROOT_DRV_DIR_32)
 487 ROOT_MOD_DIRS_32        += $(ROOT_EXEC_DIR_32) $(ROOT_DTRACE_DIR_32)
 488 ROOT_MOD_DIRS_32        += $(ROOT_FS_DIR_32) $(ROOT_SCHED_DIR_32)
 489 ROOT_MOD_DIRS_32        += $(ROOT_STRMOD_DIR_32) $(ROOT_SYS_DIR_32)
 490 ROOT_MOD_DIRS_32        += $(ROOT_IPP_DIR_32) $(ROOT_SOCK_DIR_32)
 491 ROOT_MOD_DIRS_32        += $(ROOT_MISC_DIR_32) $(ROOT_MACH_DIR_32)
 492 ROOT_MOD_DIRS_32        += $(ROOT_KGSS_DIR_32)
 493 ROOT_MOD_DIRS_32        += $(ROOT_SCSI_VHCI_DIR_32)
 494 ROOT_MOD_DIRS_32        += $(ROOT_PMCS_FW_DIR_32)
 495 ROOT_MOD_DIRS_32        += $(ROOT_QLC_FW_DIR_32)
 496 ROOT_MOD_DIRS_32        += $(ROOT_EMLXS_FW_DIR_32)
 497 ROOT_MOD_DIRS_32        += $(ROOT_CPU_DIR_32) $(ROOT_FONT_DIR_32)
 498 ROOT_MOD_DIRS_32        += $(ROOT_TOD_DIR_32) $(ROOT_DACF_DIR_32)
 499 ROOT_MOD_DIRS_32        += $(ROOT_CRYPTO_DIR_32) $(ROOT_MAC_DIR_32)

 500 ROOT_MOD_DIRS_32        += $(ROOT_KICONV_DIR_32)
 501 ROOT_MOD_DIRS_32        += $(ROOT_FIRMWARE_DIR)
 502 
 503 USR_MOD_DIR             = $(ROOT)/usr/kernel
 504 
 505 USR_DRV_DIR_32          = $(USR_MOD_DIR)/drv
 506 USR_EXEC_DIR_32         = $(USR_MOD_DIR)/exec
 507 USR_FS_DIR_32           = $(USR_MOD_DIR)/fs
 508 USR_SCHED_DIR_32        = $(USR_MOD_DIR)/sched
 509 USR_SOCK_DIR_32         = $(USR_MOD_DIR)/socketmod
 510 USR_STRMOD_DIR_32       = $(USR_MOD_DIR)/strmod
 511 USR_SYS_DIR_32          = $(USR_MOD_DIR)/sys
 512 USR_MISC_DIR_32         = $(USR_MOD_DIR)/misc
 513 USR_DACF_DIR_32         = $(USR_MOD_DIR)/dacf
 514 USR_PCBE_DIR_32         = $(USR_MOD_DIR)/pcbe
 515 USR_DTRACE_DIR_32       = $(USR_MOD_DIR)/dtrace
 516 USR_BRAND_DIR_32        = $(USR_MOD_DIR)/brand
 517 
 518 USR_DRV_DIR_64          = $(USR_MOD_DIR)/drv/$(SUBDIR64)
 519 USR_EXEC_DIR_64         = $(USR_MOD_DIR)/exec/$(SUBDIR64)


 573 USR_PLAT_LINKS_2         = $(PLAT_LINKS_2:%=$(USR_PLAT_DIR)/%)
 574 
 575 #
 576 # Collection of all relevant, delivered kernel modules.
 577 #
 578 # Note that we insist on building genunix first, because everything else
 579 # uniquifies against it.  When doing a 'make' from usr/src/uts/, we'll enter
 580 # the platform directories first.  These will cd into the corresponding genunix
 581 # directory and build it.  So genunix /shouldn't/ get rebuilt when we get to
 582 # building all the kernel modules.  However, due to an as-yet-unexplained
 583 # problem with dependencies, sometimes it does get rebuilt, which then messes
 584 # up the other modules.  So we always force the issue here rather than try to
 585 # build genunix in parallel with everything else.
 586 #
 587 PARALLEL_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 588                  $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 589                  $(NLMISC_KMODS) $(MACH_KMODS) $(CPU_KMODS) $(GSS_KMODS) \
 590                  $(MMU_KMODS) $(DACF_KMODS) $(EXPORT_KMODS) $(IPP_KMODS) \
 591                  $(CRYPTO_KMODS) $(PCBE_KMODS) \
 592                  $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 593                  $(BRAND_KMODS) $(KICONV_KMODS) \
 594                  $(SOCKET_KMODS)
 595 
 596 KMODS = $(GENUNIX_KMODS) $(PARALLEL_KMODS)
 597 
 598 $(PARALLEL_KMODS): $(GENUNIX_KMODS)
 599 
 600 LINT_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 601           $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 602           $(MACH_KMODS) $(GSS_KMODS) $(DACF_KMODS) $(IPP_KMODS) \
 603           $(CRYPTO_KMODS) $(PCBE_KMODS) \
 604           $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 605           $(BRAND_KMODS) $(KICONV_KMODS) $(SOCKET_KMODS)
 606 
 607 #
 608 #       Files to be compiled with -xa, to generate basic block execution
 609 #       count data.
 610 #
 611 #       There are several ways to compile parts of the kernel for kcov:
 612 #               1)  Add targets to BB_FILES here or in other Makefiles
 613 #                       (they must in the form of $(OBJS_DIR)/target.o)
 614 #               2)  setenv BB_FILES '$(XXX_OBJS:%=$(OBJS_DIR)/%)'
 615 #               3)  setenv BB_FILES '$(OBJECTS)'
 616 #
 617 #       Do NOT setenv CFLAGS -xa, as that will cause infinite recursion
 618 #       in unix_bb.o
 619 #
 620 BB_FILES =
 621 $(BB_FILES)     := XAOPT = -xa
 622 
 623 #
 624 #       The idea here is for unix_bb.o to be in all kernels except the
 625 #       kernel which actually gets shipped to customers.  In practice,




   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 #
  23 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2011 Bayard G. Bell. All rights reserved.
  25 # Copyright (c) 2011,2017 by Delphix. All rights reserved.
  26 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  27 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  28 # Copyright (c) 2019, Joyent, Inc.
  29 #
  30 
  31 #
  32 #       This Makefile contains the common targets and definitions for
  33 #       all kernels. It is to be included in the Makefiles for specific
  34 #       implementation architectures and processor architecture dependent
  35 #       modules: i.e.: all driving kernel Makefiles.
  36 #
  37 #       Include global definitions:
  38 #
  39 include $(SRC)/Makefile.master
  40 
  41 #
  42 #       No text domain in the kernel.
  43 #
  44 DTEXTDOM =
  45 


 408 ROOT_FS_DIR_32          = $(ROOT_MOD_DIR)/fs
 409 ROOT_SCHED_DIR_32       = $(ROOT_MOD_DIR)/sched
 410 ROOT_SOCK_DIR_32        = $(ROOT_MOD_DIR)/socketmod
 411 ROOT_STRMOD_DIR_32      = $(ROOT_MOD_DIR)/strmod
 412 ROOT_IPP_DIR_32         = $(ROOT_MOD_DIR)/ipp
 413 ROOT_SYS_DIR_32         = $(ROOT_MOD_DIR)/sys
 414 ROOT_MISC_DIR_32        = $(ROOT_MOD_DIR)/misc
 415 ROOT_KGSS_DIR_32        = $(ROOT_MOD_DIR)/misc/kgss
 416 ROOT_SCSI_VHCI_DIR_32   = $(ROOT_MOD_DIR)/misc/scsi_vhci
 417 ROOT_PMCS_FW_DIR_32     = $(ROOT_MOD_DIR)/misc/pmcs
 418 ROOT_QLC_FW_DIR_32      = $(ROOT_MOD_DIR)/misc/qlc
 419 ROOT_EMLXS_FW_DIR_32    = $(ROOT_MOD_DIR)/misc/emlxs
 420 ROOT_NLMISC_DIR_32      = $(ROOT_MOD_DIR)/misc
 421 ROOT_MACH_DIR_32        = $(ROOT_MOD_DIR)/mach
 422 ROOT_CPU_DIR_32         = $(ROOT_MOD_DIR)/cpu
 423 ROOT_TOD_DIR_32         = $(ROOT_MOD_DIR)/tod
 424 ROOT_FONT_DIR_32        = $(ROOT_MOD_DIR)/fonts
 425 ROOT_DACF_DIR_32        = $(ROOT_MOD_DIR)/dacf
 426 ROOT_CRYPTO_DIR_32      = $(ROOT_MOD_DIR)/crypto
 427 ROOT_MAC_DIR_32         = $(ROOT_MOD_DIR)/mac
 428 ROOT_CC_DIR_32          = $(ROOT_MOD_DIR)/cc
 429 ROOT_KICONV_DIR_32      = $(ROOT_MOD_DIR)/kiconv
 430 
 431 ROOT_KERN_DIR_64        = $(ROOT_MOD_DIR)/$(SUBDIR64)
 432 ROOT_BRAND_DIR_64       = $(ROOT_MOD_DIR)/brand/$(SUBDIR64)
 433 ROOT_DRV_DIR_64         = $(ROOT_MOD_DIR)/drv/$(SUBDIR64)
 434 ROOT_DTRACE_DIR_64      = $(ROOT_MOD_DIR)/dtrace/$(SUBDIR64)
 435 ROOT_EXEC_DIR_64        = $(ROOT_MOD_DIR)/exec/$(SUBDIR64)
 436 ROOT_FS_DIR_64          = $(ROOT_MOD_DIR)/fs/$(SUBDIR64)
 437 ROOT_SCHED_DIR_64       = $(ROOT_MOD_DIR)/sched/$(SUBDIR64)
 438 ROOT_SOCK_DIR_64        = $(ROOT_MOD_DIR)/socketmod/$(SUBDIR64)
 439 ROOT_STRMOD_DIR_64      = $(ROOT_MOD_DIR)/strmod/$(SUBDIR64)
 440 ROOT_IPP_DIR_64         = $(ROOT_MOD_DIR)/ipp/$(SUBDIR64)
 441 ROOT_SYS_DIR_64         = $(ROOT_MOD_DIR)/sys/$(SUBDIR64)
 442 ROOT_MISC_DIR_64        = $(ROOT_MOD_DIR)/misc/$(SUBDIR64)
 443 ROOT_KGSS_DIR_64        = $(ROOT_MOD_DIR)/misc/kgss/$(SUBDIR64)
 444 ROOT_SCSI_VHCI_DIR_64   = $(ROOT_MOD_DIR)/misc/scsi_vhci/$(SUBDIR64)
 445 ROOT_PMCS_FW_DIR_64     = $(ROOT_MOD_DIR)/misc/pmcs/$(SUBDIR64)
 446 ROOT_QLC_FW_DIR_64      = $(ROOT_MOD_DIR)/misc/qlc/$(SUBDIR64)
 447 ROOT_EMLXS_FW_DIR_64    = $(ROOT_MOD_DIR)/misc/emlxs/$(SUBDIR64)
 448 ROOT_NLMISC_DIR_64      = $(ROOT_MOD_DIR)/misc/$(SUBDIR64)
 449 ROOT_MACH_DIR_64        = $(ROOT_MOD_DIR)/mach/$(SUBDIR64)
 450 ROOT_CPU_DIR_64         = $(ROOT_MOD_DIR)/cpu/$(SUBDIR64)
 451 ROOT_TOD_DIR_64         = $(ROOT_MOD_DIR)/tod/$(SUBDIR64)
 452 ROOT_FONT_DIR_64        = $(ROOT_MOD_DIR)/fonts/$(SUBDIR64)
 453 ROOT_DACF_DIR_64        = $(ROOT_MOD_DIR)/dacf/$(SUBDIR64)
 454 ROOT_CRYPTO_DIR_64      = $(ROOT_MOD_DIR)/crypto/$(SUBDIR64)
 455 ROOT_MAC_DIR_64         = $(ROOT_MOD_DIR)/mac/$(SUBDIR64)
 456 ROOT_CC_DIR_64          = $(ROOT_MOD_DIR)/cc/$(SUBDIR64)
 457 ROOT_KICONV_DIR_64      = $(ROOT_MOD_DIR)/kiconv/$(SUBDIR64)
 458 
 459 ROOT_KERN_DIR           = $(ROOT_KERN_DIR_$(CLASS))
 460 ROOT_BRAND_DIR          = $(ROOT_BRAND_DIR_$(CLASS))
 461 ROOT_DRV_DIR            = $(ROOT_DRV_DIR_$(CLASS))
 462 ROOT_DTRACE_DIR         = $(ROOT_DTRACE_DIR_$(CLASS))
 463 ROOT_EXEC_DIR           = $(ROOT_EXEC_DIR_$(CLASS))
 464 ROOT_FS_DIR             = $(ROOT_FS_DIR_$(CLASS))
 465 ROOT_SCHED_DIR          = $(ROOT_SCHED_DIR_$(CLASS))
 466 ROOT_SOCK_DIR           = $(ROOT_SOCK_DIR_$(CLASS))
 467 ROOT_STRMOD_DIR         = $(ROOT_STRMOD_DIR_$(CLASS))
 468 ROOT_IPP_DIR            = $(ROOT_IPP_DIR_$(CLASS))
 469 ROOT_SYS_DIR            = $(ROOT_SYS_DIR_$(CLASS))
 470 ROOT_MISC_DIR           = $(ROOT_MISC_DIR_$(CLASS))
 471 ROOT_KGSS_DIR           = $(ROOT_KGSS_DIR_$(CLASS))
 472 ROOT_SCSI_VHCI_DIR      = $(ROOT_SCSI_VHCI_DIR_$(CLASS))
 473 ROOT_PMCS_FW_DIR        = $(ROOT_PMCS_FW_DIR_$(CLASS))
 474 ROOT_QLC_FW_DIR         = $(ROOT_QLC_FW_DIR_$(CLASS))
 475 ROOT_EMLXS_FW_DIR       = $(ROOT_EMLXS_FW_DIR_$(CLASS))
 476 ROOT_NLMISC_DIR         = $(ROOT_NLMISC_DIR_$(CLASS))
 477 ROOT_MACH_DIR           = $(ROOT_MACH_DIR_$(CLASS))
 478 ROOT_CPU_DIR            = $(ROOT_CPU_DIR_$(CLASS))
 479 ROOT_TOD_DIR            = $(ROOT_TOD_DIR_$(CLASS))
 480 ROOT_FONT_DIR           = $(ROOT_FONT_DIR_$(CLASS))
 481 ROOT_DACF_DIR           = $(ROOT_DACF_DIR_$(CLASS))
 482 ROOT_CRYPTO_DIR         = $(ROOT_CRYPTO_DIR_$(CLASS))
 483 ROOT_MAC_DIR            = $(ROOT_MAC_DIR_$(CLASS))
 484 ROOT_CC_DIR             = $(ROOT_CC_DIR_$(CLASS))
 485 ROOT_KICONV_DIR         = $(ROOT_KICONV_DIR_$(CLASS))
 486 ROOT_FIRMWARE_DIR       = $(ROOT_MOD_DIR)/firmware
 487 
 488 ROOT_MOD_DIRS_32        = $(ROOT_BRAND_DIR_32) $(ROOT_DRV_DIR_32)
 489 ROOT_MOD_DIRS_32        = $(ROOT_BRAND_DIR_32) $(ROOT_DRV_DIR_32)
 490 ROOT_MOD_DIRS_32        += $(ROOT_EXEC_DIR_32) $(ROOT_DTRACE_DIR_32)
 491 ROOT_MOD_DIRS_32        += $(ROOT_FS_DIR_32) $(ROOT_SCHED_DIR_32)
 492 ROOT_MOD_DIRS_32        += $(ROOT_STRMOD_DIR_32) $(ROOT_SYS_DIR_32)
 493 ROOT_MOD_DIRS_32        += $(ROOT_IPP_DIR_32) $(ROOT_SOCK_DIR_32)
 494 ROOT_MOD_DIRS_32        += $(ROOT_MISC_DIR_32) $(ROOT_MACH_DIR_32)
 495 ROOT_MOD_DIRS_32        += $(ROOT_KGSS_DIR_32)
 496 ROOT_MOD_DIRS_32        += $(ROOT_SCSI_VHCI_DIR_32)
 497 ROOT_MOD_DIRS_32        += $(ROOT_PMCS_FW_DIR_32)
 498 ROOT_MOD_DIRS_32        += $(ROOT_QLC_FW_DIR_32)
 499 ROOT_MOD_DIRS_32        += $(ROOT_EMLXS_FW_DIR_32)
 500 ROOT_MOD_DIRS_32        += $(ROOT_CPU_DIR_32) $(ROOT_FONT_DIR_32)
 501 ROOT_MOD_DIRS_32        += $(ROOT_TOD_DIR_32) $(ROOT_DACF_DIR_32)
 502 ROOT_MOD_DIRS_32        += $(ROOT_CRYPTO_DIR_32) $(ROOT_MAC_DIR_32)
 503 ROOT_MOD_DIRS_32        += $(ROOT_CC_DIR_32)
 504 ROOT_MOD_DIRS_32        += $(ROOT_KICONV_DIR_32)
 505 ROOT_MOD_DIRS_32        += $(ROOT_FIRMWARE_DIR)
 506 
 507 USR_MOD_DIR             = $(ROOT)/usr/kernel
 508 
 509 USR_DRV_DIR_32          = $(USR_MOD_DIR)/drv
 510 USR_EXEC_DIR_32         = $(USR_MOD_DIR)/exec
 511 USR_FS_DIR_32           = $(USR_MOD_DIR)/fs
 512 USR_SCHED_DIR_32        = $(USR_MOD_DIR)/sched
 513 USR_SOCK_DIR_32         = $(USR_MOD_DIR)/socketmod
 514 USR_STRMOD_DIR_32       = $(USR_MOD_DIR)/strmod
 515 USR_SYS_DIR_32          = $(USR_MOD_DIR)/sys
 516 USR_MISC_DIR_32         = $(USR_MOD_DIR)/misc
 517 USR_DACF_DIR_32         = $(USR_MOD_DIR)/dacf
 518 USR_PCBE_DIR_32         = $(USR_MOD_DIR)/pcbe
 519 USR_DTRACE_DIR_32       = $(USR_MOD_DIR)/dtrace
 520 USR_BRAND_DIR_32        = $(USR_MOD_DIR)/brand
 521 
 522 USR_DRV_DIR_64          = $(USR_MOD_DIR)/drv/$(SUBDIR64)
 523 USR_EXEC_DIR_64         = $(USR_MOD_DIR)/exec/$(SUBDIR64)


 577 USR_PLAT_LINKS_2         = $(PLAT_LINKS_2:%=$(USR_PLAT_DIR)/%)
 578 
 579 #
 580 # Collection of all relevant, delivered kernel modules.
 581 #
 582 # Note that we insist on building genunix first, because everything else
 583 # uniquifies against it.  When doing a 'make' from usr/src/uts/, we'll enter
 584 # the platform directories first.  These will cd into the corresponding genunix
 585 # directory and build it.  So genunix /shouldn't/ get rebuilt when we get to
 586 # building all the kernel modules.  However, due to an as-yet-unexplained
 587 # problem with dependencies, sometimes it does get rebuilt, which then messes
 588 # up the other modules.  So we always force the issue here rather than try to
 589 # build genunix in parallel with everything else.
 590 #
 591 PARALLEL_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 592                  $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 593                  $(NLMISC_KMODS) $(MACH_KMODS) $(CPU_KMODS) $(GSS_KMODS) \
 594                  $(MMU_KMODS) $(DACF_KMODS) $(EXPORT_KMODS) $(IPP_KMODS) \
 595                  $(CRYPTO_KMODS) $(PCBE_KMODS) \
 596                  $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 597                  $(BRAND_KMODS) $(KICONV_KMODS) $(CC_KMODS) \
 598                  $(SOCKET_KMODS)
 599 
 600 KMODS = $(GENUNIX_KMODS) $(PARALLEL_KMODS)
 601 
 602 $(PARALLEL_KMODS): $(GENUNIX_KMODS)
 603 
 604 LINT_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 605           $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 606           $(MACH_KMODS) $(GSS_KMODS) $(DACF_KMODS) $(IPP_KMODS) \
 607           $(CRYPTO_KMODS) $(PCBE_KMODS) \
 608           $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 609           $(BRAND_KMODS) $(KICONV_KMODS) $(CC_KMODS) $(SOCKET_KMODS)
 610 
 611 #
 612 #       Files to be compiled with -xa, to generate basic block execution
 613 #       count data.
 614 #
 615 #       There are several ways to compile parts of the kernel for kcov:
 616 #               1)  Add targets to BB_FILES here or in other Makefiles
 617 #                       (they must in the form of $(OBJS_DIR)/target.o)
 618 #               2)  setenv BB_FILES '$(XXX_OBJS:%=$(OBJS_DIR)/%)'
 619 #               3)  setenv BB_FILES '$(OBJECTS)'
 620 #
 621 #       Do NOT setenv CFLAGS -xa, as that will cause infinite recursion
 622 #       in unix_bb.o
 623 #
 624 BB_FILES =
 625 $(BB_FILES)     := XAOPT = -xa
 626 
 627 #
 628 #       The idea here is for unix_bb.o to be in all kernels except the
 629 #       kernel which actually gets shipped to customers.  In practice,