VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/BIOS-new/Makefile.kmk@ 41084

Last change on this file since 41084 was 41084, checked in by vboxsync, 13 years ago

Put together a kBuild makefile for the new BIOS code. No idea if the output works.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 41084 2012-04-27 13:05:09Z vboxsync $
2## @file
3# Sub-Makefile for the New BIOS ROM.
4#
5
6#
7# Copyright (C) 2012 Oracle Corporation
8#
9# Oracle Corporation confidential
10# All rights reserved
11#
12
13SUB_DEPTH = ../../../../..
14include $(KBUILD_PATH)/subheader.kmk
15
16#
17# VBoxBios - Template for building the BIOS bits.
18#
19TEMPLATE_VBoxBios = PXE ROM
20TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16
21TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL
22TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16
23TEMPLATE_VBoxBios_BLD_TRG = os-agnostic
24TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86
25TEMPLATE_VBoxBios_BINSUFF = .rom
26TEMPLATE_VBoxBios_INCS = .
27TEMPLATE_VBoxBios_ASFLAGS = -q -0 -wx
28TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms
29TEMPLATE_VBoxBios_DEFS = \
30 VBOX_PC_BIOS \
31 VBOX_LANBOOT_SEG=0xE200 \
32 VBOX_VERSION_STRING=\"0.9\" \
33 VBOX_WITH_SCSI \
34 VBOX_WITH_AHCI
35TEMPLATE_VBoxBios_LDFLAGS = system dos \
36 debug all \
37 option quiet, nofarcalls, map, verbose, statics, symfile \
38 output raw offset=0xF0000 order \
39 clname DATA segaddr=0xF000 segment _DATA \
40 clname CODE \
41 segment _TEXT segaddr=0xF000 offset=0x1600 \
42 segment BIOS32 segaddr=0xF000 offset=0xDE00 \
43 segment BIOSSEG segaddr=0xF000 offset=0xE000 \
44 library clibs.lib \
45 disable 1014, 1023, 2120
46TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS)
47TEMPLATE_VBoxBios_POST_CMDS = \
48 $(QUIET)$(EXT_MV) -f $(out) $(out).tmp \
49 && $(VBOX_BIOSSUMS) $(out).tmp $(out) \
50 && $(EXT_RM) -f $(out).tmp
51
52
53#
54# VBoxPcBios - The PC BIOS.
55#
56MISCBINS += VBoxPcBios
57VBoxPcBios_TEMPLATE = VBoxBios
58VBoxPcBios_SOURCES = \
59 bios.c \
60 print.c \
61 ata.c \
62 floppy.c \
63 eltorito.c \
64 boot.c \
65 keyboard.c \
66 disk.c \
67 serial.c \
68 system.c \
69 timepci.c \
70 ps2mouse.c \
71 parallel.c \
72 logo.c \
73 scsi.c \
74 ahci.c \
75 pciutil.c \
76 vds.c \
77 pcibio32.asm \
78 orgs.asm
79
80
81#
82# The library containing the PC BIOS image.
83#
84LIBRARIES += PcBiosBin
85PcBiosBin_TEMPLATE = VBOXR3
86PcBiosBin_DEFS = IN_VBOXDD2
87PcBiosBin_INCS = $(VBOX_PATH_DEVICES_SRC)
88PcBiosBin_SOURCES = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c
89PcBiosBin_CLEAN = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c
90
91$$(PcBiosBin_0_OUTDIR)/PcBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@)
92 $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@)
93 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@
94
95
96
97include $(KBUILD_PATH)/subfooter.kmk
98
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