Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/tavor/Makefile
+++ new/usr/src/uts/intel/tavor/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# This makefile drives the production of the tavor InfiniBand module
27 -#
28 -# intel architecture dependent
29 -#
30 -# uts/intel/tavor/Makefile
31 -#
26 +# Copyright (c) 2018, Joyent, Inc.
32 27
33 28 #
34 29 # Paths to the base of the uts directory trees
35 30 #
36 31 UTSBASE = ../..
37 32
38 33 #
39 34 # Define the module and object file sets.
40 35 #
41 36 MODULE = tavor
42 37 OBJECTS = $(TAVOR_OBJS:%=$(OBJS_DIR)/%)
43 38 LINTS = $(TAVOR_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 39 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 40 CONF_SRCDIR = $(UTSBASE)/common/io/ib/adapters/tavor
46 41 LDFLAGS += -dy -Ndrv/ib -Nmisc/ibtl -Nmisc/ibmf
47 42
48 43 #
49 44 # Include common rules.
50 45 #
51 46 include $(UTSBASE)/intel/Makefile.intel
52 47
53 48 #
54 49 # Define targets
55 50 #
56 51 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
57 52 LINT_TARGET = $(MODULE).lint
58 53 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
59 54
60 55 #
61 56 # Overrides
62 57 #
63 58
64 59 #
65 60 # Build with no debug TNF probes enabled (by default)
66 61 #
67 62 #DEBUG_DEFS_DBG32 += -DTNF_DEBUG
68 63 #DEBUG_DEFS_DBG64 += -DTNF_DEBUG
69 64
70 65 #
71 66 # lint pass one enforcement
72 67 #
73 68 CFLAGS += $(CCVERBOSE)
74 69
75 70 #
76 71 # For now, disable these lint checks; maintainers should endeavor
77 72 # to investigate and remove these for maximum lint coverage.
78 73 # Please do not carry these forward to new Makefiles.
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
79 74 #
80 75 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
81 76 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
82 77 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
83 78
84 79 CERRWARN += -_gcc=-Wno-unused-value
85 80 CERRWARN += -_gcc=-Wno-unused-label
86 81 CERRWARN += -_gcc=-Wno-uninitialized
87 82 CERRWARN += -_gcc=-Wno-type-limits
88 83
84 +# needs work
85 +SMATCH=off
86 +
89 87 #
90 88 # Default build targets.
91 89 #
92 90 .KEEP_STATE:
93 91
94 92 def: $(DEF_DEPS)
95 93
96 94 all: $(ALL_DEPS)
97 95
98 96 clean: $(CLEAN_DEPS)
99 97
100 98 clobber: $(CLOBBER_DEPS)
101 99
102 100 lint: $(LINT_DEPS)
103 101
104 102 modlintlib: $(MODLINTLIB_DEPS)
105 103
106 104 clean.lint: $(CLEAN_LINT_DEPS)
107 105
108 106 install: $(INSTALL_DEPS)
109 107
110 108 #
111 109 # Include common targets.
112 110 #
113 111 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX