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