Print this page
NEX-16819 loader UEFI support
Includes work by Toomas Soome <tsoome@me.com>
Upstream commits:
loader: pxe receive cleanup
9475 libefi: Do not return only if ReceiveFilter
installboot: should support efi system partition
8931 boot1.efi: scan all display modes rather than
loader: spinconsole updates
loader: gfx experiment to try GOP Blt() function.
sha1 build test
loader: add sha1 hash calculation
common/sha1: update for loader build
loader: biosdisk rework
uts: 32-bit kernel FB needs mapping in low memory
uts: add diag-device
uts: boot console mirror with diag-device
uts: enable very early console on ttya
kmdb: add diag-device as input/output device
uts: test VGA memory exclusion from mapping
uts: clear boot mapping and protect boot pages test
uts: add dboot map debug printf
uts: need to release FB pages in release_bootstrap()
uts: add screenmap ioctl
uts: update sys/queue.h
loader: add illumos uts/common to include path
loader: tem/gfx font cleanup
loader: vbe checks
uts: gfx_private set KD_TEXT when KD_RESETTEXT is
uts: gfx 8-bit update
loader: gfx 8-bit fix
loader: always set media size from partition.
uts: MB2 support for 32-bit kernel
loader: x86 should have tem 80x25
uts: x86 should have tem 80x25
uts: font update
loader: font update
uts: tem attributes
loader: tem.c comment added
uts: use font module
loader: add font module
loader: build rules for new font setup
uts: gfx_private update for new font structure
uts: early boot update for new font structure
uts: font update
uts: font build rules update for new fonts
uts: tem update to new font structure
loader: module.c needs to include tem_impl.h
uts: gfx_private 8x16 font rework
uts: make font_lookup public
loader: font rework
uts: font rework
9259 libefi: efi_alloc_and_read should check for PMBR
uts: tem utf-8 support
loader: implement tem utf-8 support
loader: tem should be able to display UTF-8
7784 uts: console input should support utf-8
7796 uts: ldterm default to utf-8
uts: do not reset serial console
uts: set up colors even if tem is not console
uts: add type for early boot properties
uts: gfx_private experiment with drm and vga
uts: gfx_private should use setmode drm callback.
uts: identify FB types and set up gfx_private based
loader: replace gop and vesa with framebuffer
uts: boot needs simple tem to support mdb
uts: boot_keyboard should emit esc sequences for
uts: gfx_private FB showuld be written by line
kmdb: set terminal window size
uts: gfx_private needs to keep track of early boot FB
pnglite: move pnglite to usr/src/common
loader: gfx_fb
ficl-sys: add gfx primitives
loader: add illumos.png logo
ficl: add fb-putimage
loader: add png support
loader: add alpha blending for gfx_fb
loader: use term-drawrect for menu frame
ficl: add simple gfx words
uts: provide fb_info via fbgattr dev_specific array.
uts: gfx_private add alpha blending
uts: update sys/ascii.h
uts: tem OSC support (incomplete)
uts: implement env module support and use data from
uts: tem get colors from early boot data
loader: use crc32 from libstand (libz)
loader: optimize for size
loader: pass tem info to the environment
loader: import tem for loader console
loader: UEFI loader needs to set ISADIR based on
loader: need UEFI32 support
8918 loader.efi: add vesa edid support
uts: tem_safe_pix_clear_prom_output() should only
uts: tem_safe_pix_clear_entire_screen() should use
uts: tem_safe_check_first_time() should query cursor
uts: tem implement cls callback & visual_io v4
uts: gfx_vgatext use block cursor for vgatext
uts: gfx_private implement cls callback & visual_io
uts: gfx_private bitmap framebuffer implementation
uts: early start frame buffer console support
uts: font functions should check the input char
uts: font rendering should support 16/24/32bit depths
uts: use smallest font as fallback default.
uts: update terminal dimensions based on selected
7834 uts: vgatext should use gfx_private
uts: add spacing property to 8859-1.bdf
terminfo: add underline for sun-color
terminfo: sun-color has 16 colors
uts: add font load callback type
loader: do not repeat int13 calls with error 0x20 and
8905 loader: add skein/edonr support
8904 common/crypto: make skein and edonr loader
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Revert "NEX-16819 loader UEFI support"
This reverts commit ec06b9fc617b99234e538bf2e7e4d02a24993e0c.
Reverting due to failures in the zfs-tests and the sharefs-tests
NEX-16819 loader UEFI support
Includes work by Toomas Soome <tsoome@me.com>
Upstream commits:
loader: pxe receive cleanup
9475 libefi: Do not return only if ReceiveFilter
installboot: should support efi system partition
8931 boot1.efi: scan all display modes rather than
loader: spinconsole updates
loader: gfx experiment to try GOP Blt() function.
sha1 build test
loader: add sha1 hash calculation
common/sha1: update for loader build
loader: biosdisk rework
uts: 32-bit kernel FB needs mapping in low memory
uts: add diag-device
uts: boot console mirror with diag-device
uts: enable very early console on ttya
kmdb: add diag-device as input/output device
uts: test VGA memory exclusion from mapping
uts: clear boot mapping and protect boot pages test
uts: add dboot map debug printf
uts: need to release FB pages in release_bootstrap()
uts: add screenmap ioctl
uts: update sys/queue.h
loader: add illumos uts/common to include path
loader: tem/gfx font cleanup
loader: vbe checks
uts: gfx_private set KD_TEXT when KD_RESETTEXT is
uts: gfx 8-bit update
loader: gfx 8-bit fix
loader: always set media size from partition.
uts: MB2 support for 32-bit kernel
loader: x86 should have tem 80x25
uts: x86 should have tem 80x25
uts: font update
loader: font update
uts: tem attributes
loader: tem.c comment added
uts: use font module
loader: add font module
loader: build rules for new font setup
uts: gfx_private update for new font structure
uts: early boot update for new font structure
uts: font update
uts: font build rules update for new fonts
uts: tem update to new font structure
loader: module.c needs to include tem_impl.h
uts: gfx_private 8x16 font rework
uts: make font_lookup public
loader: font rework
uts: font rework
libefi: efi_alloc_and_read should check for PMBR
uts: tem utf-8 support
loader: implement tem utf-8 support
loader: tem should be able to display UTF-8
7784 uts: console input should support utf-8
7796 uts: ldterm default to utf-8
uts: do not reset serial console
uts: set up colors even if tem is not console
uts: add type for early boot properties
uts: gfx_private experiment with drm and vga
uts: gfx_private should use setmode drm callback.
uts: identify FB types and set up gfx_private based
loader: replace gop and vesa with framebuffer
uts: boot needs simple tem to support mdb
uts: boot_keyboard should emit esc sequences for
uts: gfx_private FB showuld be written by line
kmdb: set terminal window size
uts: gfx_private needs to keep track of early boot FB
pnglite: move pnglite to usr/src/common
loader: gfx_fb
ficl-sys: add gfx primitives
loader: add illumos.png logo
ficl: add fb-putimage
loader: add png support
loader: add alpha blending for gfx_fb
loader: use term-drawrect for menu frame
ficl: add simple gfx words
uts: provide fb_info via fbgattr dev_specific array.
uts: gfx_private add alpha blending
uts: update sys/ascii.h
uts: tem OSC support (incomplete)
uts: implement env module support and use data from
uts: tem get colors from early boot data
loader: use crc32 from libstand (libz)
loader: optimize for size
loader: pass tem info to the environment
loader: import tem for loader console
loader: UEFI loader needs to set ISADIR based on
loader: need UEFI32 support
8918 loader.efi: add vesa edid support
uts: tem_safe_pix_clear_prom_output() should only
uts: tem_safe_pix_clear_entire_screen() should use
uts: tem_safe_check_first_time() should query cursor
uts: tem implement cls callback & visual_io v4
uts: gfx_vgatext use block cursor for vgatext
uts: gfx_private implement cls callback & visual_io
uts: gfx_private bitmap framebuffer implementation
uts: early start frame buffer console support
uts: font functions should check the input char
uts: font rendering should support 16/24/32bit depths
uts: use smallest font as fallback default.
uts: update terminal dimensions based on selected
7834 uts: vgatext should use gfx_private
uts: add spacing property to 8859-1.bdf
terminfo: add underline for sun-color
terminfo: sun-color has 16 colors
uts: add font load callback type
loader: do not repeat int13 calls with error 0x20 and
8905 loader: add skein/edonr support
8904 common/crypto: make skein and edonr loader
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/uts/i86pc/Makefile.rules
+++ new/usr/src/uts/i86pc/Makefile.rules
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 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
25 25 #
26 26
27 27 # This Makefile defines the build rules for 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 # The following two-level ordering must be maintained in this file.
32 32 # Lines are sorted first in order of decreasing specificity based on
33 33 # the first directory component. That is, i86pc rules come before
34 34 # intel rules come before common rules.
35 35 #
36 36 # Lines whose initial directory components are equal are sorted
37 37 # alphabetically by the remaining components.
38 38
39 39 #
40 40 # Section 1a: C object build rules
41 41 #
42 42 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/conf/%.c
43 43 $(COMPILE.c) -o $@ $<
44 44 $(CTFCONVERT_O)
45 45
46 46 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
47 47 $(COMPILE.c) -o $@ $<
48 48 $(CTFCONVERT_O)
49 49
50 50 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
51 51 $(COMPILE.c) -o $@ $<
52 52 $(CTFCONVERT_O)
53 53
54 54 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
55 55 $(COMPILE.c) -o $@ $<
56 56 $(CTFCONVERT_O)
57 57
58 58 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
59 59 $(COMPILE.c) -o $@ $<
60 60 $(CTFCONVERT_O)
61 61
62 62 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/%.c
63 63 $(COMPILE.c) -o $@ $<
64 64 $(CTFCONVERT_O)
65 65
66 66 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi_drv/%.c
67 67 $(COMPILE.c) -o $@ $<
68 68 $(CTFCONVERT_O)
69 69
70 70 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/fipe/%.c
71 71 $(COMPILE.c) -o $@ $<
72 72 $(CTFCONVERT_O)
73 73
74 74 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
75 75 $(COMPILE.c) -o $@ $<
76 76 $(CTFCONVERT_O)
77 77
78 78 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
79 79 $(COMPILE.c) -o $@ $<
80 80 $(CTFCONVERT_O)
81 81
82 82 SBD_IOCTL = $(UTSBASE)/i86pc/sys/sbd_ioctl.h
83 83 DRMACH_IO = $(UTSBASE)/i86pc/io/acpi/drmach_acpi
84 84 DRMACH_GENERR = $(DRMACH_IO)/sbdgenerr
85 85 DR_IO = $(UTSBASE)/i86pc/io/dr
86 86 DR_GENERR = $(DR_IO)/sbdgenerr
87 87
88 88 $(DRMACH_GENERR): $(DR_IO)/sbdgenerr.pl
89 89 $(RM) $@
90 90 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
91 91 $(CHMOD) +x $@
92 92
93 93 $(DRMACH_IO)/drmach_err.c: $(DRMACH_GENERR) $(SBD_IOCTL)
94 94 $(RM) $@
95 95 $(DRMACH_GENERR) EX86 < $(SBD_IOCTL) > $(DRMACH_IO)/drmach_err.c
96 96
97 97 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
98 98 $(COMPILE.c) -o $@ $<
99 99 $(CTFCONVERT_O)
100 100
101 101 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/amd_iommu/%.c
102 102 $(COMPILE.c) -o $@ $<
103 103 $(CTFCONVERT_O)
104 104
105 105 $(DR_GENERR): $(DR_IO)/sbdgenerr.pl
106 106 $(RM) $@
107 107 $(CAT) $(DR_IO)/sbdgenerr.pl > $@
108 108 $(CHMOD) +x $@
109 109
110 110 $(DR_IO)/dr_err.c: $(DR_GENERR) $(SBD_IOCTL)
111 111 $(RM) $@
112 112 $(DR_GENERR) ESBD < $(SBD_IOCTL) > $(DR_IO)/dr_err.c
113 113
114 114 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/dr/%.c
115 115 $(COMPILE.c) -o $@ $<
116 116 $(CTFCONVERT_O)
117 117
118 118 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ioat/%.c
119 119 $(COMPILE.c) -o $@ $<
120 120 $(CTFCONVERT_O)
121 121
122 122 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pci/%.c
123 123 $(COMPILE.c) -o $@ $<
124 124 $(CTFCONVERT_O)
125 125
126 126 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pciex/%.c
127 127 $(COMPILE.c) -o $@ $<
128 128 $(CTFCONVERT_O)
129 129
130 130 $(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/pciex/hotplug/%.c
131 131 $(COMPILE.c) -o $@ $<
132 132 $(CTFCONVERT_O)
133 133
134 134 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.c
135 135 $(COMPILE.c) -o $@ $<
136 136 $(CTFCONVERT_O)
137 137
138 138 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/pcplusmp/%.s
139 139 $(COMPILE.s) -o $@ $<
140 140
141 141 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/apix/%.c
142 142 $(COMPILE.c) -o $@ $<
143 143 $(CTFCONVERT_O)
144 144
145 145 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.c
146 146 $(COMPILE.c) -o $@ $<
147 147 $(CTFCONVERT_O)
148 148
149 149 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/ppm/%.s
150 150 $(COMPILE.s) -o $@ $<
151 151
152 152 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.c
153 153 $(COMPILE.c) -o $@ $<
154 154 $(CTFCONVERT_O)
155 155
156 156 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/psm/%.s
157 157 $(COMPILE.s) -o $@ $<
158 158
159 159 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/tzmon/%.c
160 160 $(COMPILE.c) -o $@ $<
161 161 $(CTFCONVERT_O)
162 162
163 163 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/ml/%.s
164 164 $(COMPILE.s) -o $@ $<
165 165
166 166 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/%.c
167 167 $(COMPILE.c) -_gcc=-fno-stack-protector -o $@ $<
168 168 $(CTFCONVERT_O)
169 169
170 170 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/os/cpupm/%.c
171 171 $(COMPILE.c) -o $@ $<
172 172 $(CTFCONVERT_O)
173 173
174 174 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
175 175 $(COMPILE.c) -o $@ $<
176 176 $(CTFCONVERT_O)
177 177
178 178 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/vm/%.c
179 179 $(COMPILE.c) -o $@ $<
180 180 $(CTFCONVERT_O)
181 181
182 182 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/%.c
183 183 $(COMPILE.c) -o $@ $<
184 184 $(CTFCONVERT_O)
185 185
186 186 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/ppm/%.c
187 187 $(COMPILE.c) -o $@ $<
188 188 $(CTFCONVERT_O)
189 189
190 190 $(OBJS_DIR)/%.o: $(UTSBASE)/common/io/pciex/%.c
191 191 $(COMPILE.c) -o $@ $<
192 192 $(CTFCONVERT_O)
193 193
194 194 $(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c
195 195 $(COMPILE.c) -o $@ $<
196 196 $(CTFCONVERT_O)
197 197
198 198 $(OBJS_DIR)/%.o: $(SRC)/common/dis/i386/%.c
199 199 $(COMPILE.c) -o $@ $<
200 200 $(CTFCONVERT_O)
201 201
202 202 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/gfx_private/%.c
203 203 $(COMPILE.c) -o $@ $<
204 204 $(CTFCONVERT_O)
205 205
206 206 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/io/xsvc/%.c
207 207 $(COMPILE.c) -o $@ $<
208 208 $(CTFCONVERT_O)
209 209
210 210 $(OBJS_DIR)/%.o: $(UTSBASE)/common/xen/os/%.c
211 211 $(COMPILE.c) -o $@ $<
212 212 $(CTFCONVERT_O)
213 213
214 214 $(OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c
215 215 $(COMPILE.c) -o $@ $<
216 216 $(CTFCONVERT_O)
217 217
218 218 #
219 219 # dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr
220 220 #
221 221 DBOOT_OBJS_DIR = dboot/$(OBJS_DIR)
222 222 DBOOT_MACH_32 = -D_BOOT_TARGET_i386
223 223 DBOOT_MACH_64 = -D_BOOT_TARGET_amd64
224 224 DBOOT_DEFS = -D_BOOT $(DBOOT_MACH_$(CLASS))
225 225 DBOOT_DEFS += -D_MACHDEP -U_KERNEL -D_I32LPx
226 226 DBOOT_FLAGS = $(CCVERBOSE) $(CSTD) $(CERRWARN) $(CCNOAUTOINLINE)
227 227
228 228 DBOOT_CC_INCL = -I$(SRC)/common -I$(SRC)/common/util $(INCLUDE_PATH)
229 229 DBOOT_AS_INCL = $(AS_INC_PATH)
230 230
231 231 DBOOT_AS = $(ONBLD_TOOLS)/bin/$(MACH)/aw
232 232
233 233 DBOOT_LINTS_DIR = $(DBOOT_OBJS_DIR)
234 234 DBOOT_LINTFLAGS_i86pc = $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32)
235 235
236 236 DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \
237 237 $(CPPFLAGS) $(DBOOT_DEFS)
238 238 DBOOT_LOCAL_LINTFLAGS = -c -dirout=$(DBOOT_LINTS_DIR) -I$(SRC)/common \
239 239 $(DBOOT_LINTFLAGS) $(DBOOT_LINTTAGS)
240 240
241 241 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/boot/%.c
242 242 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
|
↓ open down ↓ |
242 lines elided |
↑ open up ↑ |
243 243
244 244 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.c
245 245 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
246 246
247 247 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/%.s
248 248 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
249 249
250 250 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/common/font/%.c
251 251 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
252 252
253 -$(DBOOT_OBJS_DIR)/$(VGATEXT_FONT).c: \
254 - $(VGATEXT_FONT_DIR)/$(VGATEXT_FONT_SRC).bdf \
255 - $(VGATEXT_FONT_DIR)/bdf_to_c.awk
256 - $(AWK) -f $(VGATEXT_FONT_DIR)/bdf_to_c.awk \
257 - $(VGATEXT_FONT_DIR)/$(VGATEXT_FONT_SRC).bdf > $@
253 +$(DBOOT_OBJS_DIR)/$(FONT).c: $(FONT_DIR)/$(FONT_SRC).bdf
254 + $(VTFONTCVT) -f source -o $@ $(FONT_DIR)/$(FONT_SRC).bdf
258 255
259 256 $(DBOOT_OBJS_DIR)/%.o: $(DBOOT_OBJS_DIR)/%.c
260 257 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
261 258
262 259 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/crypto/sha1/%.c
263 260 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
264 261
265 262 $(DBOOT_OBJS_DIR)/%.o: $(DBOOT_OBJS_DIR)/%.c
266 263 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
267 264
268 265 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/%.c
269 266 $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
270 267
271 268 $(DBOOT_OBJS_DIR)/%.o: $(COMMONBASE)/util/i386/%.s
272 269 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
273 270
274 271 $(DBOOT_OBJS_DIR)/%.o: $(UTSBASE)/i86pc/dboot/%.s
275 272 $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
276 273
277 274 #
278 275 # Stuff to build bios_call.o for the kernel.
279 276 #
280 277 MAPFILE_BIOS = $(UTSBASE)/i86pc/conf/Mapfile.bios
281 278 $(OBJS_DIR)/bios_call.o: $(UTSBASE)/i86pc/ml/bios_call_src.s
282 279 $(COMPILE.s) -o $(OBJS_DIR)/bios_call_src.o \
283 280 $(UTSBASE)/i86pc/ml/bios_call_src.s
284 281 $(LD) -dn -M $(MAPFILE_BIOS) \
285 282 -o $(OBJS_DIR)/bios_call_src $(OBJS_DIR)/bios_call_src.o
286 283 @echo " .data" > $(OBJS_DIR)/bios_call.s
287 284 @echo " .globl bios_image" >> $(OBJS_DIR)/bios_call.s
288 285 @echo "bios_image:" >> $(OBJS_DIR)/bios_call.s
289 286 $(ELFEXTRACT) $(OBJS_DIR)/bios_call_src >> $(OBJS_DIR)/bios_call.s
290 287 @echo " .align 4" >> $(OBJS_DIR)/bios_call.s
291 288 @echo " .globl bios_size" >> $(OBJS_DIR)/bios_call.s
292 289 @echo "bios_size:" >> $(OBJS_DIR)/bios_call.s
293 290 @echo " .long . - bios_image" >> $(OBJS_DIR)/bios_call.s
294 291 $(COMPILE.s) -o $@ $(OBJS_DIR)/bios_call.s
295 292
296 293 #
297 294 # Stuff to build fb_swtch.o for the kernel.
298 295 #
299 296 MAPFILE_FBSWTCH = $(UTSBASE)/i86pc/conf/Mapfile.fb_swtch
300 297 $(OBJS_DIR)/fb_swtch.o: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
301 298 $(COMPILE.s) -o $(OBJS_DIR)/fb_swtch_src.o \
302 299 $(UTSBASE)/i86pc/ml/fb_swtch_src.s
303 300 $(LD) -dn -M $(MAPFILE_FBSWTCH) \
304 301 -o $(OBJS_DIR)/fb_swtch_src $(OBJS_DIR)/fb_swtch_src.o
305 302 @echo " .data" > $(OBJS_DIR)/fb_swtch.s
306 303 @echo " .globl fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
307 304 @echo "fb_swtch_image:" >> $(OBJS_DIR)/fb_swtch.s
308 305 $(ELFEXTRACT) $(OBJS_DIR)/fb_swtch_src >> $(OBJS_DIR)/fb_swtch.s
309 306 @echo " .align 4" >> $(OBJS_DIR)/fb_swtch.s
310 307 @echo " .globl fb_swtch_size" >> $(OBJS_DIR)/fb_swtch.s
311 308 @echo "fb_swtch_size:" >> $(OBJS_DIR)/fb_swtch.s
312 309 @echo " .long . - fb_swtch_image" >> $(OBJS_DIR)/fb_swtch.s
313 310 $(COMPILE.s) -o $@ $(OBJS_DIR)/fb_swtch.s
314 311
315 312 # ridiculous contortions ---
316 313 ATOMIC_SUBDIR_32 = i386
317 314 ATOMIC_SUBDIR_64 = amd64
318 315 ATOMIC_SUBDIR = $(ATOMIC_SUBDIR_$(CLASS))
319 316
320 317 $(OBJS_DIR)/%.o: $(SRC)/common/atomic/$(ATOMIC_SUBDIR)/%.s
321 318 $(COMPILE.s) -o $@ $<
322 319
323 320 #
324 321 # dtrace stubs
325 322 #
326 323
327 324 $(OBJS_DIR)/dtracestubs.s: $(UNIX_O) $(LIBS)
328 325 $(NM) -u $(UNIX_O) $(LIBS) | $(GREP) __dtrace_probe_ | $(SORT) | \
329 326 $(UNIQ) | $(AWK) '{ \
330 327 printf("\t.globl %s\n\t.type %s,@function\n%s:\n", \
331 328 $$1, $$1, $$1); }' > $(OBJS_DIR)/dtracestubs.s
332 329
333 330 $(DTRACESTUBS): $(DTRACESTUBS_O)
334 331 $(BUILD.SO) $(DTRACESTUBS_O)
335 332
336 333 #
337 334 # Section 1b: Lint `object' build rules
338 335 #
339 336 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/conf/%.c
340 337 @($(LHEAD) $(LINT.c) $< $(LTAIL))
341 338
342 339 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/amd_opteron/%.c
343 340 @($(LHEAD) $(LINT.c) $< $(LTAIL))
344 341
345 342 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/authenticamd/%.c
346 343 @($(LHEAD) $(LINT.c) $< $(LTAIL))
347 344
348 345 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/generic_cpu/%.c
349 346 @($(LHEAD) $(LINT.c) $< $(LTAIL))
350 347
351 348 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/cpu/genuineintel/%.c
352 349 @($(LHEAD) $(LINT.c) $< $(LTAIL))
353 350
354 351 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/%.c
355 352 @($(LHEAD) $(LINT.c) $< $(LTAIL))
356 353
357 354 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi_drv/%.c
358 355 @($(LHEAD) $(LINT.c) $< $(LTAIL))
359 356
360 357 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/fipe/%.c
361 358 @($(LHEAD) $(LINT.c) $< $(LTAIL))
362 359
363 360 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpidev/%.c
364 361 @($(LHEAD) $(LINT.c) $< $(LTAIL))
365 362
366 363 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/acpinex/%.c
367 364 @($(LHEAD) $(LINT.c) $< $(LTAIL))
368 365
369 366 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/acpi/drmach_acpi/%.c
370 367 @($(LHEAD) $(LINT.c) $< $(LTAIL))
371 368
372 369 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/amd_iommu/%.c
373 370 @($(LHEAD) $(LINT.c) $< $(LTAIL))
374 371
375 372 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/dr/%.c
376 373 @($(LHEAD) $(LINT.c) $< $(LTAIL))
377 374
378 375 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ioat/%.c
379 376 @($(LHEAD) $(LINT.c) $< $(LTAIL))
380 377
381 378 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pci/%.c
382 379 @($(LHEAD) $(LINT.c) $< $(LTAIL))
383 380
384 381 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pciex/%.c
385 382 @($(LHEAD) $(LINT.c) $< $(LTAIL))
386 383
387 384 $(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/pciex/hotplug/%.c
388 385 @($(LHEAD) $(LINT.c) $< $(LTAIL))
389 386
390 387 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.c
391 388 @($(LHEAD) $(LINT.c) $< $(LTAIL))
392 389
393 390 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/pcplusmp/%.s
394 391 @($(LHEAD) $(LINT.s) $< $(LTAIL))
395 392
396 393 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.c
397 394 @($(LHEAD) $(LINT.c) $< $(LTAIL))
398 395
399 396 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/apix/%.s
400 397 @($(LHEAD) $(LINT.s) $< $(LTAIL))
401 398
402 399 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.c
403 400 @($(LHEAD) $(LINT.c) $< $(LTAIL))
404 401
405 402 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/ppm/%.s
406 403 @($(LHEAD) $(LINT.s) $< $(LTAIL))
407 404
408 405 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.c
409 406 @($(LHEAD) $(LINT.c) $< $(LTAIL))
410 407
411 408 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/psm/%.s
412 409 @($(LHEAD) $(LINT.s) $< $(LTAIL))
413 410
414 411 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/tzmon/%.c
415 412 @($(LHEAD) $(LINT.c) $< $(LTAIL))
416 413
417 414 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/ml/%.s
418 415 @($(LHEAD) $(LINT.s) $< $(LTAIL))
419 416
420 417 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/%.c
421 418 @($(LHEAD) $(LINT.c) $< $(LTAIL))
422 419
423 420 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/os/cpupm/%.c
424 421 @($(LHEAD) $(LINT.c) $< $(LTAIL))
425 422
426 423 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
427 424 @($(LHEAD) $(LINT.c) $< $(LTAIL))
428 425
429 426 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
430 427 @($(LHEAD) $(LINT.c) $< $(LTAIL))
431 428
432 429 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/vm/%.c
433 430 @($(LHEAD) $(LINT.c) $< $(LTAIL))
434 431
435 432 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/font/%.c
436 433 @($(LHEAD) $(LINT.c) $< $(LTAIL))
437 434
438 435 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/%.c
439 436 @($(LHEAD) $(LINT.c) $< $(LTAIL))
440 437
441 438 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/ppm/%.c
442 439 @($(LHEAD) $(LINT.c) $< $(LTAIL))
443 440
444 441 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/pciex/%.c
445 442 @($(LHEAD) $(LINT.c) $< $(LTAIL))
446 443
447 444 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c
448 445 @($(LHEAD) $(LINT.c) $< $(LTAIL))
449 446
450 447 $(LINTS_DIR)/%.ln: $(SRC)/common/dis/i386/%.c
451 448 @($(LHEAD) $(LINT.c) $< $(LTAIL))
452 449
453 450 $(LINTS_DIR)/%.ln: $(SRC)/common/atomic/%.c
454 451 @($(LHEAD) $(LINT.c) $< $(LTAIL))
455 452
456 453 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/gfx_private/%.c
457 454 @($(LHEAD) $(LINT.c) $< $(LTAIL))
458 455
459 456 $(LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/io/xsvc/%.c
460 457 @($(LHEAD) $(LINT.c) $< $(LTAIL))
461 458
462 459 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/xen/os/%.c
463 460 @($(LHEAD) $(LINT.c) $< $(LTAIL))
464 461
465 462 #
466 463 # bios call has a funky name change while building
467 464 #
468 465 $(LINTS_DIR)/bios_call.ln: $(UTSBASE)/i86pc/ml/bios_call_src.s
469 466 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/bios_call_src.s $(LTAIL))
470 467 @mv $(LINTS_DIR)/bios_call_src.ln $(LINTS_DIR)/bios_call.ln
471 468
472 469 #
473 470 # So does fb_swtch
474 471 #
475 472 $(LINTS_DIR)/fb_swtch.ln: $(UTSBASE)/i86pc/ml/fb_swtch_src.s
476 473 @($(LHEAD) $(LINT.s) $(UTSBASE)/i86pc/ml/fb_swtch_src.s $(LTAIL))
477 474 @mv $(LINTS_DIR)/fb_swtch_src.ln $(LINTS_DIR)/fb_swtch.ln
478 475
479 476 #
480 477 # dboot always compiles in 32-bit mode, so force lint to be 32-bit mode too.
481 478 #
482 479 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.c
483 480 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
484 481
485 482 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/dboot/%.s
486 483 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
487 484
488 485 $(DBOOT_LINTS_DIR)/%.ln: $(DBOOT_LINTS_DIR)/%.c
489 486 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
490 487
491 488 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/common/font/%.c
492 489 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
493 490
494 491 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/sha1/%.c
495 492 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
496 493
497 494 $(DBOOT_LINTS_DIR)/%.ln: $(UTSBASE)/i86pc/boot/%.c
498 495 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
499 496
500 497 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/%.c
501 498 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
502 499
503 500 $(DBOOT_LINTS_DIR)/%.ln: $(COMMONBASE)/util/i386/%.s
504 501 @($(LHEAD) $(DBOOT_LINT) $(DBOOT_LOCAL_LINTFLAGS) $< $(LTAIL))
|
↓ open down ↓ |
237 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX