Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sata/Makefile
+++ new/usr/src/uts/intel/sata/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 2006 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 +# Copyright (c) 2018, Joyent, Inc.
26 27
28 +
27 29 #
28 30 # uts/intel/io/sata/Makefile
29 31 #
30 32 # This makefile drives the production of the sata "misc"
31 33 # kernel module.
32 34 #
33 35 # intel architecture dependent
34 36 #
35 37
36 38 #
37 39 # Path to the base of the uts directory tree (usually /usr/src/uts).
38 40 #
39 41 UTSBASE = ../..
40 42
41 43 #
42 44 # Define the module and object file sets.
43 45 #
44 46 MODULE = sata
45 47 OBJECTS = $(SATA_OBJS:%=$(OBJS_DIR)/%)
46 48 LINTS = $(SATA_OBJS:%.o=$(LINTS_DIR)/%.ln)
47 49 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
48 50
49 51 #
50 52 # Include common rules.
51 53 #
52 54 include $(UTSBASE)/intel/Makefile.intel
53 55
54 56 #
55 57 # Define targets
56 58 #
57 59 ALL_TARGET = $(BINARY)
58 60 LINT_TARGET = $(MODULE).lint
59 61 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
60 62
61 63 #
62 64 # Overrides.
63 65 #
64 66 DEBUG_FLGS =
65 67 DEBUG_DEFS += $(DEBUG_FLGS)
66 68
67 69 #
68 70 # lint pass one enforcement
69 71 #
70 72 CFLAGS += $(CCVERBOSE)
71 73
72 74 #
73 75 # dependency on scsi module
74 76 #
75 77 LDFLAGS += -dy -Nmisc/scsi
76 78
77 79 #
78 80 # For now, disable these lint checks; maintainers should endeavor
79 81 # to investigate and remove these for maximum lint coverage.
80 82 # Please do not carry these forward to new Makefiles.
81 83 #
82 84 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
83 85 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
↓ open down ↓ |
47 lines elided |
↑ open up ↑ |
84 86 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
85 87 LINTTAGS += -erroff=E_STATIC_UNUSED
86 88
87 89 CERRWARN += -_gcc=-Wno-parentheses
88 90 CERRWARN += -_gcc=-Wno-unused-label
89 91 CERRWARN += -_gcc=-Wno-unused-function
90 92 CERRWARN += -_gcc=-Wno-unused-variable
91 93 CERRWARN += -_gcc=-Wno-uninitialized
92 94 CERRWARN += -_gcc=-Wno-empty-body
93 95
96 +# needs work
97 +SMATCH=off
98 +
94 99 #
95 100 # Default build targets.
96 101 #
97 102 .KEEP_STATE:
98 103
99 104 def: $(DEF_DEPS)
100 105
101 106 all: $(ALL_DEPS)
102 107
103 108 clean: $(CLEAN_DEPS)
104 109
105 110 clobber: $(CLOBBER_DEPS)
106 111
107 112 lint: $(LINT_DEPS)
108 113
109 114 modlintlib: $(MODLINTLIB_DEPS)
110 115
111 116 clean.lint: $(CLEAN_LINT_DEPS)
112 117
113 118 install: $(INSTALL_DEPS)
114 119
115 120 #
116 121 # Include common targets.
117 122 #
118 123 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX