Print this page
3364 dboot should check boot archive integrity
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/i86pc/Makefile.files
+++ new/usr/src/uts/i86pc/Makefile.files
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 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 #
25 25 # Copyright (c) 2010, Intel Corporation.
26 26 #
27 27 # This Makefile defines file modules in the directory uts/i86pc
28 28 # and its children. These are the source files which are i86pc
29 29 # "implementation architecture" dependent.
30 30 #
31 31
32 32 #
33 33 # object lists
34 34 #
35 35 CORE_OBJS += \
36 36 acpi_stubs.o \
37 37 biosdisk.o \
38 38 bios_call.o \
39 39 cbe.o \
40 40 cmi.o \
41 41 cmi_hw.o \
42 42 cms.o \
43 43 confunix.o \
44 44 cpu_idle.o \
45 45 cpuid.o \
46 46 cpuid_subr.o \
47 47 cpupm.o \
48 48 cpupm_mach.o \
49 49 cpupm_amd.o \
50 50 cpupm_intel.o \
51 51 cpupm_throttle.o \
52 52 cpu_acpi.o \
53 53 dis_tables.o \
54 54 ddi_impl.o \
55 55 dtrace_subr.o \
56 56 dvma.o \
57 57 fpu_subr.o \
58 58 fakebop.o \
59 59 fastboot.o \
60 60 fb_swtch.o \
61 61 graphics.o \
62 62 hardclk.o \
63 63 hat_i86.o \
64 64 hat_kdi.o \
65 65 hment.o \
66 66 hold_page.o \
67 67 hrtimers.o \
68 68 htable.o \
69 69 hypercall.o \
70 70 hypersubr.o \
71 71 i86_mmu.o \
72 72 ibft.o \
73 73 instr_size.o \
74 74 intr.o \
75 75 kboot_mmu.o \
76 76 kdi_subr.o \
77 77 kdi_idt.o \
78 78 kdi_idthdl.o \
79 79 kdi_asm.o \
80 80 lgrpplat.o \
81 81 mach_kdi.o \
82 82 mach_sysconfig.o \
83 83 machdep.o \
84 84 mem_config.o \
85 85 mem_config_stubs.o \
86 86 mem_config_arch.o \
87 87 memlist_new.o \
88 88 memnode.o \
89 89 microcode.o \
90 90 microfind.o \
91 91 mlsetup.o \
92 92 mp_call.o \
93 93 mp_implfuncs.o \
94 94 mp_machdep.o \
95 95 mp_pc.o \
96 96 mp_startup.o \
97 97 memscrub.o \
98 98 mpcore.o \
99 99 notes.o \
100 100 pci_bios.o \
101 101 pci_cfgacc.o \
102 102 pci_cfgacc_x86.o \
103 103 pci_cfgspace.o \
104 104 pci_mech1.o \
105 105 pci_mech1_amd.o \
106 106 pci_mech2.o \
107 107 pci_neptune.o \
108 108 pci_orion.o \
109 109 pmem.o \
110 110 ppage.o \
111 111 pwrnow.o \
112 112 speedstep.o \
113 113 startup.o \
114 114 timestamp.o \
115 115 todpc_subr.o \
116 116 trap.o \
117 117 turbo.o \
118 118 vm_machdep.o \
119 119 xpv_platform.o \
120 120 x_call.o
121 121
122 122 #
123 123 # Add the SMBIOS subsystem object files directly to the list of objects
124 124 # built into unix itself; this is all common code except for smb_dev.c.
125 125 #
126 126 CORE_OBJS += $(SMBIOS_OBJS)
127 127
128 128 #
129 129 # These get compiled twice:
130 130 # - once in the dboot (direct boot) identity mapped code
131 131 # - once for use during early startup in unix
132 132 #
133 133 BOOT_DRIVER_OBJS = \
134 134 boot_console.o \
135 135 boot_keyboard.o \
136 136 boot_keyboard_table.o \
137 137 boot_vga.o \
138 138 boot_mmu.o
139 139
140 140 CORE_OBJS += $(BOOT_DRIVER_OBJS)
141 141
142 142 #
143 143 # locore.o is special. It must be the first file relocated so that it
144 144 # it is relocated just where its name implies.
145 145 #
146 146 SPECIAL_OBJS_32 += \
147 147 locore.o \
148 148 fast_trap_asm.o \
149 149 interrupt.o \
150 150 syscall_asm.o
151 151
152 152 SPECIAL_OBJS_64 += \
153 153 locore.o \
154 154 fast_trap_asm.o \
155 155 interrupt.o \
156 156 syscall_asm_amd64.o
157 157
158 158 SPECIAL_OBJS += $(SPECIAL_OBJS_$(CLASS))
159 159
160 160 #
161 161 # Objects that get compiled into the identity mapped PT_LOAD section of unix
162 162 # to handle the earliest part of booting.
163 163 #
164 164 DBOOT_OBJS_32 =
165 165
↓ open down ↓ |
165 lines elided |
↑ open up ↑ |
166 166 DBOOT_OBJS_64 += dboot_elfload.o
167 167
168 168 DBOOT_OBJS += \
169 169 dboot_asm.o \
170 170 dboot_grub.o \
171 171 dboot_printf.o \
172 172 dboot_startkern.o \
173 173 memcpy.o \
174 174 memset.o \
175 175 muldiv.o \
176 + sha1.o \
176 177 string.o \
177 178 $(BOOT_DRIVER_OBJS) \
178 179 $(DBOOT_OBJS_$(CLASS))
179 180
180 181 #
181 182 # driver and misc modules
182 183 #
183 184 GFX_PRIVATE_OBJS += gfx_private.o gfxp_pci.o gfxp_segmap.o \
184 185 gfxp_devmap.o gfxp_vgatext.o gfxp_vm.o vgasubr.o
185 186 FIPE_OBJS += fipe_drv.o fipe_pm.o
186 187 IOAT_OBJS += ioat.o ioat_rs.o ioat_ioctl.o ioat_chan.o
187 188 ISANEXUS_OBJS += isa.o dma_engine.o i8237A.o
188 189 PCIE_MISC_OBJS += pcie_acpi.o pciehpc_acpi.o pcie_x86.o
189 190 PCI_E_NEXUS_OBJS += npe.o npe_misc.o
190 191 PCI_E_NEXUS_OBJS += pci_common.o pci_kstats.o pci_tools.o
191 192 PCINEXUS_OBJS += pci.o pci_common.o pci_kstats.o pci_tools.o
192 193 PCPLUSMP_OBJS += apic.o apic_regops.o psm_common.o apic_introp.o \
193 194 mp_platform_common.o mp_platform_misc.o \
194 195 hpet_acpi.o apic_common.o apic_timer.o
195 196 APIX_OBJS += apix.o apic_regops.o psm_common.o apix_intr.o apix_utils.o \
196 197 apix_irm.o mp_platform_common.o hpet_acpi.o apic_common.o \
197 198 apic_timer.o
198 199
199 200
200 201 ACPI_DRV_OBJS += acpi_drv.o acpi_video.o
201 202 ACPINEX_OBJS += acpinex_drv.o acpinex_event.o
202 203
203 204 CPUDRV_OBJS += \
204 205 cpudrv.o \
205 206 cpudrv_mach.o
206 207
207 208 PPM_OBJS += ppm_subr.o ppm.o ppm_plat.o
208 209
209 210 ACPIPPM_OBJS += acpippm.o acpisleep.o
210 211 ACPIDEV_OBJS += acpidev_drv.o \
211 212 acpidev_scope.o acpidev_device.o \
212 213 acpidev_container.o \
213 214 acpidev_cpu.o \
214 215 acpidev_dr.o \
215 216 acpidev_memory.o \
216 217 acpidev_pci.o \
217 218 acpidev_resource.o \
218 219 acpidev_util.o
219 220
220 221 DRMACH_ACPI_OBJS += drmach_acpi.o dr_util.o drmach_err.o
221 222
222 223 DR_OBJS += dr.o dr_cpu.o dr_err.o dr_io.o dr_mem_acpi.o dr_quiesce.o dr_util.o
223 224
224 225 ROOTNEX_OBJS += rootnex.o immu.o immu_dmar.o immu_dvma.o \
225 226 immu_intrmap.o immu_qinv.o immu_regs.o
226 227
227 228 TZMON_OBJS += tzmon.o
228 229 UPPC_OBJS += uppc.o psm_common.o
229 230 XSVC_OBJS += xsvc.o
230 231 AMD_IOMMU_OBJS += amd_iommu.o amd_iommu_impl.o amd_iommu_acpi.o \
231 232 amd_iommu_cmd.o amd_iommu_log.o amd_iommu_page_tables.o
232 233
233 234 #
234 235 # Build up defines and paths.
235 236 #
236 237 ALL_DEFS += -Di86pc
237 238 INC_PATH += -I$(UTSBASE)/i86pc -I$(SRC)/common
238 239 INC_PATH += -I$(UTSBASE)/i86xpv -I$(UTSBASE)/common/xen
239 240
240 241 #
241 242 # Since the assym files are derived, the dependencies must be explicit for
242 243 # all files including this file. (This is only actually required in the
243 244 # instance when the .nse_depinfo file does not exist.) It may seem that
244 245 # the lint targets should also have a similar dependency, but they don't
245 246 # since only C headers are included when #defined(__lint) is true.
246 247 #
247 248
248 249 ASSYM_DEPS += \
249 250 copy.o \
250 251 desctbls_asm.o \
251 252 ddi_i86_asm.o \
252 253 exception.o \
253 254 fast_trap_asm.o \
254 255 float.o \
255 256 i86_subr.o \
256 257 interrupt.o \
257 258 lock_prim.o \
258 259 locore.o \
259 260 mpcore.o \
260 261 sseblk.o \
261 262 swtch.o \
262 263 syscall_asm.o \
263 264 syscall_asm_amd64.o \
264 265 cpr_wakecode.o
265 266
266 267 CPR_IMPL_OBJS = cpr_impl.o cpr_wakecode.o
267 268
268 269 $(KDI_ASSYM_DEPS:%=$(OBJS_DIR)/%): $(DSF_DIR)/$(OBJS_DIR)/kdi_assym.h
269 270
270 271 ASSYM_DEPS += kdi_asm.o
↓ open down ↓ |
85 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX