Print this page
3806 illumos build execs echo unnecessarily
Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86xpv/Makefile.i86xpv.shared
+++ new/usr/src/uts/i86xpv/Makefile.i86xpv.shared
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
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 # uts/i86xpv/Makefile.i86xpv.shared
24 24 #
25 25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 26 # Use is subject to license terms.
27 +# Copyright (c) 2013 Andrew Stormont. All rights reserved.
27 28 #
28 29
29 30 #
30 31 # This makefile contains the common definitions for the i86xpv unix
31 32 # and all i86xpv implementation architecture dependent modules.
32 33 #
33 34
34 35 #
35 36 # Machine type (implementation architecture):
36 37 #
37 38 PLATFORM = i86xpv
38 39
39 40 #
40 41 # uname -m value
41 42 #
42 43 UNAME_M = i86pc
43 44
44 45 #
45 46 # Everybody needs to know how to build modstubs.o and to locate unix.o
46 47 #
47 48 UNIX_DIR = $(UTSBASE)/$(PLATFORM)/unix
48 49 GENLIB_DIR = $(UTSBASE)/intel/genunix
49 50 MODSTUBS_DIR = $(UNIX_DIR)
50 51 DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
51 52 LINTS_DIR = $(OBJS_DIR)
52 53 LINT_LIB_DIR = $(UTSBASE)/$(PLATFORM)/lint-libs/$(OBJS_DIR)
53 54 GEN_LINT_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
54 55
55 56 DTRACESTUBS_O = $(OBJS_DIR)/dtracestubs.o
56 57 DTRACESTUBS = $(OBJS_DIR)/libdtracestubs.so
57 58
58 59 SYM_MOD = $(OBJS_DIR)/unix.sym
59 60
60 61 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
61 62 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
62 63 GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
63 64 LINT_LIB = $(LINT_LIB_DIR)/llib-lunix.ln
64 65 DBOOT_LINT_LIB = $(LINT_LIB_DIR)/llib-ldboot.ln
65 66 GEN_LINT_LIB = $(GEN_LINT_LIB_DIR)/llib-lgenunix.ln
66 67
67 68 LINT32_DIRS = $(LINT32_BUILDS:%=$(UTSBASE)/$(PLATFORM)/lint-libs/%)
68 69 LINT32_FILES = $(LINT32_DIRS:%=%/llib-l$(MODULE).ln)
69 70
70 71 #
71 72 # Include the makefiles which define build rule templates, the
72 73 # collection of files per module, and a few specific flags. Note
73 74 # that order is significant, just as with an include path. The
74 75 # first build rule template which matches the files name will be
75 76 # used. By including these in order from most machine dependent
76 77 # to most machine independent, we allow a machine dependent file
77 78 # to be used in preference over a machine independent version
78 79 # (Such as a machine specific optimization, which preserves the
79 80 # interfaces.)
80 81 #
81 82 include $(UTSTREE)/$(PLATFORM)/Makefile.files
82 83 include $(UTSTREE)/intel/Makefile.files
83 84 include $(UTSTREE)/common/Makefile.files
84 85
85 86 #
86 87 # Include machine independent rules. Note that this does not imply
87 88 # that the resulting module from rules in Makefile.uts is machine
88 89 # independent. Only that the build rules are machine independent.
89 90 #
90 91 include $(UTSBASE)/Makefile.uts
91 92
92 93 #
93 94 # Define supported builds
94 95 #
95 96 DEF_BUILDS = $(DEF_BUILDS64) $(DEF_BUILDS32)
96 97 ALL_BUILDS = $(ALL_BUILDS64) $(ALL_BUILDS32)
97 98
98 99 #
99 100 # x86 or amd64 inline templates
100 101 #
101 102 INLINES_32 = $(UTSBASE)/intel/ia32/ml/ia32.il \
102 103 $(UTSBASE)/$(PLATFORM)/ml/ia32.il
103 104 INLINES_64 = $(UTSBASE)/intel/amd64/ml/amd64.il \
104 105 $(UTSBASE)/$(PLATFORM)/ml/amd64.il
105 106 INLINES += $(INLINES_$(CLASS))
106 107
107 108 #
108 109 # kernel-specific optimizations; override default in Makefile.master
109 110 #
110 111
111 112 CFLAGS_XARCH_32 = $(i386_CFLAGS)
112 113 CFLAGS_XARCH_64 = $(amd64_CFLAGS)
113 114 CFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
114 115
115 116 COPTFLAG_32 = $(COPTFLAG)
116 117 COPTFLAG_64 = $(COPTFLAG64)
117 118 COPTIMIZE = $(COPTFLAG_$(CLASS))
118 119
119 120 CFLAGS = $(CFLAGS_XARCH)
120 121 CFLAGS += $(COPTIMIZE)
121 122 CFLAGS += $(INLINES) -D_ASM_INLINES
122 123 CFLAGS += $(CCMODE)
123 124 CFLAGS += $(SPACEFLAG)
124 125 CFLAGS += $(CCUNBOUND)
125 126 CFLAGS += $(CFLAGS_uts)
126 127
127 128 ASFLAGS_XARCH_32 = $(i386_ASFLAGS)
128 129 ASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
129 130 ASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
130 131
131 132 ASFLAGS += $(ASFLAGS_XARCH)
132 133
133 134 AS_INC_PATH += -I$(DSF_DIR)/$(OBJS_DIR)
134 135
135 136 #
136 137 # The following must be defined for all implementations:
137 138 #
138 139 # MAPFILE: ld mapfile for the build of kernel/unix.
139 140 # MODSTUBS: Module stubs source file.
140 141 # GENASSYM_SRC: genassym.c
141 142
142 143 MAPFILE = $(UTSBASE)/$(PLATFORM)/conf/Mapfile
143 144 MODSTUBS = $(UTSBASE)/intel/ia32/ml/modstubs.s
144 145 GENASSYM_SRC = $(UTSBASE)/i86pc/ml/genassym.c
145 146 OFFSETS_SRC = $(UTSBASE)/i86pc/ml/offsets.in
146 147
147 148 #PLATFORM_OFFSETS_32 = $(UTSBASE)/$(PLATFORM)/ml/mach_offsets.in
148 149 PLATFORM_OFFSETS_32 = $(UTSBASE)/i86pc/ml/mach_offsets.in
149 150 PLATFORM_OFFSETS_64 = $(UTSBASE)/intel/amd64/ml/mach_offsets.in
150 151 PLATFORM_OFFSETS_SRC = $(PLATFORM_OFFSETS_$(CLASS))
151 152 KDI_OFFSETS_SRC = $(UTSBASE)/intel/kdi/kdi_offsets.in
152 153
153 154 #
154 155 # Define the actual specific platforms
155 156 #
156 157 MACHINE_DEFS = -D__$(PLATFORM) -D__xpv -D_MACHDEP
157 158
158 159 #
159 160 # Software workarounds for hardware "features"
160 161 #
161 162
162 163 include $(UTSBASE)/i86pc/Makefile.workarounds
163 164
164 165 #
165 166 # Debugging level
166 167 #
167 168 # Special knowledge of which special debugging options effect which
168 169 # file is used to optimize the build if these flags are changed.
169 170 #
↓ open down ↓ |
133 lines elided |
↑ open up ↑ |
170 171 # XXX: The above could possibly be done for more flags and files, but
171 172 # is left as an experiment to the interested reader. Be forewarned,
172 173 # that excessive use could lead to maintenance difficulties.
173 174 #
174 175 DEBUG_DEFS_OBJ32 =
175 176 DEBUG_DEFS_DBG32 = -DDEBUG
176 177 DEBUG_DEFS_OBJ64 =
177 178 DEBUG_DEFS_DBG64 = -DDEBUG
178 179 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
179 180
180 -DEBUG_COND_OBJ32 :sh = echo \\043
181 +DEBUG_COND_OBJ32 = $(POUND_SIGN)
181 182 DEBUG_COND_DBG32 =
182 -DEBUG_COND_OBJ64 :sh = echo \\043
183 +DEBUG_COND_OBJ64 = $(POUND_SIGN)
183 184 DEBUG_COND_DBG64 =
184 185 IF_DEBUG_OBJ = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
185 186
186 187 $(IF_DEBUG_OBJ)trap.o := DEBUG_DEFS += -DTRAPDEBUG -DTRAPTRACE
187 188 $(IF_DEBUG_OBJ)syscall_asm.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
188 189 $(IF_DEBUG_OBJ)syscall_asm_amd64.o := DEBUG_DEFS += -DSYSCALLTRACE -DTRAPTRACE
189 190 $(IF_DEBUG_OBJ)fast_trap_asm.o := DEBUG_DEFS += -DTRAPTRACE
190 191 $(IF_DEBUG_OBJ)interrupt.o := DEBUG_DEFS += -DTRAPTRACE
191 192 $(IF_DEBUG_OBJ)intr.o := DEBUG_DEFS += -DTRAPTRACE
192 193 $(IF_DEBUG_OBJ)locore.o := DEBUG_DEFS += -DTRAPTRACE
193 194 $(IF_DEBUG_OBJ)mp_startup.o := DEBUG_DEFS += -DTRAPTRACE
194 195 $(IF_DEBUG_OBJ)machdep.o := DEBUG_DEFS += -DTRAPTRACE
195 196 $(IF_DEBUG_OBJ)exception.o := DEBUG_DEFS += -DTRAPTRACE
196 197 $(IF_DEBUG_OBJ)x_call.o := DEBUG_DEFS += -DTRAPTRACE
197 198 $(IF_DEBUG_OBJ)mp_call.o := DEBUG_DEFS += -DTRAPTRACE
198 199 $(IF_DEBUG_OBJ)cbe.o := DEBUG_DEFS += -DTRAPTRACE
199 200 $(IF_DEBUG_OBJ)hyperevent.o := DEBUG_DEFS += -DTRAPTRACE
200 201 $(IF_DEBUG_OBJ)evtchn.o := DEBUG_DEFS += -DTRAPTRACE
201 202
202 203 #
203 204 # Collect the preprocessor definitions to be associated with *all*
204 205 # files.
205 206 #
206 207 ALL_DEFS = $(MACHINE_DEFS) $(WORKAROUND_DEFS) $(DEBUG_DEFS) \
207 208 $(OPTION_DEFS)
208 209 GENASSYM_DEFS = $(MACHINE_DEFS) $(OPTION_DEFS) \
209 210 -_gcc=-fno-eliminate-unused-debug-symbols \
210 211 -_gcc=-fno-eliminate-unused-debug-types
211 212
212 213 #
213 214 # ----- TRANSITIONAL SECTION --------------------------------------------------
214 215 #
215 216
216 217 #
217 218 # Not everything which *should* be a module is a module yet. The
218 219 # following is a list of such objects which are currently part of
219 220 # the base kernel but should soon become kmods.
220 221 #
221 222 # XXX: $(KMACCT_OBJS) is neither in the MT kernel nor was it ever
222 223 # made into a module. If it is made MT safe before being made
223 224 # into a module, it should be added to this list. It was in
224 225 # this list pre ON-4.0.
225 226 #
226 227 #
227 228 MACH_NOT_YET_KMODS = $(AUTOCONF_OBJS)
228 229
229 230 #
230 231 # ----- END OF TRANSITIONAL SECTION -------------------------------------------
231 232 #
232 233
233 234 #
234 235 # The kernels modules which are "implementation architecture"
235 236 # specific for this machine are enumerated below. Note that most
236 237 # of these modules must exist (in one form or another) for each
237 238 # architecture.
238 239 #
239 240 # Machine Specific Driver Modules (/kernel/drv):
240 241 # DRV_KMODS are built both 32-bit and 64-bit
241 242 # DRV_KMODS_32 are built only 32-bit
242 243 # DRV_KMODS_64 are built only 64-bit
243 244 #
244 245
245 246 DRV_KMODS += rootnex
246 247 DRV_KMODS += ioat
247 248 DRV_KMODS += isa
248 249 DRV_KMODS += pci
249 250 DRV_KMODS += pit_beep
250 251 DRV_KMODS += npe
251 252 DRV_KMODS += pci-ide
252 253 DRV_KMODS += xsvc
253 254 DRV_KMODS += xenbus
254 255 DRV_KMODS += xencons
255 256 DRV_KMODS += xpvd
256 257 DRV_KMODS += xnbe
257 258 DRV_KMODS += xnbo
258 259 DRV_KMODS += xnbu
259 260 DRV_KMODS += xnf
260 261 DRV_KMODS += xdb
261 262 DRV_KMODS += xdf
262 263 DRV_KMODS += privcmd
263 264 DRV_KMODS += domcaps
264 265 DRV_KMODS += evtchn
265 266 DRV_KMODS += balloon
266 267 DRV_KMODS += xpvtap
267 268 DRV_KMODS += xdt
268 269
269 270 #
270 271 # CPU Modules
271 272 #
272 273 CPU_KMODS += generic_cpu
273 274 CPU_KMODS += amd_opteron
274 275 CPU_KMODS += genuineintel
275 276 CPU_KMODS += authenticamd
276 277
277 278 #
278 279 # Exec Class Modules (/kernel/exec):
279 280 #
280 281 EXEC_KMODS +=
281 282
282 283 #
283 284 # Scheduling Class Modules (/kernel/sched):
284 285 #
285 286 SCHED_KMODS +=
286 287
287 288 #
288 289 # File System Modules (/kernel/fs):
289 290 #
290 291 FS_KMODS +=
291 292
292 293 #
293 294 # Streams Modules (/kernel/strmod):
294 295 #
295 296 STRMOD_KMODS +=
296 297
297 298 #
298 299 # 'System' Modules (/kernel/sys):
299 300 #
300 301 SYS_KMODS +=
301 302
302 303 #
303 304 # 'Misc' Modules (/kernel/misc):
304 305 #
305 306 MISC_KMODS += xpv_autoconfig gfx_private xnb
306 307
307 308 # 'Dacf' modules (/kernel/dacf)
308 309 #
309 310 DACF_KMODS += consconfig_dacf
310 311
311 312 #
312 313 # 'Mach' Modules (/kernel/mach):
313 314 #
314 315 MACH_KMODS += xpv_psm xpv_uppc
315 316
316 317 #
317 318 # 'TOD' modules (/platform/.../kernel/tod):
318 319 #
319 320 TOD_KMODS += xpvtod
↓ open down ↓ |
127 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX