Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/ipf/Makefile
+++ new/usr/src/uts/intel/ipf/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/ipf/Makefile
26 -#
27 -# This makefile drives the production of the ipf driver
28 -# kernel module.
29 -#
30 -# intel architecture dependent
31 -#
25 +# Copyright (c) 2018, Joyent, Inc.
32 26
33 27 #
34 28 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 29 #
36 30 UTSBASE = ../..
37 31
38 32 #
39 33 # Define the module and object file sets.
40 34 #
41 35 MODULE = ipf
42 36 OBJECTS = $(IPF_OBJS:%=$(OBJS_DIR)/%)
43 37 LINTS = $(IPF_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 38 ROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
45 39 CONF_SRCDIR = $(UTSBASE)/common/inet/ipf
46 40
47 41 #
48 42 # Include common rules.
49 43 #
50 44 include $(UTSBASE)/intel/Makefile.intel
51 45
52 46 #
53 47 # Define targets
54 48 #
55 49 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
56 50 LINT_TARGET = $(MODULE).lint
57 51 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
58 52
59 53 CPPFLAGS += -DIPFILTER_LKM -DIPFILTER_LOG -DIPFILTER_LOOKUP -DUSE_INET6
60 54 CPPFLAGS += -DSUNDDI -DSOLARIS2=$(RELEASE_MINOR) -DIRE_ILL_CN
61 55 LDFLAGS += -dy -Ndrv/ip -Nmisc/md5 -Nmisc/neti -Nmisc/hook -Nmisc/kcf
62 56
63 57 INC_PATH += -I$(UTSBASE)/common/inet/ipf
64 58
65 59 #
66 60 # For now, disable these lint checks; maintainers should endeavor
67 61 # to investigate and remove these for maximum lint coverage.
68 62 # Please do not carry these forward to new Makefiles.
69 63 #
70 64 LINTTAGS += -erroff=E_STATIC_UNUSED
↓ open down ↓ |
29 lines elided |
↑ open up ↑ |
71 65 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
72 66 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
73 67 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
74 68
75 69 CERRWARN += -_gcc=-Wno-unused-function
76 70 CERRWARN += -_gcc=-Wno-unused-variable
77 71 CERRWARN += -_gcc=-Wno-parentheses
78 72 CERRWARN += -_gcc=-Wno-uninitialized
79 73 CERRWARN += -_gcc=-Wno-empty-body
80 74
75 +# needs work
76 +SMATCH=off
77 +
81 78 #
82 79 # Default build targets.
83 80 #
84 81 .KEEP_STATE:
85 82
86 83 def: $(DEF_DEPS)
87 84
88 85 all: $(ALL_DEPS) $(SISCHECK_DEPS)
89 86
90 87 clean: $(CLEAN_DEPS) $(SISCLEAN_DEPS)
91 88
92 89 clobber: $(CLOBBER_DEPS) $(SISCLEAN_DEPS)
93 90
94 91 lint: $(LINT_DEPS)
95 92
96 93 modlintlib: $(MODLINTLIB_DEPS)
97 94
98 95 clean.lint: $(CLEAN_LINT_DEPS)
99 96
100 97 install: $(INSTALL_DEPS) $(SISCHECK_DEPS)
101 98
102 99 #
103 100 # Include common targets.
104 101 #
105 102 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX