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/Makefile
+++ new/usr/src/uts/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 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2012 Nexenta Systems, Inc. All rights reserved.
24 24 #
25 25 # include global definitions
26 26 include ../Makefile.master
27 27
28 28 #
29 29 # List of architectures to build as part of the standard build.
30 30 #
31 31 # Some of these architectures are built in parallel (see i386_PARALLEL and
32 32 # sparc_PARALLEL). This requires building some parts first before parallel build
33 33 # can start. Platform make files know what should be built as a prerequisite for
34 34 # the parallel build to work. The i386_PREREQ and sparc_PREREQ variables tell
35 35 # which platform directory to enter to start making prerequisite dependencies.
36 36 #
37 37 sparc_ARCHITECTURES = sun4v sun4u sparc
38 38
39 39 i386_ARCHITECTURES = i86pc i86xpv intel
40 40
41 41 #
42 42 # For i386 all architectures can be compiled in parallel.
43 43 #
44 44 # intel/Makefile knows how to build prerequisites needed for parallel build.
45 45 #
46 46 i386_PREREQ = intel
47 47 i386_PARALLEL = $(i386_ARCHITECTURES)
48 48
49 49 #
50 50 # For sparc all architectures can be compiled in parallel.
51 51 #
52 52 # sun4/Makefile knows how to build prerequisites needed for parallel build.
53 53 # can start.
54 54 #
55 55 sparc_PREREQ = sun4
56 56 sparc_PARALLEL = $(sparc_ARCHITECTURES)
57 57
58 58 #
59 59 # Platforms defined in $(MACH)_PARALLEL are built in parallel. DUMMY is placed
60 60 # at the end in case $(MACH)_PARALLEL is empty to prevent everything going in
61 61 # parallel.
62 62 #
63 63 .PARALLEL: $($(MACH)_PARALLEL) DUMMY
64 64
65 65 #
66 66 # For build prerequisites we use a special target which is constructed by adding
67 67 # '.prereq' suffix to the $(MACH)_PREREQ.
68 68 #
69 69 PREREQ_TARGET = $($(MACH)_PREREQ:%=%.prereq)
70 70
71 71
72 72 def := TARGET= def
73 73 all := TARGET= all
74 74 install := TARGET= install
75 75 install_h := TARGET= install_h
76 76 clean := TARGET= clean
77 77 clobber := TARGET= clobber
78 78 clobber_h := TARGET= clobber
79 79 lint := TARGET= lint
80 80 clean.lint := TARGET= clean.lint
81 81 check := TARGET= check
82 82 modlist := TARGET= modlist
83 83 modlist := NO_STATE= -K $$MODSTATE$$$$
84 84
85 85 .KEEP_STATE:
86 86
87 87 def all lint: all_h $(PMTMO_FILE) $($(MACH)_ARCHITECTURES)
88 88
89 89 install: all_h install_dirs $(PMTMO_FILE) $($(MACH)_ARCHITECTURES)
90 90
91 91 install_dirs:
92 92 @cd ..; pwd; $(MAKE) rootdirs
93 93 @pwd
94 94
95 95 #
96 96 # Rule to build prerequisites. The left part of the pattern will match
97 97 # PREREQ_TARGET.
98 98 #
99 99 # The location of the Makefile is determined by strippinng '.prereq' suffix from
100 100 # the target name. We add '.prereq' suffix to the target passed to the child
101 101 # Makefile so that it can distinguish prerequisite build from the regular one.
102 102 #
103 103 #
↓ open down ↓ |
103 lines elided |
↑ open up ↑ |
104 104 %.prereq:
105 105 @cd $(@:%.prereq=%); pwd; $(MAKE) $(NO_STATE) $(TARGET).prereq
106 106
107 107 #
108 108 # Rule to build architecture files. Build all required prerequisites and then
109 109 # build the rest (potentially in parallel).
110 110 #
111 111 $($(MACH)_ARCHITECTURES): $(PREREQ_TARGET) FRC
112 112 @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
113 113
114 -$(PMTMO_FILE) pmtmo_file: $(PATCH_MAKEUP_TABLE)
115 - @if [ -z "$(PATCH_MAKEUP_TABLE)" ] ; then \
116 - echo 'ERROR: $$(PATCH_MAKEUP_TABLE) not set' \
117 - 'in environment' >&2 ; \
118 - exit 1 ; \
119 - fi
120 - RELEASE="$(RELEASE)" MACH="$(MACH)" \
121 - $(CTFCVTPTBL) -o $(PMTMO_FILE) $(PATCH_MAKEUP_TABLE)
122 114
123 115 #
124 116 # The following is the list of directories which contain Makefiles with
125 117 # targets to install header file. The machine independent headers are
126 118 # installed by invoking the Makefile in the directory containing the
127 119 # header files. Machine and architecture dependent headers are installed
128 120 # by invoking the main makefile for that architecture/machine which,
129 121 # in turn, is responsible for invoking the Makefiles which install headers.
130 122 # It is done this way so as not to assume that all of the header files in
131 123 # the architecture/machine dependent subdirectories are in completely
132 124 # isomorphic locations.
133 125 #
134 126 COMMON_HDRDIRS= common/avs \
135 127 common/c2 \
136 128 common/des \
137 129 common/fs \
138 130 common/gssapi \
139 131 common/idmap \
140 132 common/klm \
141 133 common/inet \
142 134 common/inet/ipf/netinet \
143 135 common/inet/kssl \
144 136 common/inet/nca \
145 137 common/inet/sockmods/netpacket \
146 138 common/io/bpf/net \
147 139 common/io/fibre-channel/fca/qlc \
148 140 common/io/lvm/md \
149 141 common/ipp \
150 142 common/net \
151 143 common/netinet \
152 144 common/nfs \
153 145 common/pcmcia/sys \
154 146 common/rpc \
155 147 common/rpcsvc \
156 148 common/sharefs \
157 149 common/smb \
158 150 common/smbsrv \
159 151 common/sys \
160 152 common/vm
161 153
162 154
163 155 #
164 156 # Subset of COMMON_HDRDIRS in which at least one header is generated
165 157 # at runtime (e.g., rpcgen), and in which "make clean" should run.
166 158 # Other directories should be included here, but do not yet have the
167 159 # necessary Makefile support (make clean). See 6414855.
168 160 #
169 161 DYNHDRDIRS = common/avs \
170 162 common/gssapi \
171 163 common/idmap \
172 164 common/io/fibre-channel/fca/qlc \
173 165 common/io/lvm/md \
174 166 common/klm \
175 167 common/rpc \
176 168 common/rpcsvc \
177 169 common/sys
178 170
179 171 sparc_HDRDIRS= sun/sys
180 172 i386_HDRDIRS= i86pc/vm i86xpv/vm
181 173
182 174 HDRDIRS= $(COMMON_HDRDIRS) $($(MACH)_HDRDIRS)
183 175 install_h check: $(HDRDIRS) $($(MACH)_ARCHITECTURES)
184 176
185 177 $(HDRDIRS): FRC
186 178 @cd $@; pwd; $(MAKE) $(TARGET)
187 179
188 180 # ensures that headers made by rpcgen and others are available in uts source
189 181 # for kernel builds to reference without building install_h
↓ open down ↓ |
58 lines elided |
↑ open up ↑ |
190 182 #
191 183 all_h: FRC
192 184 @cd common/sys; pwd; $(MAKE) $@
193 185 @cd common/rpc; pwd; $(MAKE) $@
194 186 @cd common/rpcsvc; pwd; $(MAKE) $@
195 187 @cd common/gssapi; pwd; $(MAKE) $@
196 188 @cd common/idmap; pwd; $(MAKE) $@
197 189 @cd common/klm; pwd; $(MAKE) $@
198 190
199 191 clean clobber: $($(MACH)_ARCHITECTURES) $(DYNHDRDIRS)
200 - @if [ '$(PATCH_BUILD)' != '#' ] ; then \
201 - echo $(RM) $(PMTMO_FILE) ; \
202 - $(RM) $(PMTMO_FILE) ; \
203 - fi
204 192
205 193 # testing convenience
206 194 clobber_h: $(DYNHDRDIRS)
207 195
208 196 clean.lint modlist: $($(MACH)_ARCHITECTURES)
209 197
210 198 #
211 199 # Cross-reference customization: build a cross-reference over all of
212 200 # the supported architectures. Although there's no correct way to set
213 201 # the include path (since we don't know what architecture is the one
214 202 # the user will be interested in), it's historically been set to
215 203 # mirror the $(XRDIRS) list, and that works kinda sorta okay.
216 204 #
217 205 XRDIRS = $(sparc_ARCHITECTURES) $(i386_ARCHITECTURES) sun4 sfmmu \
218 206 sun common
219 207
220 208 XRINCDIRS = $(XRDIRS)
221 209
222 210 cscope.out tags: FRC
223 211 $(XREF) -x $@
224 212
225 213 FRC:
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX