Print this page
3806 illumos build execs echo unnecessarily
Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>


   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 #
  27 
  28 #
  29 #       This Makefile contains the common targets and definitions for
  30 #       all kernels. It is to be included in the Makefiles for specific
  31 #       implementation architectures and processor architecture dependent
  32 #       modules: i.e.: all driving kernel Makefiles.
  33 #
  34 #       Include global definitions:
  35 #
  36 include $(SRC)/Makefile.master
  37 
  38 #
  39 #       No text domain in the kernel.
  40 #
  41 DTEXTDOM =
  42 
  43 #
  44 #       Keep references to $(SRC)/common relative.
  45 COMMONBASE=     $(UTSBASE)/../common


 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 
 667 #
 668 #       The idea here is for unix_bb.o to be in all kernels except the
 669 #       kernel which actually gets shipped to customers.  In practice,
 670 #       $(RELEASE_BUILD) is on for a number of the late beta and fcs builds.
 671 #
 672 CODE_COVERAGE=
 673 $(RELEASE_BUILD)CODE_COVERAGE:sh=       echo \\043
 674 $(CODE_COVERAGE)$(OBJS_DIR)/unix_bb.o   := CPPFLAGS     += -DKCOV
 675 $(CODE_COVERAGE)$(OBJS_DIR)/unix_bb.ln  := CPPFLAGS     += -DKCOV
 676 
 677 #
 678 #       Do not let unix_bb.o get compiled with -xa!
 679 #
 680 $(OBJS_DIR)/unix_bb.o   := XAOPT =
 681 
 682 #
 683 # Privilege files
 684 #
 685 PRIVS_AWK = $(SRC)/uts/common/os/privs.awk
 686 PRIVS_DEF = $(SRC)/uts/common/os/priv_defs
 687 
 688 #
 689 # USB device data
 690 #
 691 USBDEVS_AWK =   $(SRC)/uts/common/io/usb/usbdevs2h.awk
 692 USBDEVS_DATA =  $(SRC)/uts/common/io/usb/usbdevs


   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 #
  28 
  29 #
  30 #       This Makefile contains the common targets and definitions for
  31 #       all kernels. It is to be included in the Makefiles for specific
  32 #       implementation architectures and processor architecture dependent
  33 #       modules: i.e.: all driving kernel Makefiles.
  34 #
  35 #       Include global definitions:
  36 #
  37 include $(SRC)/Makefile.master
  38 
  39 #
  40 #       No text domain in the kernel.
  41 #
  42 DTEXTDOM =
  43 
  44 #
  45 #       Keep references to $(SRC)/common relative.
  46 COMMONBASE=     $(UTSBASE)/../common


 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 
 668 #
 669 #       The idea here is for unix_bb.o to be in all kernels except the
 670 #       kernel which actually gets shipped to customers.  In practice,
 671 #       $(RELEASE_BUILD) is on for a number of the late beta and fcs builds.
 672 #
 673 $(NOT_RELEASE_BUILD)$(OBJS_DIR)/unix_bb.o   := CPPFLAGS     += -DKCOV
 674 $(NOT_RELEASE_BUILD)$(OBJS_DIR)/unix_bb.ln  := CPPFLAGS     += -DKCOV


 675 
 676 #
 677 #       Do not let unix_bb.o get compiled with -xa!
 678 #
 679 $(OBJS_DIR)/unix_bb.o   := XAOPT =
 680 
 681 #
 682 # Privilege files
 683 #
 684 PRIVS_AWK = $(SRC)/uts/common/os/privs.awk
 685 PRIVS_DEF = $(SRC)/uts/common/os/priv_defs
 686 
 687 #
 688 # USB device data
 689 #
 690 USBDEVS_AWK =   $(SRC)/uts/common/io/usb/usbdevs2h.awk
 691 USBDEVS_DATA =  $(SRC)/uts/common/io/usb/usbdevs