Print this page
4027 remove CLOSED_BUILD


 570 USR_BRAND_DIR           = $(USR_BRAND_DIR_$(CLASS))
 571 
 572 USR_MOD_DIRS_32         = $(USR_DRV_DIR_32) $(USR_EXEC_DIR_32)
 573 USR_MOD_DIRS_32         += $(USR_FS_DIR_32) $(USR_SCHED_DIR_32)
 574 USR_MOD_DIRS_32         += $(USR_STRMOD_DIR_32) $(USR_SYS_DIR_32)
 575 USR_MOD_DIRS_32         += $(USR_MISC_DIR_32) $(USR_DACF_DIR_32)
 576 USR_MOD_DIRS_32         += $(USR_PCBE_DIR_32)
 577 USR_MOD_DIRS_32         += $(USR_DTRACE_DIR_32) $(USR_BRAND_DIR_32)
 578 USR_MOD_DIRS_32         += $(USR_SOCK_DIR_32)
 579 
 580 #
 581 #
 582 #
 583 include $(SRC)/Makefile.psm
 584 
 585 #
 586 #       The "-r" on the remove may be considered temporary, but is required
 587 #       while the replacement of the SUNW,SPARCstation-10,SX directory by
 588 #       a symbolic link is being propagated.
 589 #
 590 # IMPORTANT:: if you change any of these INS.mumble rules, then you MUST also
 591 # change the corresponding override definitions in $CLOSED/Makefile.tonic.
 592 # If you do not do this, then the closedbins build for the OpenSolaris
 593 # community will break. PS, the gatekeepers will be upset too.
 594 #
 595 INS.slink1= $(RM) -r $@; $(SYMLINK) $(PLATFORM) $@
 596 INS.slink2= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/$(@F) $@
 597 INS.slink3= $(RM) -r $@; $(SYMLINK) $(IMPLEMENTED_PLATFORM) $@
 598 INS.slink4= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/include $@
 599 INS.slink5= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/sbin $@
 600 INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
 601 INS.slink7= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(@F) $@
 602 
 603 ROOT_PLAT_LINKS          = $(PLAT_LINKS:%=$(ROOT_PLAT_DIR)/%)
 604 ROOT_PLAT_LINKS_2        = $(PLAT_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
 605 USR_PLAT_LINKS           = $(PLAT_LINKS:%=$(USR_PLAT_DIR)/%)
 606 USR_PLAT_LINKS_2         = $(PLAT_LINKS_2:%=$(USR_PLAT_DIR)/%)
 607 
 608 #
 609 # Collection of all relevant, delivered kernel modules.
 610 #
 611 # Note that we insist on building genunix first, because everything else
 612 # uniquifies against it.  When doing a 'make' from usr/src/uts/, we'll enter
 613 # the platform directories first.  These will cd into the corresponding genunix
 614 # directory and build it.  So genunix /shouldn't/ get rebuilt when we get to
 615 # building all the kernel modules.  However, due to an as-yet-unexplained
 616 # problem with dependencies, sometimes it does get rebuilt, which then messes
 617 # up the other modules.  So we always force the issue here rather than try to
 618 # build genunix in parallel with everything else.
 619 #
 620 PARALLEL_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 621                  $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 622                  $(NLMISC_KMODS) $(MACH_KMODS) $(CPU_KMODS) $(GSS_KMODS) \
 623                  $(MMU_KMODS) $(DACF_KMODS) $(EXPORT_KMODS) $(IPP_KMODS) \
 624                  $(CRYPTO_KMODS) $(PCBE_KMODS) \
 625                  $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 626                  $(BRAND_KMODS) $(KICONV_KMODS) \
 627                  $(SOCKET_KMODS)
 628 
 629 KMODS = $(GENUNIX_KMODS) $(PARALLEL_KMODS)
 630 
 631 $(PARALLEL_KMODS): $(GENUNIX_KMODS)
 632 
 633 $(CLOSED_BUILD)CLOSED_KMODS = $(CLOSED_DRV_KMODS) $(CLOSED_TOD_KMODS) \
 634         $(CLOSED_MISC_KMODS) $(CLOSED_CPU_KMODS) \
 635         $(CLOSED_NLMISC_KMODS) $(CLOSED_DRV_KMODS_$(CLASS))
 636 
 637 LINT_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 638           $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 639           $(MACH_KMODS) $(GSS_KMODS) $(DACF_KMODS) $(IPP_KMODS) \
 640           $(CRYPTO_KMODS) $(PCBE_KMODS) \
 641           $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 642           $(BRAND_KMODS) $(KICONV_KMODS) $(SOCKET_KMODS)
 643 
 644 $(CLOSED_BUILD)CLOSED_LINT_KMODS = $(CLOSED_DRV_KMODS) $(CLOSED_TOD_KMODS) \
 645           $(CLOSED_MISC_KMODS) $(CLOSED_DRV_KMODS_$(CLASS))
 646 
 647 THIS_YEAR:sh=   /bin/date +%Y
 648 $(OBJS_DIR)/logsubr.o   := CPPFLAGS += -DTHIS_YEAR=$(THIS_YEAR)
 649 $(OBJS_DIR)/logsubr.ln  := CPPFLAGS += -DTHIS_YEAR=$(THIS_YEAR)
 650 
 651 #
 652 #       Files to be compiled with -xa, to generate basic block execution
 653 #       count data.
 654 #
 655 #       There are several ways to compile parts of the kernel for kcov:
 656 #               1)  Add targets to BB_FILES here or in other Makefiles
 657 #                       (they must in the form of $(OBJS_DIR)/target.o)
 658 #               2)  setenv BB_FILES '$(XXX_OBJS:%=$(OBJS_DIR)/%)'
 659 #               3)  setenv BB_FILES '$(OBJECTS)'
 660 #
 661 #       Do NOT setenv CFLAGS -xa, as that will cause infinite recursion
 662 #       in unix_bb.o
 663 #
 664 BB_FILES =
 665 $(BB_FILES)     := XAOPT = -xa
 666 




 570 USR_BRAND_DIR           = $(USR_BRAND_DIR_$(CLASS))
 571 
 572 USR_MOD_DIRS_32         = $(USR_DRV_DIR_32) $(USR_EXEC_DIR_32)
 573 USR_MOD_DIRS_32         += $(USR_FS_DIR_32) $(USR_SCHED_DIR_32)
 574 USR_MOD_DIRS_32         += $(USR_STRMOD_DIR_32) $(USR_SYS_DIR_32)
 575 USR_MOD_DIRS_32         += $(USR_MISC_DIR_32) $(USR_DACF_DIR_32)
 576 USR_MOD_DIRS_32         += $(USR_PCBE_DIR_32)
 577 USR_MOD_DIRS_32         += $(USR_DTRACE_DIR_32) $(USR_BRAND_DIR_32)
 578 USR_MOD_DIRS_32         += $(USR_SOCK_DIR_32)
 579 
 580 #
 581 #
 582 #
 583 include $(SRC)/Makefile.psm
 584 
 585 #
 586 #       The "-r" on the remove may be considered temporary, but is required
 587 #       while the replacement of the SUNW,SPARCstation-10,SX directory by
 588 #       a symbolic link is being propagated.
 589 #





 590 INS.slink1= $(RM) -r $@; $(SYMLINK) $(PLATFORM) $@
 591 INS.slink2= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/$(@F) $@
 592 INS.slink3= $(RM) -r $@; $(SYMLINK) $(IMPLEMENTED_PLATFORM) $@
 593 INS.slink4= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/include $@
 594 INS.slink5= $(RM) -r $@; $(SYMLINK) ../$(PLATFORM)/sbin $@
 595 INS.slink6= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
 596 INS.slink7= $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/$(@F) $@
 597 
 598 ROOT_PLAT_LINKS          = $(PLAT_LINKS:%=$(ROOT_PLAT_DIR)/%)
 599 ROOT_PLAT_LINKS_2        = $(PLAT_LINKS_2:%=$(ROOT_PLAT_DIR)/%)
 600 USR_PLAT_LINKS           = $(PLAT_LINKS:%=$(USR_PLAT_DIR)/%)
 601 USR_PLAT_LINKS_2         = $(PLAT_LINKS_2:%=$(USR_PLAT_DIR)/%)
 602 
 603 #
 604 # Collection of all relevant, delivered kernel modules.
 605 #
 606 # Note that we insist on building genunix first, because everything else
 607 # uniquifies against it.  When doing a 'make' from usr/src/uts/, we'll enter
 608 # the platform directories first.  These will cd into the corresponding genunix
 609 # directory and build it.  So genunix /shouldn't/ get rebuilt when we get to
 610 # building all the kernel modules.  However, due to an as-yet-unexplained
 611 # problem with dependencies, sometimes it does get rebuilt, which then messes
 612 # up the other modules.  So we always force the issue here rather than try to
 613 # build genunix in parallel with everything else.
 614 #
 615 PARALLEL_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 616                  $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 617                  $(NLMISC_KMODS) $(MACH_KMODS) $(CPU_KMODS) $(GSS_KMODS) \
 618                  $(MMU_KMODS) $(DACF_KMODS) $(EXPORT_KMODS) $(IPP_KMODS) \
 619                  $(CRYPTO_KMODS) $(PCBE_KMODS) \
 620                  $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 621                  $(BRAND_KMODS) $(KICONV_KMODS) \
 622                  $(SOCKET_KMODS)
 623 
 624 KMODS = $(GENUNIX_KMODS) $(PARALLEL_KMODS)
 625 
 626 $(PARALLEL_KMODS): $(GENUNIX_KMODS)
 627 




 628 LINT_KMODS = $(DRV_KMODS) $(EXEC_KMODS) $(FS_KMODS) $(SCHED_KMODS) \
 629           $(TOD_KMODS) $(STRMOD_KMODS) $(SYS_KMODS) $(MISC_KMODS) \
 630           $(MACH_KMODS) $(GSS_KMODS) $(DACF_KMODS) $(IPP_KMODS) \
 631           $(CRYPTO_KMODS) $(PCBE_KMODS) \
 632           $(DRV_KMODS_$(CLASS)) $(MISC_KMODS_$(CLASS)) $(MAC_KMODS) \
 633           $(BRAND_KMODS) $(KICONV_KMODS) $(SOCKET_KMODS)
 634 



 635 THIS_YEAR:sh=   /bin/date +%Y
 636 $(OBJS_DIR)/logsubr.o   := CPPFLAGS += -DTHIS_YEAR=$(THIS_YEAR)
 637 $(OBJS_DIR)/logsubr.ln  := CPPFLAGS += -DTHIS_YEAR=$(THIS_YEAR)
 638 
 639 #
 640 #       Files to be compiled with -xa, to generate basic block execution
 641 #       count data.
 642 #
 643 #       There are several ways to compile parts of the kernel for kcov:
 644 #               1)  Add targets to BB_FILES here or in other Makefiles
 645 #                       (they must in the form of $(OBJS_DIR)/target.o)
 646 #               2)  setenv BB_FILES '$(XXX_OBJS:%=$(OBJS_DIR)/%)'
 647 #               3)  setenv BB_FILES '$(OBJECTS)'
 648 #
 649 #       Do NOT setenv CFLAGS -xa, as that will cause infinite recursion
 650 #       in unix_bb.o
 651 #
 652 BB_FILES =
 653 $(BB_FILES)     := XAOPT = -xa
 654