Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/e1000g/Makefile
+++ new/usr/src/uts/intel/e1000g/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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 -# uts/intel/e1000g/Makefile
26 -#
27 -# This makefile drives the production of the iprb
28 -# network driver kernel module.
29 -#
30 -# intel architecture dependent
31 -#
25 +# Copyright (c) 2018, Joyent, Inc.
32 26
33 27 #
34 28 # Paths to the base of the uts directory trees
35 29 #
36 30 UTSBASE = ../..
37 31
38 32 #
39 33 # Define the module and object file sets.
40 34 #
41 35 MODULE = e1000g
42 36 OBJECTS = $(E1000G_OBJS:%=$(OBJS_DIR)/%)
43 37 OBJECTS += $(E1000API_OBJS:%=$(OBJS_DIR)/%)
44 38 LINTS = $(E1000G_OBJS:%.o=$(LINTS_DIR)/%.ln)
45 39 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
46 40 CONF_SRCDIR = $(UTSBASE)/common/io/e1000g
47 41
48 42 #
49 43 # Include common rules.
50 44 #
51 45 include $(UTSBASE)/intel/Makefile.intel
52 46
53 47 CFLAGS += -D_KERNEL -Di386 -DNEWSTAT -DNOMUT -DRCVWORKAROUND \
54 48 -DINTEL_IP \
55 49 -DPAXSON -DBAY_CITY \
56 50 -DTANAX_WORKAROUND -I$(UTSBASE)/common/io/e1000g \
57 51 -I$(UTSBASE)/common/io/e1000api
58 52
59 53 LINTFLAGS += \
60 54 -I$(UTSBASE)/common/io/e1000g \
61 55 -I$(UTSBASE)/common/io/e1000api
62 56
63 57 CFLAGS_CPP_COMMENTS = -xCC
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
64 58
65 59 CFLAGS += $(CFLAGS_CPP_COMMENTS)
66 60
67 61 CERRWARN += -_gcc=-Wno-uninitialized
68 62 CERRWARN += -_gcc=-Wno-parentheses
69 63 CERRWARN += -_gcc=-Wno-switch
70 64 CERRWARN += -_gcc=-Wno-unused-label
71 65 CERRWARN += -_gcc=-Wno-unused-variable
72 66 CERRWARN += -_cc=-erroff=E_STATEMENT_NOT_REACHED
73 67
68 +SMOFF += all_func_returns,indenting,shift_to_zero
69 +
74 70 LINTTAGS += -erroff=E_CONSTANT_CONDITION
75 71
76 72 #
77 73 # Define targets
78 74 #
79 75 ALL_TARGET = $(BINARY) $(CONFMOD)
80 76 LINT_TARGET = $(MODULE).lint
81 77 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
82 78
83 79 #
84 80 # Driver depends on MAC
85 81 #
86 82 LDFLAGS += -dy -N misc/mac
87 83
88 84 #
89 85 # Default build targets.
90 86 #
91 87 .KEEP_STATE:
92 88
93 89 def: $(DEF_DEPS)
94 90
95 91 all: $(ALL_DEPS)
96 92
97 93 clean: $(CLEAN_DEPS)
98 94
99 95 clobber: $(CLOBBER_DEPS)
100 96
101 97
102 98 lint: $(LINT_DEPS)
103 99
104 100 modlintlib: $(MODLINTLIB_DEPS)
105 101
106 102 clean.lint: $(CLEAN_LINT_DEPS)
107 103
108 104 install: $(INSTALL_DEPS)
109 105
110 106 #
111 107 # Include common targets.
112 108 #
113 109 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX