Print this page
10077 usr/src/uts/ Makefile changes for smatch


   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 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #


  26 #       This makefile drives the production of unix (and unix.o).
  27 #
  28 #       i86xpv implementation architecture dependent
  29 #
  30 
  31 #
  32 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  33 #
  34 UTSBASE = ../..
  35 
  36 #
  37 #       Define the module and object file sets.
  38 #
  39 UNIX            = unix
  40 DBOOT           = dboot
  41 
  42 OBJECTS         = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
  43                   $(CORE_OBJS:%=$(OBJS_DIR)/%) \
  44                   $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
  45                   $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)


 131 # Please do not carry these forward to new Makefiles.
 132 #
 133 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
 134 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
 135 LINTTAGS        += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
 136 LINTTAGS        += -erroff=E_STATIC_UNUSED
 137 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
 138 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 139 
 140 CERRWARN        += -_gcc=-Wno-parentheses
 141 CERRWARN        += -_gcc=-Wno-uninitialized
 142 CERRWARN        += -_gcc=-Wno-char-subscripts
 143 CERRWARN        += -_gcc=-Wno-unused-variable
 144 CERRWARN        += -_gcc=-Wno-unused-function
 145 CERRWARN        += -_gcc=-Wno-unused-label
 146 CERRWARN        += -_gcc=-Wno-type-limits
 147 CERRWARN        += -_gcc=-Wno-clobbered
 148 CERRWARN        += -_gcc=-Wno-unused-value
 149 CERRWARN        += -_gcc=-Wno-empty-body
 150 



 151 # Ensure that lint sees 'struct cpu' containing a fully declared
 152 # embedded 'struct machcpu'
 153 #
 154 LINTFLAGS       += -D_MACHDEP -I../../i86pc
 155 
 156 #
 157 #       Default build targets.
 158 #
 159 .KEEP_STATE:
 160 
 161 def: $(DEF_DEPS)
 162 
 163 all: $(ALL_DEPS)
 164 
 165 clean: $(CLEAN_DEPS)
 166 
 167 clobber: $(CLOBBER_DEPS)
 168 
 169 lint: $(LINT_DEPS)
 170 




   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 2008 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 #
  28 #       This makefile drives the production of unix (and unix.o).
  29 #
  30 #       i86xpv implementation architecture dependent
  31 #
  32 
  33 #
  34 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  35 #
  36 UTSBASE = ../..
  37 
  38 #
  39 #       Define the module and object file sets.
  40 #
  41 UNIX            = unix
  42 DBOOT           = dboot
  43 
  44 OBJECTS         = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
  45                   $(CORE_OBJS:%=$(OBJS_DIR)/%) \
  46                   $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
  47                   $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)


 133 # Please do not carry these forward to new Makefiles.
 134 #
 135 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
 136 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
 137 LINTTAGS        += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
 138 LINTTAGS        += -erroff=E_STATIC_UNUSED
 139 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
 140 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
 141 
 142 CERRWARN        += -_gcc=-Wno-parentheses
 143 CERRWARN        += -_gcc=-Wno-uninitialized
 144 CERRWARN        += -_gcc=-Wno-char-subscripts
 145 CERRWARN        += -_gcc=-Wno-unused-variable
 146 CERRWARN        += -_gcc=-Wno-unused-function
 147 CERRWARN        += -_gcc=-Wno-unused-label
 148 CERRWARN        += -_gcc=-Wno-type-limits
 149 CERRWARN        += -_gcc=-Wno-clobbered
 150 CERRWARN        += -_gcc=-Wno-unused-value
 151 CERRWARN        += -_gcc=-Wno-empty-body
 152 
 153 # needs work
 154 SMATCH=off
 155 
 156 # Ensure that lint sees 'struct cpu' containing a fully declared
 157 # embedded 'struct machcpu'
 158 #
 159 LINTFLAGS       += -D_MACHDEP -I../../i86pc
 160 
 161 #
 162 #       Default build targets.
 163 #
 164 .KEEP_STATE:
 165 
 166 def: $(DEF_DEPS)
 167 
 168 all: $(ALL_DEPS)
 169 
 170 clean: $(CLEAN_DEPS)
 171 
 172 clobber: $(CLOBBER_DEPS)
 173 
 174 lint: $(LINT_DEPS)
 175