VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/BIOS-new/Makefile.kmk@ 42352

Last change on this file since 42352 was 42352, checked in by vboxsync, 12 years ago

Missing bitmaps and makefile bugs.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# $Id: Makefile.kmk 42352 2012-07-24 11:57:16Z vboxsync $
2## @file
3# Sub-Makefile for the New VGA BIOS ROM.
4#
5
6#
7# Copyright (C) 2012 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
18SUB_DEPTH = ../../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21
22ifdef VBOX_WITH_OPEN_WATCOM
23
24 #
25 # VBoxVgaBios - The VGA BIOS.
26 #
27 MISCBINS += VBoxVgaBios
28 VBoxVgaBios_TEMPLATE = VBoxBios
29 VBoxVgaBios_ASFLAGS = -0
30 VBoxVgaBios_DEFS = VBE
31 VBoxVgaBios_SOURCES = \
32 vgarom.asm \
33 vberom.asm \
34 vgabios.c \
35 vbe.c
36 VBoxVgaBios_LDFLAGS = \
37 output raw offset=0xC0000 \
38 order \
39 clname CODE \
40 segment VGAROM segaddr=0xC000 \
41 segment _TEXT segaddr=0xC000 offset=0xA00 \
42 segment VBE32 segaddr=0xC000 offset=0x4600 \
43 clname DATA \
44 segment _DATA segaddr=0xC000 offset=0x4800 \
45
46 #
47 # Updates the alternative source file.
48 #
49 update-vgabios-source +| $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.asm $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.md5sum: \
50 $$(VBoxVgaBios_1_TARGET) \
51 $(VBOX_MAKE_ALTERNATIVE_SOURCE) \
52 $(VBOX_VBOXCMP)
53 if1of ($(KBUILD_TYPE), release)
54 $(VBOX_MAKE_ALTERNATIVE_SOURCE) \
55 --bios-image $< \
56 --bios-map $(basename $<).map \
57 --bios-sym $(basename $<).sym \
58 --bios-type vga \
59 --output $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm
60 $(QUIET)yasm -f bin -o $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm
61 $(VBOX_VBOXCMP) $< $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin
62 $(CP) --changed -- $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm $(PATH_ROOT)/src/VBox/Devices/Graphics/BIOS-new/VBoxVgaBiosAlternative.asm
63 $(REDIRECT) -C $(dir $(VBoxVgaBios_1_TARGET)) -- \
64 $(MD5SUM_EXT) -bo $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum $(notdir $(VBoxVgaBios_1_TARGET))
65 $(CP) --changed -- $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum $(PATH_ROOT)/src/VBox/Devices/Graphics/BIOS-new/VBoxVgaBiosAlternative.md5sum
66 $(RM) -f -- $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin $(VBoxVgaBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum
67 else
68 $(QUIET)$(ECHO) "Fatal error: Can only update VBoxVgaBiosAlternative.asm/md5sum with a release build."
69 $(QUIET)exit 1
70 endif
71
72endif # VBOX_WITH_OPEN_WATCOM
73
74
75#
76# The library containing the VGA BIOS image.
77#
78LIBRARIES += VgaBiosBin
79VgaBiosBin_TEMPLATE = VBOXR3
80VgaBiosBin_DEFS = IN_VBOXDD2
81VgaBiosBin_SOURCES = $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c
82VgaBiosBin_CLEAN = $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c
83
84ifdef VBOX_WITH_OPEN_WATCOM
85 $$(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c: $$(VBoxVgaBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@)
86 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
87 $(QUIET)$(VBOX_BIN2C) -min 32 -max 36 -mask 0x0fff -ascii -export VgaBiosBinary $< $@
88else
89 VgaBiosBin_CLEAN += $(VgaBiosBin_0_OUTDIR)/VBoxVgaBios.rom
90
91 $$(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c + $$(VgaBiosBin_0_OUTDIR)/VBoxVgaBios.rom: \
92 $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.asm \
93 $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.md5sum \
94 $(VBOX_BIN2C) | $$(dir $$@)
95 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
96 $(QUIET)yasm -f bin -o $(VgaBiosBin_0_OUTDIR)/VBoxVgaBios.rom $<
97 $(QUIET)$(REDIRECT) -C $(VgaBiosBin_0_OUTDIR) -- \
98 $(MD5SUM_EXT) -c $(basename $<).md5sum
99 $(QUIET)$(VBOX_BIN2C) -min 32 -max 36 -mask 0x0fff -ascii -export VgaBiosBinary $(VgaBiosBin_0_OUTDIR)/VBoxVgaBios.rom $@
100 $(QUIET)$(RM) -f -- $$(VgaBiosBin_0_OUTDIR)/VBoxVgaBios.rom
101endif
102
103
104#
105# The VGA BIOS Logo.
106#
107LIBRARIES += VgaDefBiosLogo
108VgaDefBiosLogo_TEMPLATE = VBOXR3
109VgaDefBiosLogo_INCS = $(VBOX_PATH_DEVICES_SRC)
110VgaDefBiosLogo_SOURCES = $(VgaDefBiosLogo_0_OUTDIR)/VgaDefBiosLogo.c
111VgaDefBiosLogo_CLEAN = $(VgaDefBiosLogo_0_OUTDIR)/VgaDefBiosLogo.c
112
113# Rule for making the bios logo.
114$$(VgaDefBiosLogo_0_OUTDIR)/VgaDefBiosLogo.c: $(VBOX_BRAND_BIOS_LOGO) $(VBOX_BIN2C)
115 $(call MSG_TOOL,bin2c,VgaDefBiosLogo,$<,$@)
116 $(QUIET)$(VBOX_BIN2C) VgaDefBiosLogo $< $@
117
118
119include $(FILE_KBUILD_SUB_FOOTER)
120
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