Print this page
NEX-16336 provide system/tunables package
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Alex Deiter <alex.deiter@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Fix up some merges where we wanted the upstream version.
re #13842 make clobber leaves trash (review tweaks)
re #13842 make clobber leaves trash
re #11781 rb3701 Update man related tools (add missed files)
re #11781 rb3701 Update man related tools
--HG--
rename : usr/src/cmd/man/src/THIRDPARTYLICENSE => usr/src/cmd/man/THIRDPARTYLICENSE
rename : usr/src/cmd/man/src/THIRDPARTYLICENSE.descrip => usr/src/cmd/man/THIRDPARTYLICENSE.descrip
rename : usr/src/cmd/man/src/man.c => usr/src/cmd/man/man.c
re #8813 rb3805 Failed to set DHCP on bnx0 network interface


   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) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2012 by Delphix. All rights reserved.
  25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  27 # Copyright 2016 Toomas Soome <tsoome@me.com>
  28 # Copyright 2017 Joyent, Inc.

  29 #
  30 
  31 #
  32 # Makefile for system source
  33 #
  34 # include global definitions
  35 include Makefile.master
  36 #
  37 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  38 # it defines TARGETDIRS and ROOTDIRS.
  39 include Targetdirs
  40 
  41 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
  42 sparc_SUBDIRS= stand
  43 i386_SUBDIRS= grub boot
  44 
  45 #
  46 # sparc needs to build stand before psm
  47 #
  48 $(SPARC_BLD)psm: stand
  49 
  50 SUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
  51 
  52 HDRSUBDIRS=     uts head lib cmd
  53 
  54 # UCB headers are bug-for-bug compatible and not checkable against the header
  55 # standards.
  56 #
  57 CHKHDRSUBDIRS=  head uts lib
  58 
  59 #
  60 # Headers that can be built in parallel
  61 #
  62 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
  63 


 147         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 148         if [ -f "$$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2" ]; then \
 149                 $(ECHO) "Extracting tarball $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2"; \
 150                 (cd $(CODEMGR_WS); \
 151                    $(TAR) xjpf $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2); \
 152                 CLOSED_ROOT="$(CODEMGR_WS)/closed/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 153         fi; \
 154         if [ ! -d "$$CLOSED_ROOT" ]; then \
 155                 $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
 156                     "binaries."; \
 157                 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 158                     "present in $$ON_CLOSED_BINS."; \
 159                 exit 1; \
 160         fi; \
 161         $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 162         (cd $$CLOSED_ROOT; \
 163             $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 164             (cd $(ROOT); $(TAR) xBpf -); \
 165         ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 166             ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 167             $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) )

 168 
 169 #
 170 # Declare what parts can be built in parallel
 171 # DUMMY at the end is used in case macro expansion produces an empty string to
 172 # prevent everything going in parallel
 173 #
 174 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 175 .PARALLEL: $(PARALLEL_DIRS) DUMMY
 176 
 177 $(SUBDIRS) head pkg: FRC
 178         @cd $@; pwd; $(MAKE) $(TARGET)
 179 
 180 # librpcsvc has a dependency on headers installed by
 181 # userheaders, hence the .WAIT before libheaders.
 182 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
 183         libheaders cmdheaders
 184 
 185 #
 186 # Top-level setup target to setup the development environment that includes
 187 # headers, tools and generated mapfiles.  For open-only builds (i.e.: source




   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) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2012 by Delphix. All rights reserved.
  25 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2015 OmniTI Computer Consulting, Inc. All rights reserved.
  27 # Copyright 2016 Toomas Soome <tsoome@me.com>
  28 # Copyright 2017 Joyent, Inc.
  29 # Copyright 2018 Nexenta Systems, Inc. All rights reserved.
  30 #
  31 
  32 #
  33 # Makefile for system source
  34 #
  35 # include global definitions
  36 include Makefile.master
  37 #
  38 # the Targetdirs file is the AT&T target.dirs file in a makefile format.
  39 # it defines TARGETDIRS and ROOTDIRS.
  40 include Targetdirs
  41 
  42 COMMON_SUBDIRS= data uts lib cmd ucblib ucbcmd psm man test
  43 sparc_SUBDIRS= stand
  44 i386_SUBDIRS= grub boot etc
  45 
  46 #
  47 # sparc needs to build stand before psm
  48 #
  49 $(SPARC_BLD)psm: stand
  50 
  51 SUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
  52 
  53 HDRSUBDIRS=     uts head lib cmd
  54 
  55 # UCB headers are bug-for-bug compatible and not checkable against the header
  56 # standards.
  57 #
  58 CHKHDRSUBDIRS=  head uts lib
  59 
  60 #
  61 # Headers that can be built in parallel
  62 #
  63 PARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
  64 


 148         @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 149         if [ -f "$$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2" ]; then \
 150                 $(ECHO) "Extracting tarball $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2"; \
 151                 (cd $(CODEMGR_WS); \
 152                    $(TAR) xjpf $$ON_CLOSED_BINS/on-closed-bins$${RELEASE_BUILD+-nd}.$(MACH).tar.bz2); \
 153                 CLOSED_ROOT="$(CODEMGR_WS)/closed/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
 154         fi; \
 155         if [ ! -d "$$CLOSED_ROOT" ]; then \
 156                 $(ECHO) "Error: ON_CLOSED_BINS must point to closed" \
 157                     "binaries."; \
 158                 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
 159                     "present in $$ON_CLOSED_BINS."; \
 160                 exit 1; \
 161         fi; \
 162         $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
 163         (cd $$CLOSED_ROOT; \
 164             $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \
 165             (cd $(ROOT); $(TAR) xBpf -); \
 166         ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \
 167             ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \
 168             $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \
 169         ( cd $(ROOT); $(SED) -i -e "/^#mtu=/s/^#//" ./kernel/drv/bnx.conf )
 170 
 171 #
 172 # Declare what parts can be built in parallel
 173 # DUMMY at the end is used in case macro expansion produces an empty string to
 174 # prevent everything going in parallel
 175 #
 176 .PARALLEL: $(PARALLEL_HEADERS) DUMMY
 177 .PARALLEL: $(PARALLEL_DIRS) DUMMY
 178 
 179 $(SUBDIRS) head pkg: FRC
 180         @cd $@; pwd; $(MAKE) $(TARGET)
 181 
 182 # librpcsvc has a dependency on headers installed by
 183 # userheaders, hence the .WAIT before libheaders.
 184 sgs: rootdirs .WAIT sysheaders userheaders .WAIT \
 185         libheaders cmdheaders
 186 
 187 #
 188 # Top-level setup target to setup the development environment that includes
 189 # headers, tools and generated mapfiles.  For open-only builds (i.e.: source