VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk@ 60539

Last change on this file since 60539 was 60539, checked in by vboxsync, 9 years ago

bs3kit: Updates.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.7 KB
Line 
1# $Id: Makefile.kmk 60539 2016-04-18 14:09:39Z 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
27SUB_DEPTH = ../../../../..
28include $(KBUILD_PATH)/subheader.kmk
29
30
31
32# Boot Sector post-link tool (used via the parent Config.kmk).
33BLDPROGS += VBoxBs3Linker
34VBoxBs3Linker_TEMPLATE = VBoxBldProg
35VBoxBs3Linker_SOURCES = $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3Linker.cpp
36
37
38# 64-bit relocation conversion tool (used via the parent Config.kmk).
39BLDPROGS += VBoxBs3ObjConverter
40VBoxBs3ObjConverter_TEMPLATE = VBoxAdvBldProg
41VBoxBs3ObjConverter_DEFS = BS3KIT_BS3CLASS16CODE=$(BS3KIT_BS3CLASS16CODE)
42VBoxBs3ObjConverter_SOURCES = $(VBOX_PATH_BS3KIT_SRC)/VBoxBs3ObjConverter.cpp
43
44
45# The boot sector.
46MISCBINS += bs3-bootsector
47bs3-bootsector_TEMPLATE = VBoxBS3KitBS
48bs3-bootsector_SOURCES = bs3-bootsector.asm
49
50
51#
52# Common sources to be compiled into _p16, _p32 and _p64 versions.
53#
54VBOX_BS3KIT_COMMON_SOURCES = \
55 bs3-cmn-A20Disable.asm \
56 bs3-cmn-A20Enable.asm \
57 bs3-cmn-KbdRead.asm \
58 bs3-cmn-KbdWait.asm \
59 bs3-cmn-KbdWrite.asm \
60 bs3-cmn-Shutdown.asm \
61 bs3-cmn-Panic.asm \
62 bs3-cmn-PrintChr.asm \
63 bs3-cmn-Printf.c \
64 bs3-cmn-PrintU32.asm \
65 bs3-cmn-PrintX32.asm \
66 bs3-cmn-PrintStr.c \
67 bs3-cmn-PrintStrN.asm \
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-PagingProtect.c \
85 bs3-cmn-PicMaskAll.c \
86 bs3-cmn-RegCtxRestore.asm \
87 bs3-cmn-RegCtxConvertToRingX.c \
88 bs3-cmn-RegCtxPrint.c \
89 bs3-cmn-RegCtxSave.asm \
90 bs3-cmn-SelFar32ToFlat32.c \
91 bs3-cmn-SelProtFar32ToFlat32.c \
92 bs3-cmn-SelRealModeCodeToProtMode.asm \
93 bs3-cmn-SelFlatCodeToRealMode.asm \
94 bs3-cmn-SelFlatCodeToProtFar16.asm \
95 bs3-cmn-SlabInit.c \
96 bs3-cmn-SlabAlloc.c \
97 bs3-cmn-SlabAllocEx.c \
98 bs3-cmn-SlabFree.c \
99 bs3-cmn-SlabListInit.c \
100 bs3-cmn-SlabListAdd.c \
101 bs3-cmn-SlabListAlloc.c \
102 bs3-cmn-SlabListAllocEx.c \
103 bs3-cmn-SlabListFree.c \
104 bs3-cmn-SwitchToRing0.asm \
105 bs3-cmn-SwitchToRing1.asm \
106 bs3-cmn-SwitchToRing2.asm \
107 bs3-cmn-SwitchToRing3.asm \
108 bs3-cmn-SwitchToRingX.asm \
109 bs3-cmn-SwitchTo16Bit.asm \
110 bs3-cmn-SwitchTo16BitV86.asm \
111 bs3-cmn-SwitchTo32Bit.asm \
112 bs3-cmn-SwitchTo64Bit.asm \
113 bs3-cmn-Syscall.asm \
114 bs3-cmn-TestData.c \
115 bs3-cmn-TestInit.c \
116 bs3-cmn-TestFailed.c \
117 bs3-cmn-TestSkipped.c \
118 bs3-cmn-TestSub.c \
119 bs3-cmn-TestSubDone.c \
120 bs3-cmn-TestSubErrorCount.c \
121 bs3-cmn-TestTerm.c \
122 bs3-cmn-TestSendCmdWithStr.asm \
123 bs3-cmn-TestSendCmdWithU32.asm \
124 bs3-cmn-TestIsVmmDevTestingPresent.asm \
125 bs3-cmn-TestCheckRegCtxEx.c \
126 bs3-cmn-TestPrintf.c \
127 bs3-cmn-TrapRmV86Init.c \
128 bs3-cmn-TrapRmV86SetGate.c \
129 bs3-cmn-Trap16Init.c \
130 bs3-cmn-Trap16SetGate.c \
131 bs3-cmn-Trap32Init.c \
132 bs3-cmn-Trap32SetGate.c \
133 bs3-cmn-Trap64Init.c \
134 bs3-cmn-Trap64SetGate.c \
135 bs3-cmn-TrapDefaultHandler.c \
136 bs3-cmn-TrapPrintFrame.c \
137 bs3-cmn-TrapSetHandler.c \
138 bs3-cmn-TrapSetJmp.asm \
139 bs3-cmn-TrapSetJmpAndRestore.c \
140 bs3-cmn-TrapUnsetJmp.c \
141 ../../../Runtime/common/asm/ASMBitFirstClear.asm \
142 ../../../Runtime/common/asm/ASMBitFirstSet.asm \
143 ../../../Runtime/common/asm/ASMBitNextClear.asm \
144 ../../../Runtime/common/asm/ASMBitNextSet.asm \
145 ../../../Runtime/common/asm/ASMBitFirstSetU16.asm \
146 ../../../Runtime/common/asm/ASMBitFirstSetU32.asm \
147 ../../../Runtime/common/asm/ASMBitFirstSetU64.asm \
148 ../../../Runtime/common/asm/ASMBitLastSetU16.asm \
149 ../../../Runtime/common/asm/ASMBitLastSetU32.asm \
150 ../../../Runtime/common/asm/ASMBitLastSetU64.asm \
151 ../../../Runtime/common/asm/ASMMemFirstMismatchingU8.asm \
152 ../../../Runtime/common/asm/ASMSerializeInstruction-cpuid.asm \
153 ../../../Runtime/common/asm/ASMSerializeInstruction-iret.asm \
154 ../../../Runtime/common/asm/ASMSerializeInstruction-rdtscp.asm \
155
156#
157# We generate a list of files with 16-bit far functions for which we generate
158# near jump stubs.
159#
160#$(PATH_OUT_OBJ)/bs3kit-common-16-near-to-far.kmk.ts \
161#+| $(PATH_OUT_OBJ)/bs3kit-common-16-near-to-far.kmk: $(VBOX_PATH_BS3KIT_SRC)/bs3kit.h
162# $(SED) \
163# -n -e '/no-near-stub/d' \
164# -e 's/^ *BS3_DECL(.*) *\([a-zA-Z][a-zA-Z0-9_]*\)(.*[;,][^;]*$/\1/p' \
165# --output $@ \
166# bs3kit.h
167# .$(CP_CHANGED) --changed -f -- $@ $(PATH_OUT_OBJ)/bs3kit-common-16-near-to-far.kmk
168#include $(PATH)
169
170
171# The 16-bit BS3Kit library.
172LIBRARIES += bs3kit-common-16
173bs3kit-common-16_TEMPLATE = VBoxBS3KitImg
174bs3kit-common-16_INSTTYPE = none
175bs3kit-common-16_DEFS = TMPL_PE16 BS3_CMN_ONLY
176bs3kit-common-16_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
177bs3kit-common-16_SOURCES = $(VBOX_BS3KIT_COMMON_SOURCES) \
178 bs3-system-data.asm \
179 bs3-rm-InitAll.c \
180 bs3-rm-InitMemory.c \
181 bs3-rm-InitGdt.c \
182 bs3-cmn-hexdigits.c \
183 bs3-cmn-CpuDetectData.c \
184 bs3-cmn-PerCpuData.c \
185 bs3-cmn-ConvertRMStackToP16UsingCxReturnToAx.asm \
186 bs3-cmn-UInt64Div.c \
187 bs3-cmn-UInt32Div.c \
188 bs3-wc16-U8DR.asm \
189 bs3-wc16-U8DQ.asm \
190 bs3-wc16-I8DR.asm \
191 bs3-wc16-I8DQ.asm \
192 bs3-wc16-I8RS.asm \
193 bs3-wc16-U8RS.asm \
194 bs3-wc16-U8LS.asm \
195 bs3-wc16-U4D.asm \
196 bs3-wc16-I4D.asm \
197 bs3-c16-Trap16Generic.asm \
198 bs3-c16-CreateHybridFarRet.asm
199bs3kit-common-16_bs3-cmn-UInt64Div.c_CFLAGS = -oh -d0 # -d1+ vs -d0 saves 0x6a3-0x577 = 0x12C (300)!
200bs3kit-common-16_VBOX_NEAR_TO_FAR_FUNCTIONS := \
201 $(sort $(subst bs3-cmn-,Bs3,$(basename $(filter-out \
202 %Data.c \
203 bs3-rm-% \
204 bs3-cmn-hexdigits.c \
205 ,$(filter %.c,$(bs3kit-common-16_SOURCES)))))) \
206 Bs3PrintfV \
207 Bs3StrPrintfV \
208 Bs3TestPrintfV \
209 Bs3TestFailedF \
210 Bs3TestFailedV \
211 Bs3TestSkippedF \
212 Bs3TestSkippedV \
213 Bs3TestSubF \
214 Bs3TestSubV \
215 Bs3Trap16InitEx
216$(call BS3KIT_FN_GEN_NEARSTUBS,bs3kit-common-16,$(bs3kit-common-16_VBOX_NEAR_TO_FAR_FUNCTIONS))
217
218# The 32-bit BS3Kit library.
219LIBRARIES += bs3kit-common-32
220bs3kit-common-32_TEMPLATE = VBoxBS3KitImg32
221bs3kit-common-32_INSTTYPE = none
222bs3kit-common-32_DEFS = TMPL_PE32 BS3_CMN_ONLY
223bs3kit-common-32_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
224bs3kit-common-32_SOURCES = $(VBOX_BS3KIT_COMMON_SOURCES) \
225 bs3-cmn-UInt64Div.c \
226 bs3-wc32-U8D.asm \
227 bs3-wc32-I8D.asm \
228 bs3-wc32-I8RS.asm \
229 bs3-wc32-U8RS.asm \
230 bs3-wc32-U8LS.asm \
231 bs3-c32-Trap32Generic.asm
232
233# The 64-bit BS3Kit library.
234LIBRARIES += bs3kit-common-64
235bs3kit-common-64_TEMPLATE = VBoxBS3KitImg64
236bs3kit-common-64_INSTTYPE = none
237bs3kit-common-64_DEFS = TMPL_LM64 BS3_CMN_ONLY
238bs3kit-common-64_ASDEFS = RT_ASMDEFS_INC_FIRST_FILE
239bs3kit-common-64_SOURCES = $(VBOX_BS3KIT_COMMON_SOURCES) \
240 bs3-c64-Trap64Generic.asm \
241 ../../../Runtime/common/asm/ASMGetIDTR.asm \
242 ../../../Runtime/common/asm/ASMSetIDTR.asm \
243 ../../../Runtime/common/asm/ASMGetGDTR.asm \
244 ../../../Runtime/common/asm/ASMSetGDTR.asm \
245
246
247#
248# Common sources to be compiled for each CPU mode.
249#
250VBOX_BS3KIT_MODE_SOURCES = \
251 bs3-mode-Name.asm \
252 bs3-mode-SwitchToRM.asm \
253 bs3-mode-SwitchToPE16.asm \
254 bs3-mode-SwitchToPE16_32.asm \
255 bs3-mode-SwitchToPE16_V86.asm \
256 bs3-mode-SwitchToPE32.asm \
257 bs3-mode-SwitchToPE32_16.asm \
258 bs3-mode-SwitchToPEV86.asm \
259 bs3-mode-SwitchToPP16.asm \
260 bs3-mode-SwitchToPP16_32.asm \
261 bs3-mode-SwitchToPP16_V86.asm \
262 bs3-mode-SwitchToPP32.asm \
263 bs3-mode-SwitchToPP32_16.asm \
264 bs3-mode-SwitchToPPV86.asm \
265 bs3-mode-SwitchToPAE16.asm \
266 bs3-mode-SwitchToPAE16_32.asm \
267 bs3-mode-SwitchToPAE16_V86.asm \
268 bs3-mode-SwitchToPAE32.asm \
269 bs3-mode-SwitchToPAE32_16.asm \
270 bs3-mode-SwitchToPAEV86.asm \
271 bs3-mode-SwitchToLM64.asm \
272 bs3-mode-SwitchToLM32.asm \
273 bs3-mode-SwitchToLM16.asm \
274 bs3-mode-EnteredMode.asm \
275 bs3-mode-PagingGetRootForPP16.asm \
276 bs3-mode-PagingGetRootForPP32.asm \
277 bs3-mode-PagingGetRootForPAE16.asm \
278 bs3-mode-PagingGetRootForPAE32.asm \
279 bs3-mode-PagingGetRootForLM64.asm \
280 bs3-mode-TrapInit.c \
281 bs3-mode-TrapSystemCallHandler.asm \
282 bs3-mode-TestDoModes.c \
283 bs3-mode-TestDoModesHlp.asm \
284
285# The 16-bit real mode BS3Kit library.
286LIBRARIES += bs3kit-rm
287bs3kit-rm_TEMPLATE = VBoxBS3KitImg
288bs3kit-rm_INSTTYPE = none
289bs3kit-rm_DEFS = TMPL_MODE=BS3_MODE_RM
290bs3kit-rm_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
291 bs3-first-rm.asm \
292 bs3-mode-CpuDetect.asm
293
294
295# The 16-bit BS3Kit library for 16-bit protected kernel+tss.
296LIBRARIES += bs3kit-pe16
297bs3kit-pe16_TEMPLATE = VBoxBS3KitImg
298bs3kit-pe16_INSTTYPE = none
299bs3kit-pe16_DEFS = TMPL_MODE=BS3_MODE_PE16
300bs3kit-pe16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
301 bs3-first-pe16.asm \
302# bs3-mode-CpuDetect.asm
303
304# The 32-bit BS3Kit library for 16-bit protected kernel+tss.
305LIBRARIES += bs3kit-pe16_32
306bs3kit-pe16_32_TEMPLATE = VBoxBS3KitImg32
307bs3kit-pe16_32_INSTTYPE = none
308bs3kit-pe16_32_DEFS = TMPL_MODE=BS3_MODE_PE16_32
309bs3kit-pe16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
310
311# The v86 BS3Kit library for 16-bit protected kernel+tss.
312LIBRARIES += bs3kit-pe16_v86
313bs3kit-pe16_v86_TEMPLATE = VBoxBS3KitImg
314bs3kit-pe16_v86_INSTTYPE = none
315bs3kit-pe16_v86_DEFS = TMPL_MODE=BS3_MODE_PE16_V86
316bs3kit-pe16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
317
318# The 32-bit BS3Kit library for 32-bit protected kernel+tss.
319LIBRARIES += bs3kit-pe32
320bs3kit-pe32_TEMPLATE = VBoxBS3KitImg32
321bs3kit-pe32_INSTTYPE = none
322bs3kit-pe32_DEFS = TMPL_MODE=BS3_MODE_PE32
323bs3kit-pe32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
324
325# The 16-bit BS3Kit library for 32-bit protected kernel+tss.
326LIBRARIES += bs3kit-pe32_16
327bs3kit-pe32_16_TEMPLATE = VBoxBS3KitImg
328bs3kit-pe32_16_INSTTYPE = none
329bs3kit-pe32_16_DEFS = TMPL_MODE=BS3_MODE_PE32_16
330bs3kit-pe32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
331
332# The v8086 BS3Kit library for 32-bit protected kernel+tss.
333LIBRARIES += bs3kit-pev86
334bs3kit-pev86_TEMPLATE = VBoxBS3KitImg
335bs3kit-pev86_INSTTYPE = none
336bs3kit-pev86_DEFS = TMPL_MODE=BS3_MODE_PEV86
337bs3kit-pev86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
338
339
340# The 16-bit BS3Kit library for 16-bit paged protected kernel+tss.
341LIBRARIES += bs3kit-pp16
342bs3kit-pp16_TEMPLATE = VBoxBS3KitImg
343bs3kit-pp16_INSTTYPE = none
344bs3kit-pp16_DEFS = TMPL_MODE=BS3_MODE_PP16
345bs3kit-pp16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
346 bs3-mode-CpuDetect.asm
347
348# The 32-bit BS3Kit library for 16-bit paged protected kernel+tss.
349LIBRARIES += bs3kit-pp16_32
350bs3kit-pp16_32_TEMPLATE = VBoxBS3KitImg32
351bs3kit-pp16_32_INSTTYPE = none
352bs3kit-pp16_32_DEFS = TMPL_MODE=BS3_MODE_PP16_32
353bs3kit-pp16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
354
355# The v8086 BS3Kit library for 16-bit paged protected kernel+tss.
356LIBRARIES += bs3kit-pp16_v86
357bs3kit-pp16_v86_TEMPLATE = VBoxBS3KitImg
358bs3kit-pp16_v86_INSTTYPE = none
359bs3kit-pp16_v86_DEFS = TMPL_MODE=BS3_MODE_PP16_V86
360bs3kit-pp16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
361
362# The 32-bit BS3Kit library for 32-bit paged protected kernel+tss.
363LIBRARIES += bs3kit-pp32
364bs3kit-pp32_TEMPLATE = VBoxBS3KitImg32
365bs3kit-pp32_INSTTYPE = none
366bs3kit-pp32_DEFS = TMPL_MODE=BS3_MODE_PP32
367bs3kit-pp32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
368
369# The 16-bit BS3Kit library for 32-bit paged protected kernel+tss.
370LIBRARIES += bs3kit-pp32_16
371bs3kit-pp32_16_TEMPLATE = VBoxBS3KitImg
372bs3kit-pp32_16_INSTTYPE = none
373bs3kit-pp32_16_DEFS = TMPL_MODE=BS3_MODE_PP32_16
374bs3kit-pp32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
375
376# The v8086 BS3Kit library for 32-bit paged protected kernel+tss.
377LIBRARIES += bs3kit-ppv86
378bs3kit-ppv86_TEMPLATE = VBoxBS3KitImg
379bs3kit-ppv86_INSTTYPE = none
380bs3kit-ppv86_DEFS = TMPL_MODE=BS3_MODE_PPV86
381bs3kit-ppv86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
382
383
384# The 16-bit BS3Kit library for 16-bit PAE paged protected kernel+tss.
385LIBRARIES += bs3kit-pae16
386bs3kit-pae16_TEMPLATE = VBoxBS3KitImg
387bs3kit-pae16_INSTTYPE = none
388bs3kit-pae16_DEFS = TMPL_MODE=BS3_MODE_PAE16
389bs3kit-pae16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES) \
390 bs3-mode-CpuDetect.asm
391
392# The 16-bit BS3Kit library for 16-bit PAE paged protected kernel+tss.
393LIBRARIES += bs3kit-pae16_32
394bs3kit-pae16_32_TEMPLATE = VBoxBS3KitImg32
395bs3kit-pae16_32_INSTTYPE = none
396bs3kit-pae16_32_DEFS = TMPL_MODE=BS3_MODE_PAE16_32
397bs3kit-pae16_32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
398
399# The v8086 BS3Kit library for 16-bit PAE paged protected kernel+tss.
400LIBRARIES += bs3kit-pae16_v86
401bs3kit-pae16_v86_TEMPLATE = VBoxBS3KitImg
402bs3kit-pae16_v86_INSTTYPE = none
403bs3kit-pae16_v86_DEFS = TMPL_MODE=BS3_MODE_PAE16_V86
404bs3kit-pae16_v86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
405
406# The 32-bit BS3Kit library for 32-bit PAE paged protected kernel+tss.
407LIBRARIES += bs3kit-pae32
408bs3kit-pae32_TEMPLATE = VBoxBS3KitImg32
409bs3kit-pae32_INSTTYPE = none
410bs3kit-pae32_DEFS = TMPL_MODE=BS3_MODE_PAE32
411bs3kit-pae32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
412
413# The 16-bit BS3Kit library for 32-bit PAE paged protected kernel+tss.
414LIBRARIES += bs3kit-pae32_16
415bs3kit-pae32_16_TEMPLATE = VBoxBS3KitImg
416bs3kit-pae32_16_INSTTYPE = none
417bs3kit-pae32_16_DEFS = TMPL_MODE=BS3_MODE_PAE32_16
418bs3kit-pae32_16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
419
420# The v8086 BS3Kit library for 32-bit PAE paged protected kernel+tss.
421LIBRARIES += bs3kit-paev86
422bs3kit-paev86_TEMPLATE = VBoxBS3KitImg
423bs3kit-paev86_INSTTYPE = none
424bs3kit-paev86_DEFS = TMPL_MODE=BS3_MODE_PAEV86
425bs3kit-paev86_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
426
427
428# The 16-bit long mode BS3Kit library.
429LIBRARIES += bs3kit-lm16
430bs3kit-lm16_TEMPLATE = VBoxBS3KitImg
431bs3kit-lm16_INSTTYPE = none
432bs3kit-lm16_DEFS = TMPL_MODE=BS3_MODE_LM16
433bs3kit-lm16_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
434
435# The 32-bit long mode BS3Kit library.
436LIBRARIES += bs3kit-lm32
437bs3kit-lm32_TEMPLATE = VBoxBS3KitImg32
438bs3kit-lm32_INSTTYPE = none
439bs3kit-lm32_DEFS = TMPL_MODE=BS3_MODE_LM32
440bs3kit-lm32_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
441
442# The 64-bit long mode BS3Kit library.
443LIBRARIES += bs3kit-lm64
444bs3kit-lm64_TEMPLATE = VBoxBS3KitImg64
445bs3kit-lm64_INSTTYPE = none
446bs3kit-lm64_DEFS = TMPL_MODE=BS3_MODE_LM64
447bs3kit-lm64_SOURCES = $(VBOX_BS3KIT_MODE_SOURCES)
448
449
450#
451# shutdown example.
452#
453MISCBINS += bs3-shutdown
454bs3-shutdown_TEMPLATE = VBoxBS3KitImg
455bs3-shutdown_SOURCES = \
456 bs3-first-pe16.asm \
457 bs3-shutdown.c
458
459
460#
461# DOS Utilities / Testcases.
462#
463MISCBINS += bs3cpudt
464bs3cpudt_TEMPLATE = VBoxBS3KitUtil
465bs3cpudt_SOURCES = \
466 bs3-first-dosexe.asm \
467 bs3cpudt.c
468
469
470#
471# Rule for regenerating bs3kit-mangling-functions-undef.h.
472#
473bs3kit-mangling-code-undef.h: $(PATH_SUB_CURRENT)/bs3kit-mangling-code-define.h
474 $(SED) \
475 -e 's/#define \([a-zA-Z_][a-zA-Z0-9_]*\) .*$(DOLLAR)/#undef \1/' \
476 -e 's/Function needing mangling\./Undefining function mangling - automatically generated by the $@ makefile rule./' \
477 --output $(dir $<)bs3kit-mangling-code-undef.h \
478 $<
479
480
481include $(FILE_KBUILD_SUB_FOOTER)
482
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette