1 | # $Id: Makefile.kmk 60024 2016-03-15 08:59:49Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # VirtualBox Validation Kit - Bootsector Kit v3
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2016 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | # The contents of this file may alternatively be used under the terms
|
---|
18 | # of the Common Development and Distribution License Version 1.0
|
---|
19 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | # CDDL are applicable instead of those of the GPL.
|
---|
22 | #
|
---|
23 | # You may elect to license modified versions of this file under the
|
---|
24 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | #
|
---|
26 |
|
---|
27 | SUB_DEPTH = ../../../../..
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 | # Boot Sector post-link tool (used via the parent Config.kmk).
|
---|
33 | BLDPROGS += VBoxBs3Linker
|
---|
34 | VBoxBs3Linker_TEMPLATE = VBoxBldProg
|
---|
35 | VBoxBs3Linker_SOURCES = $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3Linker.cpp
|
---|
36 |
|
---|
37 |
|
---|
38 | # 64-bit relocation conversion tool (used via the parent Config.kmk).
|
---|
39 | BLDPROGS += VBoxBs3ObjConverter
|
---|
40 | VBoxBs3ObjConverter_TEMPLATE = VBoxBldProg
|
---|
41 | VBoxBs3ObjConverter_SOURCES = $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3ObjConverter.cpp
|
---|
42 |
|
---|
43 |
|
---|
44 | # The boot sector.
|
---|
45 | MISCBINS += bs3-bootsector
|
---|
46 | bs3-bootsector_TEMPLATE = VBoxBS3KitBS
|
---|
47 | bs3-bootsector_SOURCES = bs3-bootsector.asm
|
---|
48 |
|
---|
49 |
|
---|
50 | #
|
---|
51 | # Common sources to be compiled into _p16, _p32 and _p64 versions.
|
---|
52 | #
|
---|
53 | VBOX_BS3KIT_COMMON_SOURCES = \
|
---|
54 | bs3-cmn-A20Disable.asm \
|
---|
55 | bs3-cmn-A20Enable.asm \
|
---|
56 | bs3-cmn-KbdRead.asm \
|
---|
57 | bs3-cmn-KbdWait.asm \
|
---|
58 | bs3-cmn-KbdWrite.asm \
|
---|
59 | bs3-cmn-Shutdown.asm \
|
---|
60 | bs3-cmn-Panic.asm \
|
---|
61 | bs3-cmn-PrintChr.asm \
|
---|
62 | bs3-cmn-Printf.c \
|
---|
63 | bs3-cmn-PrintU32.asm \
|
---|
64 | bs3-cmn-PrintX32.asm \
|
---|
65 | bs3-cmn-PrintStr.c \
|
---|
66 | bs3-cmn-PrintStrColonSpaces.asm \
|
---|
67 | bs3-cmn-PrintStrSpacesColonSpace.c \
|
---|
68 | bs3-cmn-StrFormatV.c \
|
---|
69 | bs3-cmn-StrPrintf.c \
|
---|
70 | bs3-cmn-StrLen.c \
|
---|
71 | bs3-cmn-StrNLen.c \
|
---|
72 | bs3-cmn-StrCpy.c \
|
---|
73 | bs3-cmn-MemCpy.c \
|
---|
74 | bs3-cmn-MemPCpy.c \
|
---|
75 | bs3-cmn-MemMove.c \
|
---|
76 | bs3-cmn-MemZero.asm \
|
---|
77 | bs3-cmn-MemAlloc.c \
|
---|
78 | bs3-cmn-MemAllocZ.c \
|
---|
79 | bs3-cmn-MemFree.c \
|
---|
80 | bs3-cmn-PagingData.c \
|
---|
81 | bs3-cmn-PagingInitRootForPP.c \
|
---|
82 | bs3-cmn-PagingInitRootForPAE.c \
|
---|
83 | bs3-cmn-PagingInitRootForLM.c \
|
---|
84 | bs3-cmn-RegCtxRestore.asm \
|
---|
85 | bs3-cmn-RegCtxConvertToRingX.c \
|
---|
86 | bs3-cmn-RegCtxPrint.c \
|
---|
87 | bs3-cmn-SelFar32ToFlat32.c \
|
---|
88 | bs3-cmn-SelProtFar32ToFlat32.c \
|
---|
89 | bs3-cmn-SlabInit.c \
|
---|
90 | bs3-cmn-SlabAlloc.c \
|
---|
91 | bs3-cmn-SlabAllocEx.c \
|
---|
92 | bs3-cmn-SlabFree.c \
|
---|
93 | bs3-cmn-SlabListInit.c \
|
---|
94 | bs3-cmn-SlabListAdd.c \
|
---|
95 | bs3-cmn-SlabListAlloc.c \
|
---|
96 | bs3-cmn-SlabListAllocEx.c \
|
---|
97 | bs3-cmn-SlabListFree.c \
|
---|
98 | bs3-cmn-SwitchToRing0.asm \
|
---|
99 | bs3-cmn-SwitchToRing1.asm \
|
---|
100 | bs3-cmn-SwitchToRing2.asm \
|
---|
101 | bs3-cmn-SwitchToRing3.asm \
|
---|
102 | bs3-cmn-SwitchToRingX.asm \
|
---|
103 | bs3-cmn-SwitchTo16Bit.asm \
|
---|
104 | bs3-cmn-SwitchTo16BitV86.asm \
|
---|
105 | bs3-cmn-SwitchTo32Bit.asm \
|
---|
106 | bs3-cmn-SwitchTo64Bit.asm \
|
---|
107 | bs3-cmn-Syscall.asm \
|
---|
108 | bs3-cmn-TestData.c \
|
---|
109 | bs3-cmn-TestInit.c \
|
---|
110 | bs3-cmn-TestFailed.c \
|
---|
111 | bs3-cmn-TestSkipped.c \
|
---|
112 | bs3-cmn-TestSub.c \
|
---|
113 | bs3-cmn-TestSubDone.c \
|
---|
114 | bs3-cmn-TestSubErrorCount.c \
|
---|
115 | bs3-cmn-TestTerm.c \
|
---|
116 | bs3-cmn-TestSendCmdWithStr.asm \
|
---|
117 | bs3-cmn-TestSendCmdWithU32.asm \
|
---|
118 | bs3-cmn-TestIsVmmDevTestingPresent.asm \
|
---|
119 | bs3-cmn-Trap16Init.c \
|
---|
120 | bs3-cmn-Trap16SetGate.c \
|
---|
121 | bs3-cmn-Trap32Init.c \
|
---|
122 | bs3-cmn-Trap32SetGate.c \
|
---|
123 | bs3-cmn-Trap64SetGate.c \
|
---|
124 | bs3-cmn-TrapDefaultHandler.c \
|
---|
125 | bs3-cmn-TrapPrintFrame.c \
|
---|
126 | bs3-cmn-TrapSetHandler.c \
|
---|
127 | bs3-cmn-TrapSetJmp.asm \
|
---|
128 | bs3-cmn-TrapUnsetJmp.c \
|
---|
129 | ../../../Runtime/common/asm/ASMBitFirstClear.asm \
|
---|
130 | ../../../Runtime/common/asm/ASMBitFirstSet.asm \
|
---|
131 | ../../../Runtime/common/asm/ASMBitNextClear.asm \
|
---|
132 | ../../../Runtime/common/asm/ASMBitNextSet.asm \
|
---|
133 | ../../../Runtime/common/asm/ASMBitFirstSetU16.asm \
|
---|
134 | ../../../Runtime/common/asm/ASMBitFirstSetU32.asm \
|
---|
135 | ../../../Runtime/common/asm/ASMBitFirstSetU64.asm \
|
---|
136 | ../../../Runtime/common/asm/ASMBitLastSetU16.asm \
|
---|
137 | ../../../Runtime/common/asm/ASMBitLastSetU32.asm \
|
---|
138 | ../../../Runtime/common/asm/ASMBitLastSetU64.asm \
|
---|
139 | ../../../Runtime/common/asm/ASMMemFirstMismatchingU8.asm \
|
---|
140 | ../../../Runtime/common/asm/ASMSerializeInstruction-cpuid.asm \
|
---|
141 | ../../../Runtime/common/asm/ASMSerializeInstruction-iret.asm \
|
---|
142 | ../../../Runtime/common/asm/ASMSerializeInstruction-rdtscp.asm \
|
---|
143 |
|
---|
144 | # The 16-bit BS3Kit library.
|
---|
145 | LIBRARIES += bs3kit-common-16
|
---|
146 | bs3kit-common-16_TEMPLATE = VBoxBS3KitImg
|
---|
147 | bs3kit-common-16_INSTTYPE = none
|
---|
148 | bs3kit-common-16_DEFS = TMPL_PE16 BS3_CMN_ONLY
|
---|
149 | bs3kit-common-16_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
|
---|
150 | bs3kit-common-16_SOURCES = $(VBOX_BS3KIT_COMMON_SOURCES) \
|
---|
151 | bs3-system-data.asm \
|
---|
152 | bs3-rm-InitAll.c \
|
---|
153 | bs3-rm-InitMemory.c \
|
---|
154 | bs3-cmn-hexdigits.c \
|
---|
155 | bs3-cmn-CpuDetectData.c \
|
---|
156 | bs3-cmn-PerCpuData.c \
|
---|
157 | bs3-cmn-ConvertRMStackToP16UsingCxReturnToAx.asm \
|
---|
158 | bs3-wc16-U8DR.asm \
|
---|
159 | bs3-wc16-U8DQ.asm \
|
---|
160 | bs3-wc16-I8DR.asm \
|
---|
161 | bs3-wc16-I8DQ.asm \
|
---|
162 | bs3-wc16-I8RS.asm \
|
---|
163 | bs3-wc16-U8RS.asm \
|
---|
164 | bs3-wc16-U8LS.asm \
|
---|
165 | bs3-wc16-U4D.asm \
|
---|
166 | bs3-wc16-I4D.asm \
|
---|
167 | bs3-c16-Trap16Generic.asm
|
---|
168 |
|
---|
169 | # The 32-bit BS3Kit library.
|
---|
170 | LIBRARIES += bs3kit-common-32
|
---|
171 | bs3kit-common-32_TEMPLATE = VBoxBS3KitImg32
|
---|
172 | bs3kit-common-32_INSTTYPE = none
|
---|
173 | bs3kit-common-32_DEFS = TMPL_PE32 BS3_CMN_ONLY
|
---|
174 | bs3kit-common-32_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
|
---|
175 | bs3kit-common-32_SOURCES = $(VBOX_BS3KIT_COMMON_SOURCES) \
|
---|
176 | bs3-wc32-U8D.asm \
|
---|
177 | bs3-wc32-I8D.asm \
|
---|
178 | bs3-wc32-I8RS.asm \
|
---|
179 | bs3-wc32-U8RS.asm \
|
---|
180 | bs3-wc32-U8LS.asm \
|
---|
181 | bs3-c32-Trap32Generic.asm
|
---|
182 |
|
---|
183 | # The 64-bit BS3Kit library.
|
---|
184 | LIBRARIES += bs3kit-common-64-asm
|
---|
185 | bs3kit-common-64-asm_TEMPLATE = VBoxBS3KitImg64
|
---|
186 | bs3kit-common-64_asm_INSTTYPE = none
|
---|
187 | bs3kit-common-64-asm_DEFS = TMPL_LM64 BS3_CMN_ONLY
|
---|
188 | bs3kit-common-64-asm_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
|
---|
189 | bs3kit-common-64-asm_SOURCES = $(filter %.asm,$(VBOX_BS3KIT_COMMON_SOURCES))
|
---|
190 |
|
---|
191 | # The 64-bit BS3Kit library.
|
---|
192 | LIBRARIES += bs3kit-common-64-c
|
---|
193 | bs3kit-common-64-c_TEMPLATE = VBoxBS3KitImg64
|
---|
194 | bs3kit-common-64_c_INSTTYPE = none
|
---|
195 | bs3kit-common-64-c_DEFS = TMPL_LM64 BS3_CMN_ONLY
|
---|
196 | bs3kit-common-64-c_SOURCES = $(filter-out %.asm,$(VBOX_BS3KIT_COMMON_SOURCES))
|
---|
197 |
|
---|
198 |
|
---|
199 | #
|
---|
200 | # Common sources to be compiled for each CPU mode.
|
---|
201 | #
|
---|
202 | VBOX_BS3KIT_MODE_SOURCES = \
|
---|
203 | bs3-mode-Name.asm \
|
---|
204 | bs3-mode-SwitchToRM.asm \
|
---|
205 | bs3-mode-SwitchToPE16.asm \
|
---|
206 | bs3-mode-SwitchToPE16_32.asm \
|
---|
207 | bs3-mode-SwitchToPE16_V86.asm \
|
---|
208 | bs3-mode-SwitchToPE32.asm \
|
---|
209 | bs3-mode-SwitchToPE32_16.asm \
|
---|
210 | bs3-mode-SwitchToPEV86.asm \
|
---|
211 | bs3-mode-SwitchToPP16.asm \
|
---|
212 | bs3-mode-SwitchToPP16_32.asm \
|
---|
213 | bs3-mode-SwitchToPP16_V86.asm \
|
---|
214 | bs3-mode-SwitchToPP32.asm \
|
---|
215 | bs3-mode-SwitchToPP32_16.asm \
|
---|
216 | bs3-mode-SwitchToPPV86.asm \
|
---|
217 | bs3-mode-SwitchToPAE16.asm \
|
---|
218 | bs3-mode-SwitchToPAE16_32.asm \
|
---|
219 | bs3-mode-SwitchToPAE16_V86.asm \
|
---|
220 | bs3-mode-SwitchToPAE32.asm \
|
---|
221 | bs3-mode-SwitchToPAE32_16.asm \
|
---|
222 | bs3-mode-SwitchToPAEV86.asm \
|
---|
223 | bs3-mode-SwitchToLM64.asm \
|
---|
224 | bs3-mode-SwitchToLM32.asm \
|
---|
225 | bs3-mode-SwitchToLM16.asm \
|
---|
226 | bs3-mode-EnteredMode.asm \
|
---|
227 | bs3-mode-PagingGetRootForPP16.asm \
|
---|
228 | bs3-mode-PagingGetRootForPP32.asm \
|
---|
229 | bs3-mode-PagingGetRootForPAE16.asm \
|
---|
230 | bs3-mode-PagingGetRootForPAE32.asm \
|
---|
231 | bs3-mode-PagingGetRootForLM64.asm \
|
---|
232 | bs3-mode-TrapSystemCallHandler.asm \
|
---|
233 | bs3-mode-TestDoModes.c \
|
---|
234 | bs3-mode-TestDoModesHlp.asm \
|
---|
235 |
|
---|
236 | # The 16-bit real mode BS3Kit library.
|
---|
237 | LIBRARIES += bs3kit-rm
|
---|
238 | bs3kit-rm_TEMPLATE = VBoxBS3KitImg
|
---|
239 | bs3kit-rm_INSTTYPE = none
|
---|
240 | bs3kit-rm_DEFS = TMPL_MODE=BS3_MODE_RM
|
---|
241 | bs3kit-rm_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
|
---|
242 | bs3-first-rm.asm \
|
---|
243 | bs3-mode-CpuDetect.asm
|
---|
244 |
|
---|
245 |
|
---|
246 | # The 16-bit BS3Kit library for 16-bit protected kernel+tss.
|
---|
247 | LIBRARIES += bs3kit-pe16
|
---|
248 | bs3kit-pe16_TEMPLATE = VBoxBS3KitImg
|
---|
249 | bs3kit-pe16_INSTTYPE = none
|
---|
250 | bs3kit-pe16_DEFS = TMPL_MODE=BS3_MODE_PE16
|
---|
251 | bs3kit-pe16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
|
---|
252 | bs3-first-pe16.asm \
|
---|
253 | # bs3-mode-CpuDetect.asm
|
---|
254 |
|
---|
255 | # The 32-bit BS3Kit library for 16-bit protected kernel+tss.
|
---|
256 | LIBRARIES += bs3kit-pe16_32
|
---|
257 | bs3kit-pe16_32_TEMPLATE = VBoxBS3KitImg32
|
---|
258 | bs3kit-pe16_32_INSTTYPE = none
|
---|
259 | bs3kit-pe16_32_DEFS = TMPL_MODE=BS3_MODE_PE16_32
|
---|
260 | bs3kit-pe16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
261 |
|
---|
262 | # The v86 BS3Kit library for 16-bit protected kernel+tss.
|
---|
263 | LIBRARIES += bs3kit-pe16_v86
|
---|
264 | bs3kit-pe16_v86_TEMPLATE = VBoxBS3KitImg
|
---|
265 | bs3kit-pe16_v86_INSTTYPE = none
|
---|
266 | bs3kit-pe16_v86_DEFS = TMPL_MODE=BS3_MODE_PE16_V86
|
---|
267 | bs3kit-pe16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
268 |
|
---|
269 | # The 32-bit BS3Kit library for 32-bit protected kernel+tss.
|
---|
270 | LIBRARIES += bs3kit-pe32
|
---|
271 | bs3kit-pe32_TEMPLATE = VBoxBS3KitImg32
|
---|
272 | bs3kit-pe32_INSTTYPE = none
|
---|
273 | bs3kit-pe32_DEFS = TMPL_MODE=BS3_MODE_PE32
|
---|
274 | bs3kit-pe32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
275 |
|
---|
276 | # The 16-bit BS3Kit library for 32-bit protected kernel+tss.
|
---|
277 | LIBRARIES += bs3kit-pe32_16
|
---|
278 | bs3kit-pe32_16_TEMPLATE = VBoxBS3KitImg
|
---|
279 | bs3kit-pe32_16_INSTTYPE = none
|
---|
280 | bs3kit-pe32_16_DEFS = TMPL_MODE=BS3_MODE_PE32_16
|
---|
281 | bs3kit-pe32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
282 |
|
---|
283 | # The v8086 BS3Kit library for 32-bit protected kernel+tss.
|
---|
284 | LIBRARIES += bs3kit-pev86
|
---|
285 | bs3kit-pev86_TEMPLATE = VBoxBS3KitImg
|
---|
286 | bs3kit-pev86_INSTTYPE = none
|
---|
287 | bs3kit-pev86_DEFS = TMPL_MODE=BS3_MODE_PEV86
|
---|
288 | bs3kit-pev86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
289 |
|
---|
290 |
|
---|
291 | # The 16-bit BS3Kit library for 16-bit paged protected kernel+tss.
|
---|
292 | LIBRARIES += bs3kit-pp16
|
---|
293 | bs3kit-pp16_TEMPLATE = VBoxBS3KitImg
|
---|
294 | bs3kit-pp16_INSTTYPE = none
|
---|
295 | bs3kit-pp16_DEFS = TMPL_MODE=BS3_MODE_PP16
|
---|
296 | bs3kit-pp16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
|
---|
297 | bs3-mode-CpuDetect.asm
|
---|
298 |
|
---|
299 | # The 32-bit BS3Kit library for 16-bit paged protected kernel+tss.
|
---|
300 | LIBRARIES += bs3kit-pp16_32
|
---|
301 | bs3kit-pp16_32_TEMPLATE = VBoxBS3KitImg32
|
---|
302 | bs3kit-pp16_32_INSTTYPE = none
|
---|
303 | bs3kit-pp16_32_DEFS = TMPL_MODE=BS3_MODE_PP16_32
|
---|
304 | bs3kit-pp16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
305 |
|
---|
306 | # The v8086 BS3Kit library for 16-bit paged protected kernel+tss.
|
---|
307 | LIBRARIES += bs3kit-pp16_v86
|
---|
308 | bs3kit-pp16_v86_TEMPLATE = VBoxBS3KitImg
|
---|
309 | bs3kit-pp16_v86_INSTTYPE = none
|
---|
310 | bs3kit-pp16_v86_DEFS = TMPL_MODE=BS3_MODE_PP16_V86
|
---|
311 | bs3kit-pp16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
312 |
|
---|
313 | # The 32-bit BS3Kit library for 32-bit paged protected kernel+tss.
|
---|
314 | LIBRARIES += bs3kit-pp32
|
---|
315 | bs3kit-pp32_TEMPLATE = VBoxBS3KitImg32
|
---|
316 | bs3kit-pp32_INSTTYPE = none
|
---|
317 | bs3kit-pp32_DEFS = TMPL_MODE=BS3_MODE_PP32
|
---|
318 | bs3kit-pp32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
319 |
|
---|
320 | # The 16-bit BS3Kit library for 32-bit paged protected kernel+tss.
|
---|
321 | LIBRARIES += bs3kit-pp32_16
|
---|
322 | bs3kit-pp32_16_TEMPLATE = VBoxBS3KitImg
|
---|
323 | bs3kit-pp32_16_INSTTYPE = none
|
---|
324 | bs3kit-pp32_16_DEFS = TMPL_MODE=BS3_MODE_PP32_16
|
---|
325 | bs3kit-pp32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
326 |
|
---|
327 | # The v8086 BS3Kit library for 32-bit paged protected kernel+tss.
|
---|
328 | LIBRARIES += bs3kit-ppv86
|
---|
329 | bs3kit-ppv86_TEMPLATE = VBoxBS3KitImg
|
---|
330 | bs3kit-ppv86_INSTTYPE = none
|
---|
331 | bs3kit-ppv86_DEFS = TMPL_MODE=BS3_MODE_PPV86
|
---|
332 | bs3kit-ppv86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
333 |
|
---|
334 |
|
---|
335 | # The 16-bit BS3Kit library for 16-bit PAE paged protected kernel+tss.
|
---|
336 | LIBRARIES += bs3kit-pae16
|
---|
337 | bs3kit-pae16_TEMPLATE = VBoxBS3KitImg
|
---|
338 | bs3kit-pae16_INSTTYPE = none
|
---|
339 | bs3kit-pae16_DEFS = TMPL_MODE=BS3_MODE_PAE16
|
---|
340 | bs3kit-pae16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
|
---|
341 | bs3-mode-CpuDetect.asm
|
---|
342 |
|
---|
343 | # The 16-bit BS3Kit library for 16-bit PAE paged protected kernel+tss.
|
---|
344 | LIBRARIES += bs3kit-pae16_32
|
---|
345 | bs3kit-pae16_32_TEMPLATE = VBoxBS3KitImg32
|
---|
346 | bs3kit-pae16_32_INSTTYPE = none
|
---|
347 | bs3kit-pae16_32_DEFS = TMPL_MODE=BS3_MODE_PAE16_32
|
---|
348 | bs3kit-pae16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
349 |
|
---|
350 | # The v8086 BS3Kit library for 16-bit PAE paged protected kernel+tss.
|
---|
351 | LIBRARIES += bs3kit-pae16_v86
|
---|
352 | bs3kit-pae16_v86_TEMPLATE = VBoxBS3KitImg
|
---|
353 | bs3kit-pae16_v86_INSTTYPE = none
|
---|
354 | bs3kit-pae16_v86_DEFS = TMPL_MODE=BS3_MODE_PAE16_V86
|
---|
355 | bs3kit-pae16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
356 |
|
---|
357 | # The 32-bit BS3Kit library for 32-bit PAE paged protected kernel+tss.
|
---|
358 | LIBRARIES += bs3kit-pae32
|
---|
359 | bs3kit-pae32_TEMPLATE = VBoxBS3KitImg32
|
---|
360 | bs3kit-pae32_INSTTYPE = none
|
---|
361 | bs3kit-pae32_DEFS = TMPL_MODE=BS3_MODE_PAE32
|
---|
362 | bs3kit-pae32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
363 |
|
---|
364 | # The 16-bit BS3Kit library for 32-bit PAE paged protected kernel+tss.
|
---|
365 | LIBRARIES += bs3kit-pae32_16
|
---|
366 | bs3kit-pae32_16_TEMPLATE = VBoxBS3KitImg
|
---|
367 | bs3kit-pae32_16_INSTTYPE = none
|
---|
368 | bs3kit-pae32_16_DEFS = TMPL_MODE=BS3_MODE_PAE32_16
|
---|
369 | bs3kit-pae32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
370 |
|
---|
371 | # The v8086 BS3Kit library for 32-bit PAE paged protected kernel+tss.
|
---|
372 | LIBRARIES += bs3kit-paev86
|
---|
373 | bs3kit-paev86_TEMPLATE = VBoxBS3KitImg
|
---|
374 | bs3kit-paev86_INSTTYPE = none
|
---|
375 | bs3kit-paev86_DEFS = TMPL_MODE=BS3_MODE_PAEV86
|
---|
376 | bs3kit-paev86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
377 |
|
---|
378 |
|
---|
379 | # The 16-bit long mode BS3Kit library.
|
---|
380 | LIBRARIES += bs3kit-lm16
|
---|
381 | bs3kit-lm16_TEMPLATE = VBoxBS3KitImg
|
---|
382 | bs3kit-lm16_INSTTYPE = none
|
---|
383 | bs3kit-lm16_DEFS = TMPL_MODE=BS3_MODE_LM16
|
---|
384 | bs3kit-lm16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
385 |
|
---|
386 | # The 32-bit long mode BS3Kit library.
|
---|
387 | LIBRARIES += bs3kit-lm32
|
---|
388 | bs3kit-lm32_TEMPLATE = VBoxBS3KitImg32
|
---|
389 | bs3kit-lm32_INSTTYPE = none
|
---|
390 | bs3kit-lm32_DEFS = TMPL_MODE=BS3_MODE_LM32
|
---|
391 | bs3kit-lm32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
|
---|
392 |
|
---|
393 | # The 64-bit long mode BS3Kit library.
|
---|
394 | LIBRARIES += bs3kit-lm64-asm
|
---|
395 | bs3kit-lm64-asm_TEMPLATE = VBoxBS3KitImg64
|
---|
396 | bs3kit-lm64-asm_INSTTYPE = none
|
---|
397 | bs3kit-lm64-asm_DEFS = TMPL_MODE=BS3_MODE_LM64
|
---|
398 | bs3kit-lm64-asm_SOURCES = $(filter %.asm,$(VBOX_BS3KIT_MODE_SOURCES))
|
---|
399 |
|
---|
400 | # The 64-bit long mode BS3Kit library.
|
---|
401 | LIBRARIES += bs3kit-lm64-c
|
---|
402 | bs3kit-lm64-c_TEMPLATE = VBoxBS3KitImg64
|
---|
403 | bs3kit-lm64-c_INSTTYPE = none
|
---|
404 | bs3kit-lm64-c_DEFS = TMPL_MODE=BS3_MODE_LM64
|
---|
405 | bs3kit-lm64-c_SOURCES = $(filter-out %.asm, $(VBOX_BS3KIT_MODE_SOURCES))
|
---|
406 |
|
---|
407 |
|
---|
408 | #
|
---|
409 | # shutdown example.
|
---|
410 | #
|
---|
411 | MISCBINS += bs3-shutdown
|
---|
412 | bs3-shutdown_TEMPLATE = VBoxBS3KitImg
|
---|
413 | bs3-shutdown_SOURCES = \
|
---|
414 | bs3-first-pe16.asm \
|
---|
415 | bs3-shutdown.c
|
---|
416 |
|
---|
417 |
|
---|
418 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
419 |
|
---|
420 | .PRECIOUS: $(PATH_OBJ)/bs3-shutdown/bs3-shutdown.map
|
---|