1 | #
|
---|
2 | # CDDL HEADER START
|
---|
3 | #
|
---|
4 | # The contents of this file are subject to the terms of the
|
---|
5 | # Common Development and Distribution License (the "License").
|
---|
6 | # You may not use this file except in compliance with the License.
|
---|
7 | #
|
---|
8 | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
---|
9 | # or http://www.opensolaris.org/os/licensing.
|
---|
10 | # See the License for the specific language governing permissions
|
---|
11 | # and limitations under the License.
|
---|
12 | #
|
---|
13 | # When distributing Covered Code, include this CDDL HEADER in each
|
---|
14 | # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
---|
15 | # If applicable, add the following below this CDDL HEADER, with the
|
---|
16 | # fields enclosed by brackets "[]" replaced with your own identifying
|
---|
17 | # information: Portions Copyright [yyyy] [name of copyright owner]
|
---|
18 | #
|
---|
19 | # CDDL HEADER END
|
---|
20 | #
|
---|
21 |
|
---|
22 | #
|
---|
23 | # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
---|
24 | # Use is subject to license terms.
|
---|
25 | #
|
---|
26 | # ident "@(#)Makefile.files 1.159 08/05/26 SMI"
|
---|
27 | #
|
---|
28 | # This Makefile defines file modules in the directory uts/i86pc
|
---|
29 | # and its children. These are the source files which are i86pc
|
---|
30 | # "implementation architecture" dependent.
|
---|
31 | #
|
---|
32 |
|
---|
33 | #
|
---|
34 | # object lists
|
---|
35 | #
|
---|
36 | CORE_OBJS += \
|
---|
37 | acpi_stubs.o \
|
---|
38 | biosdisk.o \
|
---|
39 | bios_call.o \
|
---|
40 | cbe.o \
|
---|
41 | cmi.o \
|
---|
42 | cmi_hw.o \
|
---|
43 | cms.o \
|
---|
44 | confunix.o \
|
---|
45 | cpuid.o \
|
---|
46 | cpupm.o \
|
---|
47 | dis_tables.o \
|
---|
48 | ddi_impl.o \
|
---|
49 | dtrace_subr.o \
|
---|
50 | dvma.o \
|
---|
51 | fpu_subr.o \
|
---|
52 | fakebop.o \
|
---|
53 | graphics.o \
|
---|
54 | hardclk.o \
|
---|
55 | hat_i86.o \
|
---|
56 | hat_kdi.o \
|
---|
57 | hment.o \
|
---|
58 | hold_page.o \
|
---|
59 | hrtimers.o \
|
---|
60 | htable.o \
|
---|
61 | i86_mmu.o \
|
---|
62 | instr_size.o \
|
---|
63 | intr.o \
|
---|
64 | kboot_mmu.o \
|
---|
65 | kdi_subr.o \
|
---|
66 | kdi_idt.o \
|
---|
67 | kdi_idthdl.o \
|
---|
68 | kdi_asm.o \
|
---|
69 | lgrpplat.o \
|
---|
70 | mach_kdi.o \
|
---|
71 | mach_sysconfig.o \
|
---|
72 | machdep.o \
|
---|
73 | mem_config_stubs.o \
|
---|
74 | memnode.o \
|
---|
75 | microcode.o \
|
---|
76 | microfind.o \
|
---|
77 | mlsetup.o \
|
---|
78 | mp_call.o \
|
---|
79 | mp_implfuncs.o \
|
---|
80 | mp_machdep.o \
|
---|
81 | mp_pc.o \
|
---|
82 | mp_startup.o \
|
---|
83 | memscrub.o \
|
---|
84 | mpcore.o \
|
---|
85 | notes.o \
|
---|
86 | pci_bios.o \
|
---|
87 | pci_cfgspace.o \
|
---|
88 | pci_mech1.o \
|
---|
89 | pci_mech2.o \
|
---|
90 | pci_neptune.o \
|
---|
91 | pci_orion.o \
|
---|
92 | pmem.o \
|
---|
93 | ppage.o \
|
---|
94 | startup.o \
|
---|
95 | timestamp.o \
|
---|
96 | todpc_subr.o \
|
---|
97 | trap.o \
|
---|
98 | vm_machdep.o \
|
---|
99 | x_call.o
|
---|
100 |
|
---|
101 | #
|
---|
102 | # Add the SMBIOS subsystem object files directly to the list of objects
|
---|
103 | # built into unix itself; this is all common code except for smb_dev.c.
|
---|
104 | #
|
---|
105 | CORE_OBJS += $(SMBIOS_OBJS)
|
---|
106 |
|
---|
107 | #
|
---|
108 | # These get compiled twice:
|
---|
109 | # - once in the dboot (direct boot) identity mapped code
|
---|
110 | # - once for use during early startup in unix
|
---|
111 | #
|
---|
112 | BOOT_DRIVER_OBJS = \
|
---|
113 | boot_console.o \
|
---|
114 | boot_keyboard.o \
|
---|
115 | boot_keyboard_table.o \
|
---|
116 | boot_vga.o \
|
---|
117 | boot_mmu.o
|
---|
118 |
|
---|
119 | CORE_OBJS += $(BOOT_DRIVER_OBJS)
|
---|
120 |
|
---|
121 | #
|
---|
122 | # locore.o is special. It must be the first file relocated so that it
|
---|
123 | # it is relocated just where its name implies.
|
---|
124 | #
|
---|
125 | SPECIAL_OBJS_32 += \
|
---|
126 | locore.o \
|
---|
127 | fast_trap_asm.o \
|
---|
128 | interrupt.o \
|
---|
129 | syscall_asm.o
|
---|
130 |
|
---|
131 | SPECIAL_OBJS_64 += \
|
---|
132 | locore.o \
|
---|
133 | fast_trap_asm.o \
|
---|
134 | interrupt.o \
|
---|
135 | syscall_asm_amd64.o
|
---|
136 |
|
---|
137 | SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
|
---|
138 |
|
---|
139 | #
|
---|
140 | # Objects that get compiled into the identity mapped PT_LOAD section of unix
|
---|
141 | # to handle the earliest part of booting.
|
---|
142 | #
|
---|
143 | DBOOT_OBJS_32 =
|
---|
144 |
|
---|
145 | DBOOT_OBJS_64 += dboot_elfload.o
|
---|
146 |
|
---|
147 | DBOOT_OBJS += \
|
---|
148 | dboot_asm.o \
|
---|
149 | dboot_grub.o \
|
---|
150 | dboot_printf.o \
|
---|
151 | dboot_startkern.o \
|
---|
152 | memcpy.o \
|
---|
153 | memset.o \
|
---|
154 | muldiv.o \
|
---|
155 | string.o \
|
---|
156 | $(BOOT_DRIVER_OBJS) \
|
---|
157 | $(DBOOT_OBJS_$(CLASS))
|
---|
158 |
|
---|
159 | #
|
---|
160 | # driver and misc modules
|
---|
161 | #
|
---|
162 | GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
|
---|
163 | gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
|
---|
164 | ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
|
---|
165 | PCI_E_MISC_OBJS += pcie.o pcie_fault.o
|
---|
166 | PCI_E_NEXUS_OBJS += npe.o npe_misc.o
|
---|
167 | PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
|
---|
168 | PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
|
---|
169 | PCPLUSMP_OBJS += apic.o psm_common.o apic_introp.o mp_platform_common.o
|
---|
170 | VBI_OBJS += vbi.o
|
---|
171 |
|
---|
172 | BATTERY_OBJS += battery.o
|
---|
173 | include $(SRC)/common/mc/mc-amd/Makefile.mcamd
|
---|
174 | MCAMD_OBJS += \
|
---|
175 | $(MCAMD_CMN_OBJS) \
|
---|
176 | mcamd_drv.o \
|
---|
177 | mcamd_dimmcfg.o \
|
---|
178 | mcamd_subr.o \
|
---|
179 | mcamd_pcicfg.o
|
---|
180 |
|
---|
181 | CPUDRV_OBJS += cpudrv.o cpudrv_plat.o cpu_acpi.o speedstep.o pwrnow.o
|
---|
182 | PPM_OBJS += ppm_subr.o ppm.o ppm_plat.o
|
---|
183 |
|
---|
184 | ACPIPPM_OBJS += acpippm.o acpisleep.o
|
---|
185 |
|
---|
186 | ROOTNEX_OBJS += rootnex.o
|
---|
187 | TZMON_OBJS += tzmon.o
|
---|
188 | UPPC_OBJS += uppc.o psm_common.o
|
---|
189 | XSVC_OBJS += xsvc.o
|
---|
190 | PV_CMDK_OBJS += pv_cmdk.o
|
---|
191 | HVM_BOOTSTRAP_OBJS += hvm_bootstrap.o
|
---|
192 | XDF_OBJS += xdf.o
|
---|
193 | XNF_OBJS += xnf.o
|
---|
194 | XPV_OBJS += xpv_support.o xvdi.o gnttab.o evtchn.o \
|
---|
195 | xenbus_comms.o xenbus_client.o xenbus_probe.o xenbus_xs.o \
|
---|
196 | hypercall.o hypersubr.o
|
---|
197 | XPVD_OBJS += xpvd.o
|
---|
198 |
|
---|
199 | #
|
---|
200 | # Build up defines and paths.
|
---|
201 | #
|
---|
202 | ALL_DEFS += -Di86pc
|
---|
203 | INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common
|
---|
204 |
|
---|
205 | #
|
---|
206 | # Since the assym files are derived, the dependencies must be explicit for
|
---|
207 | # all files including this file. (This is only actually required in the
|
---|
208 | # instance when the .nse_depinfo file does not exist.) It may seem that
|
---|
209 | # the lint targets should also have a similar dependency, but they don't
|
---|
210 | # since only C headers are included when #defined(__lint) is true.
|
---|
211 | #
|
---|
212 |
|
---|
213 | ASSYM_DEPS += \
|
---|
214 | copy.o \
|
---|
215 | desctbls_asm.o \
|
---|
216 | ddi_i86_asm.o \
|
---|
217 | exception.o \
|
---|
218 | fast_trap_asm.o \
|
---|
219 | float.o \
|
---|
220 | i86_subr.o \
|
---|
221 | interrupt.o \
|
---|
222 | lock_prim.o \
|
---|
223 | locore.o \
|
---|
224 | mpcore.o \
|
---|
225 | sseblk.o \
|
---|
226 | swtch.o \
|
---|
227 | syscall_asm.o \
|
---|
228 | syscall_asm_amd64.o \
|
---|
229 | cpr_wakecode.o
|
---|
230 |
|
---|
231 | CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o
|
---|
232 |
|
---|
233 | $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
|
---|
234 |
|
---|
235 | ASSYM_DEPS += kdi_asm.o
|
---|