1 | # $Id: Makefile.kmk 41087 2012-04-27 14:05:28Z 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 |
|
---|
13 | SUB_DEPTH = ../../../../..
|
---|
14 | include $(KBUILD_PATH)/subheader.kmk
|
---|
15 |
|
---|
16 | #
|
---|
17 | # VBoxBios - Template for building the BIOS bits.
|
---|
18 | #
|
---|
19 | TEMPLATE_VBoxBios = PXE ROM
|
---|
20 | TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16
|
---|
21 | TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL
|
---|
22 | TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16
|
---|
23 | TEMPLATE_VBoxBios_BLD_TRG = os-agnostic
|
---|
24 | TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86
|
---|
25 | TEMPLATE_VBoxBios_BINSUFF = .rom
|
---|
26 | TEMPLATE_VBoxBios_INCS = .
|
---|
27 | TEMPLATE_VBoxBios_ASFLAGS = -q -0 -wx
|
---|
28 | TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms
|
---|
29 | TEMPLATE_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
|
---|
35 | TEMPLATE_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
|
---|
46 | TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS)
|
---|
47 | TEMPLATE_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 | #
|
---|
56 | MISCBINS += VBoxPcBios
|
---|
57 | VBoxPcBios_TEMPLATE = VBoxBios
|
---|
58 | VBoxPcBios_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 | #
|
---|
84 | LIBRARIES += PcBiosBin
|
---|
85 | PcBiosBin_TEMPLATE = VBOXR3
|
---|
86 | PcBiosBin_DEFS = IN_VBOXDD2
|
---|
87 | PcBiosBin_SOURCES = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c
|
---|
88 | PcBiosBin_CLEAN = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c
|
---|
89 |
|
---|
90 | $$(PcBiosBin_0_OUTDIR)/PcBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@)
|
---|
91 | $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@)
|
---|
92 | $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@
|
---|
93 |
|
---|
94 |
|
---|
95 |
|
---|
96 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
97 |
|
---|