Print this page
11506 smatch resync


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 # Copyright (c) 2018, Joyent, Inc.
  25 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  26 
  27 #
  28 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  29 #
  30 UTSBASE = ../..
  31 
  32 #
  33 #       Define the module and object file sets.
  34 #
  35 UNIX            = unix
  36 DBOOT           = dboot
  37 
  38 OBJECTS         = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
  39                   $(CORE_OBJS:%=$(OBJS_DIR)/%) \
  40                   $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
  41                   $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
  42 
  43 ROOTMODULE      = $(ROOT_PSM_KERN_DIR)/$(UNIX)
  44 


 132 CERRWARN        += -_gcc=-Wno-uninitialized
 133 CERRWARN        += -_gcc=-Wno-char-subscripts
 134 CERRWARN        += -_gcc=-Wno-unused-variable
 135 CERRWARN        += -_gcc=-Wno-unused-function
 136 CERRWARN        += -_gcc=-Wno-unused-label
 137 CERRWARN        += -_gcc=-Wno-type-limits
 138 CERRWARN        += -_gcc=-Wno-clobbered
 139 CERRWARN        += -_gcc=-Wno-empty-body
 140 CERRWARN        += -_gcc=-Wno-unused-value
 141 
 142 # false positives
 143 SMOFF += index_overflow
 144 
 145 # needs work
 146 SMOFF += all_func_returns,deref_check,signed
 147 
 148 $(OBJS_DIR)/fmsmb.o := SMOFF += indenting
 149 $(OBJS_DIR)/zutil.o := SMOFF += indenting
 150 $(OBJS_DIR)/bootrd_cpio.o := SMOFF += allocating_enough_data
 151 



 152 #
 153 #       Default build targets.
 154 #
 155 .KEEP_STATE:
 156 
 157 def: $(DEF_DEPS)
 158 
 159 all: $(ALL_DEPS)
 160 
 161 clean: $(CLEAN_DEPS)
 162 
 163 clobber: $(CLOBBER_DEPS)
 164 
 165 install: $(INSTALL_DEPS)
 166 
 167 MAPFILE_32 = $(MAPFILE)
 168 MAPFILE_64 = $(MAPFILE).amd64
 169 
 170 MAPFILE_NAME = $(MAPFILE_$(CLASS))
 171 




   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  22 # Use is subject to license terms.
  23 #
  24 # Copyright 2019 Joyent, Inc.
  25 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
  26 
  27 #
  28 #       Path to the base of the uts directory tree (usually /usr/src/uts).
  29 #
  30 UTSBASE = ../..
  31 
  32 #
  33 #       Define the module and object file sets.
  34 #
  35 UNIX            = unix
  36 DBOOT           = dboot
  37 
  38 OBJECTS         = $(SPECIAL_OBJS:%=$(OBJS_DIR)/%) \
  39                   $(CORE_OBJS:%=$(OBJS_DIR)/%) \
  40                   $(KRTLD_OBJS:%=$(OBJS_DIR)/%) \
  41                   $(MACH_NOT_YET_KMODS:%=$(OBJS_DIR)/%)
  42 
  43 ROOTMODULE      = $(ROOT_PSM_KERN_DIR)/$(UNIX)
  44 


 132 CERRWARN        += -_gcc=-Wno-uninitialized
 133 CERRWARN        += -_gcc=-Wno-char-subscripts
 134 CERRWARN        += -_gcc=-Wno-unused-variable
 135 CERRWARN        += -_gcc=-Wno-unused-function
 136 CERRWARN        += -_gcc=-Wno-unused-label
 137 CERRWARN        += -_gcc=-Wno-type-limits
 138 CERRWARN        += -_gcc=-Wno-clobbered
 139 CERRWARN        += -_gcc=-Wno-empty-body
 140 CERRWARN        += -_gcc=-Wno-unused-value
 141 
 142 # false positives
 143 SMOFF += index_overflow
 144 
 145 # needs work
 146 SMOFF += all_func_returns,deref_check,signed
 147 
 148 $(OBJS_DIR)/fmsmb.o := SMOFF += indenting
 149 $(OBJS_DIR)/zutil.o := SMOFF += indenting
 150 $(OBJS_DIR)/bootrd_cpio.o := SMOFF += allocating_enough_data
 151 
 152 # too hairy
 153 $(OBJS_DIR)/inflate.o := SMATCH=off
 154 
 155 #
 156 #       Default build targets.
 157 #
 158 .KEEP_STATE:
 159 
 160 def: $(DEF_DEPS)
 161 
 162 all: $(ALL_DEPS)
 163 
 164 clean: $(CLEAN_DEPS)
 165 
 166 clobber: $(CLOBBER_DEPS)
 167 
 168 install: $(INSTALL_DEPS)
 169 
 170 MAPFILE_32 = $(MAPFILE)
 171 MAPFILE_64 = $(MAPFILE).amd64
 172 
 173 MAPFILE_NAME = $(MAPFILE_$(CLASS))
 174