Print this page
10077 usr/src/uts/ Makefile changes for smatch
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved.
  14 #

  15 
  16 #
  17 # This makefile drives the production of the Chelsio Terminator 4 10G Ethernet
  18 # (CXGBE) driver nexus modules on x86 systems.
  19 #
  20 
  21 #
  22 # Paths to the base of the uts directory trees
  23 #
  24 UTSBASE = ../../..
  25 
  26 #
  27 # Define the module and object file sets.
  28 #
  29 MODULE          = t4nex
  30 OBJECTS         = $(CXGBE_COM_OBJS:%=$(OBJS_DIR)/%) \
  31                   $(CXGBE_FW_OBJS:%=$(OBJS_DIR)/%) \
  32                   $(CXGBE_NEX_OBJS:%=$(OBJS_DIR)/%)
  33 LINTS           = $(CXGBE_COM_OBJS:%.o=$(LINTS_DIR)/%.ln) \
  34                   $(CXGBE_FW_OBJS:%.o=$(LINTS_DIR)/%.ln) \


  73 LINTTAGS += -erroff=E_ZERO_OR_NEGATIVE_SUBSCRIPT
  74 LINTTAGS += -erroff=E_ZERO_SIZED_STRUCT_UNION
  75 LINTTAGS += -erroff=E_ANONYMOUS_UNION_DECL
  76 LINTTAGS += -erroff=E_CONSTANT_CONDITION
  77 
  78 #
  79 # These have been manually verified at the moment. When updating this
  80 # driver, please manually check the following lint warnings. Note some
  81 # of these are due to limitations in Sun Studio.
  82 #
  83 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
  84 LINTTAGS += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
  85 LINTTAGS += -erroff=E_FUNC_NO_RET_VAL
  86 LINTTAGS += -erroff=E_NOP_IF_STMT
  87 LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
  88 LINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  89 LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  90 LINTTAGS += -erroff=E_CASE_FALLTHRU
  91 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
  92 



  93 #
  94 # Default build targets.
  95 #
  96 .KEEP_STATE:
  97 
  98 def:            $(DEF_DEPS)
  99 
 100 all:            $(ALL_DEPS)
 101 
 102 clean:          $(CLEAN_DEPS)
 103 
 104 clobber:        $(CLOBBER_DEPS)
 105 
 106 lint:           $(LINT_DEPS)
 107 
 108 modlintlib:     $(MODLINTLIB_DEPS)
 109 
 110 clean.lint:     $(CLEAN_LINT_DEPS)
 111 
 112 install:        $(INSTALL_DEPS)
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright (c) 2013 by Chelsio Communications, Inc. All rights reserved.
  14 #
  15 # Copyright (c) 2018, Joyent, Inc.
  16 
  17 #
  18 # This makefile drives the production of the Chelsio Terminator 4 10G Ethernet
  19 # (CXGBE) driver nexus modules on x86 systems.
  20 #
  21 
  22 #
  23 # Paths to the base of the uts directory trees
  24 #
  25 UTSBASE = ../../..
  26 
  27 #
  28 # Define the module and object file sets.
  29 #
  30 MODULE          = t4nex
  31 OBJECTS         = $(CXGBE_COM_OBJS:%=$(OBJS_DIR)/%) \
  32                   $(CXGBE_FW_OBJS:%=$(OBJS_DIR)/%) \
  33                   $(CXGBE_NEX_OBJS:%=$(OBJS_DIR)/%)
  34 LINTS           = $(CXGBE_COM_OBJS:%.o=$(LINTS_DIR)/%.ln) \
  35                   $(CXGBE_FW_OBJS:%.o=$(LINTS_DIR)/%.ln) \


  74 LINTTAGS += -erroff=E_ZERO_OR_NEGATIVE_SUBSCRIPT
  75 LINTTAGS += -erroff=E_ZERO_SIZED_STRUCT_UNION
  76 LINTTAGS += -erroff=E_ANONYMOUS_UNION_DECL
  77 LINTTAGS += -erroff=E_CONSTANT_CONDITION
  78 
  79 #
  80 # These have been manually verified at the moment. When updating this
  81 # driver, please manually check the following lint warnings. Note some
  82 # of these are due to limitations in Sun Studio.
  83 #
  84 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
  85 LINTTAGS += -erroff=E_ENUM_VAL_OVERFLOWS_INT_MAX
  86 LINTTAGS += -erroff=E_FUNC_NO_RET_VAL
  87 LINTTAGS += -erroff=E_NOP_IF_STMT
  88 LINTTAGS += -erroff=E_FUNC_SET_NOT_USED
  89 LINTTAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  90 LINTTAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  91 LINTTAGS += -erroff=E_CASE_FALLTHRU
  92 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
  93 
  94 # needs work
  95 SMATCH=off
  96 
  97 #
  98 # Default build targets.
  99 #
 100 .KEEP_STATE:
 101 
 102 def:            $(DEF_DEPS)
 103 
 104 all:            $(ALL_DEPS)
 105 
 106 clean:          $(CLEAN_DEPS)
 107 
 108 clobber:        $(CLOBBER_DEPS)
 109 
 110 lint:           $(LINT_DEPS)
 111 
 112 modlintlib:     $(MODLINTLIB_DEPS)
 113 
 114 clean.lint:     $(CLEAN_LINT_DEPS)
 115 
 116 install:        $(INSTALL_DEPS)