Print this page
4027 remove CLOSED_BUILD
4028 remove CLOSED_IS_PRESENT
4029 remove tonic build bits
Reviewed by: Andy Stormont <andyjstormont@gmail.com>


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




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





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




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



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