Print this page
1961 investigate stopping uniquifying CTF information
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/sun4v/genunix/Makefile
+++ new/usr/src/uts/sun4v/genunix/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
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 2009 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26 #
27 27 # This makefile drives the production of the generic
28 28 # unix kernel module.
29 29 #
30 30 # sparc implementation architecture dependent
31 31 #
32 32
33 33 #
34 34 # Path to the base of the uts directory tree (usually /usr/src/uts).
35 35 #
36 36 UTSBASE = ../..
37 37
38 38 #
39 39 # Define the module and object file sets.
40 40 #
41 41 MODULE = genunix
42 42 GENUNIX = $(OBJS_DIR)/$(MODULE)
43 43
44 44 OBJECTS = $(GENUNIX_OBJS:%=$(OBJS_DIR)/%) \
45 45 $(NOT_YET_KMODS:%=$(OBJS_DIR)/%)
46 46
47 47 LINTS = $(GENUNIX_OBJS:%.o=$(LINTS_DIR)/%.ln) \
48 48 $(NOT_YET_KMODS:%.o=$(LINTS_DIR)/%.ln)
49 49
50 50 ROOTMODULE = $(ROOT_PSM_KERN_DIR)/$(MODULE)
51 51
52 52 PLATFORM = sun4v
53 53 LIBGEN = $(OBJS_DIR)/libgenunix.so
54 54 LIBSTUBS = $(GENSTUBS_OBJS:%=$(OBJS_DIR)/%)
55 55
56 56 # LINTFLAGS will be set to include definitions so that the cpu_t
57 57 # structure is expanded. However this could be set to look at the
58 58 # sun4u version which is not correct for sun4v. Therefore we only
59 59 # want to use the LINTFLAGS modification in this Makefile and so
60 60 # suppress the usage of the LINTFLAGS setting in the Makefile.sparc
61 61 # file.
62 62 #
63 63 LINTFLAGSUPPRESS = $(POUND_SIGN)
64 64
65 65 #
66 66 # Include common rules.
67 67 #
68 68 include $(UTSBASE)/sparc/Makefile.sparc
69 69
70 70 #
71 71 # Define targets
72 72 #
73 73 ALL_TARGET = $(LIBGEN)
74 74 LINT_TARGET = $(MODULE).lint
75 75 INSTALL_TARGET = $(GENUNIX) $(ROOTMODULE)
76 76
77 77 #
78 78 # Override defaults
79 79 #
↓ open down ↓ |
79 lines elided |
↑ open up ↑ |
80 80 CLEANFILES += $(LIBSTUBS) $(LIBGEN)
81 81
82 82 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
83 83 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
84 84 GEN_LINT_LIB =
85 85
86 86 BINARY =
87 87
88 88 CLOBBERFILES += $(GENUNIX)
89 89
90 -#
91 -# Non-patch genunix builds merge a version of the ip module called ipctf. This
92 -# is to ensure that the common network-related types are included in genunix and
93 -# can thus be uniquified out of other modules. We don't want to do this for
94 -# patch builds, since we can't guarantee that ip and genunix will be in the same
95 -# patch.
96 -#
97 -IPCTF_TARGET = $(IPCTF)
98 -$(PATCH_BUILD)IPCTF_TARGET =
99 -
100 90 #
101 91 # lint pass one enforcement
102 92 #
103 93 CFLAGS += $(CCVERBOSE)
104 94 CPPFLAGS += -I$(SRC)/common
105 95 CPPFLAGS += -I$(SRC)/uts/common/fs/zfs
106 96
107 97 INC_PATH += -I$(UTSBASE)/sun4
108 98
109 99 #
110 100 # For now, disable these lint checks; maintainers should endeavor
111 101 # to investigate and remove these for maximum lint coverage.
112 102 # Please do not carry these forward to new Makefiles.
113 103 #
114 104 LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
115 105 LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
116 106 LINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
117 107 LINTTAGS += -erroff=E_STATIC_UNUSED
118 108 LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
119 109 LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
120 110
121 111 CERRWARN += -_gcc=-Wno-unused-label
122 112 CERRWARN += -_gcc=-Wno-unused-variable
123 113 CERRWARN += -_gcc=-Wno-unused-value
124 114 CERRWARN += -_gcc=-Wno-unused-function
125 115 CERRWARN += -_gcc=-Wno-parentheses
126 116 CERRWARN += -_gcc=-Wno-switch
127 117 CERRWARN += -_gcc=-Wno-type-limits
128 118 CERRWARN += -_gcc=-Wno-uninitialized
129 119 CERRWARN += -_gcc=-Wno-clobbered
130 120 CERRWARN += -_gcc=-Wno-empty-body
131 121
132 122
133 123 # Ensure that lint sees 'struct cpu' containing a fully declared
134 124 # embedded 'struct machcpu'.
135 125 #
136 126 LINTFLAGS += -D_MACHDEP -I../../sun4 -I../../$(PLATFORM) -I../../sfmmu
137 127
138 128 #
139 129 # Default build targets.
140 130 #
141 131 .KEEP_STATE:
142 132
143 133 .PARALLEL: $(LIBSTUBS)
144 134
145 135 def: $(DEF_DEPS)
146 136
147 137 all: $(ALL_DEPS)
148 138
149 139 clean: $(CLEAN_DEPS)
150 140
151 141 clobber: $(CLOBBER_DEPS)
152 142
153 143 lint: $(LINT_DEPS)
↓ open down ↓ |
44 lines elided |
↑ open up ↑ |
154 144
155 145 modlintlib: $(MODLINTLIB_DEPS)
156 146
157 147 clean.lint: $(CLEAN_LINT_DEPS)
158 148
159 149 install: $(INSTALL_DEPS)
160 150
161 151 $(LIBGEN): $(GENUNIX) $(LIBSTUBS)
162 152 $(BUILD.SO) $(GENUNIX) $(LIBSTUBS)
163 153
164 -$(GENUNIX): $(IPCTF_TARGET) $(OBJECTS)
154 +$(GENUNIX): $(OBJECTS)
165 155 @pwd
166 156 $(LD) -r $(LDFLAGS) -o $@ $(OBJECTS)
167 - $(CTFMERGE_GENUNIX_MERGE)
157 + $(CTFMERGE_MODULE)
168 158 $(POST_PROCESS)
169 159
170 160 $(OBJECTS): $(OBJS_DIR)
171 161
172 162 #
173 163 # Include common targets.
174 164 #
175 165 include $(UTSBASE)/sparc/Makefile.targ
176 166
177 167 #
178 168 # Include workarounds.
179 169 #
180 170 include $(UTSBASE)/$(PLATFORM)/Makefile.workarounds
181 171
182 172 ALL_DEFS += $(WORKAROUND_DEFS)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX