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