VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk@ 8448

Last change on this file since 8448 was 8448, checked in by vboxsync, 17 years ago

Empty logo for OSE build.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Makefile.kmk 8448 2008-04-29 09:19:58Z vboxsync $
2## @file
3# VGA BIOS Sub-Makefile
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22DEPTH ?= ../../../../..
23SUB_DEPTH = ../..
24include $(PATH_KBUILD)/subheader.kmk
25
26VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
27
28#
29# Build program for calculating the VGA BIOS checksums.
30#
31BLDPROGS += vgabiossums vbetables-gen
32vgabiossums_TEMPLATE = VBOXBLDPROG
33vgabiossums_SOURCES = biossums.c
34vbetables-gen_TEMPLATE = VBOXBLDPROG
35vbetables-gen_SOURCES = vbetables-gen.c
36
37#
38# The library containing the VGA BIOS image.
39#
40LIBRARIES += VgaBiosBin
41VgaBiosBin_TEMPLATE = VBOXR3
42VgaBiosBin_DEFS = IN_VBOXDD2
43VgaBiosBin_INCS = $(VBOX_PATH_DEVICES_SRC)
44VgaBiosBin_SOURCES = $(PATH_TARGET)/VgaBiosBin.c
45VgaBiosBin_CLEAN = \
46 $(PATH_TARGET)/_vgabios_.c \
47 $(PATH_TARGET)/vgabios0.s \
48 $(PATH_TARGET)/vgabios1.s \
49 $(PATH_TARGET)/vgabios.tmp \
50 $(PATH_TARGET)/vgabios.lst \
51 $(PATH_TARGET)/vgabios.bin \
52 $(PATH_TARGET)/VgaBiosBin.c \
53 $(PATH_TARGET)/VgaDefBiosLogo.c \
54 \
55 $(PATH_TARGET)/_vgabios-cirrus_.c \
56 $(PATH_TARGET)/vgabios-cirrus0.s \
57 $(PATH_TARGET)/vgabios-cirrus1.s \
58 $(PATH_TARGET)/vgabios-cirrus.tmp \
59 $(PATH_TARGET)/vgabios-cirrus.lst \
60 $(PATH_TARGET)/vgabios-cirrus.bin
61
62#
63# Rule for making the bios.
64#
65$(PATH_TARGET)/VgaBiosBin.c: $(PATH_TARGET)/vgabios.bin $(VBOX_BIN2C)
66 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
67 $(QUIET)$(VBOX_BIN2C) -min 32 -max 64 -mask 0x0fff -ascii -export VgaBiosBinary $< $@
68
69#
70# vgabios
71#
72
73# 1. create vbetables.h
74$(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $(TARGET_vbetables-gen)
75 $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen)
76
77# 2. precompile
78$(PATH_TARGET)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $(PATH_TARGET)/vbetables.h
79 $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@)
80 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -o $@ $<
81
82# 3. compile - tempfile clashes, so make sure it's built in solitude.
83.NOTPARALLEL: $(PATH_TARGET)/vgabios0.s
84$(PATH_TARGET)/vgabios0.s: $(PATH_TARGET)/_vgabios_.c
85 $(call MSG_COMPILE,VgaBiosBin,$<,$@,C)
86 $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^
87
88# 4. preprocess intermediate assembly.
89$(PATH_TARGET)/vgabios1.s: $(PATH_TARGET)/vgabios0.s
90 $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@)
91 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^
92
93# 5. assemble
94$(PATH_TARGET)/vgabios.tmp $(PATH_TARGET)/vgabios.lst: $(PATH_TARGET)/vgabios1.s
95 $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS)
96 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst
97
98# 6. checksums
99$(PATH_TARGET)/vgabios.bin: $(PATH_TARGET)/vgabios.tmp $$(TARGET_vgabiossums)
100 $(call MSG_TOOL,vgabiossums,VgaBiosBin,$<,$@)
101 $(QUIET)$(CP) -f $(PATH_TARGET)/vgabios.tmp $@
102 $(QUIET)$(TARGET_vgabiossums) $@
103
104#
105# The VGA BIOS Logo.
106#
107LIBRARIES += VgaDefBiosLogo
108VgaDefBiosLogo_TEMPLATE = VBOXR3
109VgaDefBiosLogo_INCS = $(VBOX_PATH_DEVICES_SRC)
110VgaDefBiosLogo_SOURCES = $(PATH_TARGET)/VgaDefBiosLogo.c
111
112#
113# Rule for making the bios logo.
114#
115ifdef VBOX_OSE
116VBOX_LOGO_FILE := ose_logo.bmp
117else
118VBOX_LOGO_FILE := sun_logo.bmp
119endif
120$(PATH_TARGET)/VgaDefBiosLogo.c: $(PATH_SUB_CURRENT)/$(VBOX_LOGO_FILE) $(VBOX_BIN2C)
121 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@)
122 $(QUIET)$(VBOX_BIN2C) VgaDefBiosLogo $< $@
123
124
125include $(PATH_KBUILD)/subfooter.kmk
126
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