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