Print this page
10077 usr/src/uts/ Makefile changes for smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/pcicfg/Makefile
+++ new/usr/src/uts/intel/pcicfg/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 # uts/intel/pcicfg/Makefile
23 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# This makefile drives the production of the kernel/misc/pcicfg module
27 -# (PCI configurator module) for PCI hotplug support in PCI nexus
28 -# drivers.
29 -#
30 -# intel implementation architecture dependent
31 -#
26 +# Copyright (c) 2018, Joyent, Inc.
32 27
33 28 #
34 29 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 30 #
36 31 UTSBASE = ../..
37 32
38 33 #
39 34 # Define the module and object file sets.
40 35 #
41 36 MODULE = pcicfg
42 37 OBJECTS = $(PCICFG_OBJS:%=$(OBJS_DIR)/%)
43 38 LINTS = $(PCICFG_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 39 ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
45 40
46 41 #
47 42 # Include common rules.
48 43 #
49 44 include $(UTSBASE)/intel/Makefile.intel
50 45
51 46 #
52 47 # Define targets
53 48 #
54 49 ALL_TARGET = $(BINARY)
55 50 LINT_TARGET = $(MODULE).lint
56 51 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
57 52
58 53 #
59 54 # Override defaults to build a unique, local modstubs.o.
60 55 #
61 56 MODSTUBS_DIR = $(OBJS_DIR)
62 57 $(MODSTUBS_O) := AS_CPPFLAGS += -DPCICFG_MODULE
63 58 CLEANFILES += $(MODSTUBS_O)
64 59
65 60 #
66 61 # Dependency
67 62 #
68 63 LDFLAGS += -dy -Nmisc/busra -Nmisc/pcie
69 64
70 65 #
71 66 # For now, disable these lint checks; maintainers should endeavor
72 67 # to investigate and remove these for maximum lint coverage.
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
73 68 # Please do not carry these forward to new Makefiles.
74 69 #
75 70 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
76 71 LINTTAGS += -erroff=E_STATIC_UNUSED
77 72 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
78 73 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
79 74
80 75 CERRWARN += -_gcc=-Wno-unused-function
81 76 CERRWARN += -_gcc=-Wno-uninitialized
82 77
78 +# needs work
79 +$(OBJS_DIR)/pcicfg.o := SMOFF += deref_check
80 +
83 81 #
84 82 # Default build targets.
85 83 #
86 84 .KEEP_STATE:
87 85
88 86 def: $(DEF_DEPS)
89 87
90 88 all: $(ALL_DEPS)
91 89
92 90 clean: $(CLEAN_DEPS)
93 91
94 92 clobber: $(CLOBBER_DEPS)
95 93
96 94 lint: $(LINT_DEPS)
97 95
98 96 modlintlib: $(MODLINTLIB_DEPS)
99 97
100 98 clean.lint: $(CLEAN_LINT_DEPS)
101 99
102 100 install: $(INSTALL_DEPS)
103 101
104 102 #
105 103 # Include common targets.
106 104 #
107 105 include $(UTSBASE)/intel/Makefile.targ
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX