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