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

Split Close
Expand all
Collapse all
          --- old/usr/src/Makefile
          +++ new/usr/src/Makefile
↓ open down ↓ 127 lines elided ↑ open up ↑
 128  128  
 129  129  clean: $(SUBDIRS) head pkg
 130  130  clobber: $(SUBDIRS) head pkg clobber_local
 131  131  clobber_local:
 132  132          @cd tools; pwd; $(MAKE) clobber
 133  133          @cd common/mapfiles; pwd; $(MAKE) clobber
 134  134          @cd msg; pwd; $(MAKE) clobber
 135  135  
 136  136  closedbins: bldtools $(ROOTDIRS) FRC
 137  137          @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 138      -        if [ "$$CLOSED_IS_PRESENT" = no ]; then \
 139      -                if [ ! -d "$$CLOSED_ROOT" ]; then \
 140      -                        $(ECHO) "Error: if closed sources are not present," \
 141      -                            "ON_CLOSED_BINS must point to closed binaries."; \
 142      -                        $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 143      -                            "present in $$ON_CLOSED_BINS."; \
 144      -                        exit 1; \
 145      -                fi; \
 146      -                $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 147      -                (cd $$CLOSED_ROOT; \
 148      -                    $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 149      -                    (cd $(ROOT); $(TAR) xBpf -); \
 150      -                ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 151      -                    ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 152      -                    $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
 153      -        fi
      138 +        if [ ! -d "$$CLOSED_ROOT" ]; then \
      139 +                $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
      140 +                    "binaries."; \
      141 +                $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
      142 +                    "present in $$ON_CLOSED_BINS."; \
      143 +                exit 1; \
      144 +        fi; \
      145 +        $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
      146 +        (cd $$CLOSED_ROOT; \
      147 +            $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
      148 +            (cd $(ROOT); $(TAR) xBpf -); \
      149 +        ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
      150 +            ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
      151 +            $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) )
 154  152  
 155  153  #
 156  154  # Declare what parts can be built in parallel
 157  155  # DUMMY at the end is used in case macro expansion produces an empty string to
 158  156  # prevent everything going in parallel
 159  157  #
 160  158  .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 161  159  .PARALLEL: $(PARALLEL_DIRS) DUMMY
 162  160  
 163  161  $(SUBDIRS) head pkg: FRC
↓ open down ↓ 42 lines elided ↑ open up ↑
 206  204  cmdheaders: FRC
 207  205          @cd cmd/fm; pwd; $(MAKE) install_h
 208  206          @cd cmd/mdb; pwd; $(MAKE) install_h
 209  207  
 210  208  check:  $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
 211  209  
 212  210  #
 213  211  # Cross-reference customization: skip all of the subdirectories that
 214  212  # don't contain actual source code.
 215  213  #
 216      -$(CLOSED_BUILD)XRDIRS += ../closed
 217  214  XRPRUNE = pkg prototypes
 218  215  XRINCDIRS = uts/common head ucbhead
 219      -$(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
 220  216  
 221  217  cscope.out tags: FRC
 222  218          $(XREF) -f -x $@
 223  219  
 224  220  FRC:
 225  221  
 226  222  #
 227  223  # Targets for reporting compiler versions; nightly uses these.
 228  224  #
 229  225  
↓ open down ↓ 46 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX