Changeset 35380 in vbox for trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
- Timestamp:
- Dec 30, 2010 4:06:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
r34399 r35380 38 38 VgaBiosBin_DEFS = IN_VBOXDD2 39 39 VgaBiosBin_INCS = $(VBOX_PATH_DEVICES_SRC) 40 VgaBiosBin_SOURCES = $( PATH_VgaBiosBin)/VgaBiosBin.c40 VgaBiosBin_SOURCES = $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c 41 41 VgaBiosBin_CLEAN = \ 42 $( PATH_VgaBiosBin)/vbetables.h \42 $(VgaBiosBin_0_OUTDIR)/vbetables.h \ 43 43 \ 44 $( PATH_VgaBiosBin)/_vgabios_.c \45 $( PATH_VgaBiosBin)/vgabios0.s \46 $( PATH_VgaBiosBin)/vgabios1.s \47 $( PATH_VgaBiosBin)/vgabios.tmp \48 $( PATH_VgaBiosBin)/vgabios.lst \49 $( PATH_VgaBiosBin)/vgabios.bin \50 $( PATH_VgaBiosBin)/VgaBiosBin.c \51 $( PATH_VgaBiosBin)/VgaDefBiosLogo.c \44 $(VgaBiosBin_0_OUTDIR)/_vgabios_.c \ 45 $(VgaBiosBin_0_OUTDIR)/vgabios0.s \ 46 $(VgaBiosBin_0_OUTDIR)/vgabios1.s \ 47 $(VgaBiosBin_0_OUTDIR)/vgabios.tmp \ 48 $(VgaBiosBin_0_OUTDIR)/vgabios.lst \ 49 $(VgaBiosBin_0_OUTDIR)/vgabios.bin \ 50 $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c \ 51 $(VgaBiosBin_0_OUTDIR)/VgaDefBiosLogo.c \ 52 52 \ 53 $( PATH_VgaBiosBin)/_vgabios-cirrus_.c \54 $( PATH_VgaBiosBin)/vgabios-cirrus0.s \55 $( PATH_VgaBiosBin)/vgabios-cirrus1.s \56 $( PATH_VgaBiosBin)/vgabios-cirrus.tmp \57 $( PATH_VgaBiosBin)/vgabios-cirrus.lst \58 $( PATH_VgaBiosBin)/vgabios-cirrus.bin53 $(VgaBiosBin_0_OUTDIR)/_vgabios-cirrus_.c \ 54 $(VgaBiosBin_0_OUTDIR)/vgabios-cirrus0.s \ 55 $(VgaBiosBin_0_OUTDIR)/vgabios-cirrus1.s \ 56 $(VgaBiosBin_0_OUTDIR)/vgabios-cirrus.tmp \ 57 $(VgaBiosBin_0_OUTDIR)/vgabios-cirrus.lst \ 58 $(VgaBiosBin_0_OUTDIR)/vgabios-cirrus.bin 59 59 60 60 # 61 61 # Rule for making the bios. 62 62 # 63 $$( PATH_VgaBiosBin)/VgaBiosBin.c: $$(PATH_VgaBiosBin)/vgabios.bin $(VBOX_BIN2C)63 $$(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c: $$(VgaBiosBin_0_OUTDIR)/vgabios.bin $(VBOX_BIN2C) 64 64 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 65 65 $(QUIET)$(VBOX_BIN2C) -min 36 -max 36 -mask 0x0fff -ascii -export VgaBiosBinary $< $@ … … 70 70 71 71 # 1. create vbetables.h 72 $$( PATH_VgaBiosBin)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen) | $$(dir $$@)72 $$(VgaBiosBin_0_OUTDIR)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen) | $$(dir $$@) 73 73 $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen) 74 74 75 75 # 2. precompile 76 76 # WARNING! DEBUG is undefined here to keep the image size stable between debug and release builds. 77 $$( PATH_VgaBiosBin)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $$(PATH_VgaBiosBin)/vbetables.h $(PATH_ROOT)/include/VBox/Hardware/VBoxVideoVBE.h $(VBOX_VERSION_STAMP)77 $$(VgaBiosBin_0_OUTDIR)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $$(VgaBiosBin_0_OUTDIR)/vbetables.h $(PATH_ROOT)/include/VBox/Hardware/VBoxVideoVBE.h $(VBOX_VERSION_STAMP) 78 78 $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@) 79 79 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P \ … … 86 86 # 3. compile 87 87 # BCC tempfile clashes, order the BCC jobs to make sure they don't interfere with one another. 88 $$( PATH_VgaBiosBin)/vgabios0.s: $$(PATH_VgaBiosBin)/_vgabios_.c | $(VBOX_BCC_JOBS)88 $$(VgaBiosBin_0_OUTDIR)/vgabios0.s: $$(VgaBiosBin_0_OUTDIR)/_vgabios_.c | $(VBOX_BCC_JOBS) 89 89 $(call MSG_COMPILE,VgaBiosBin,$<,$@,C) 90 90 $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^ 91 VBOX_BCC_JOBS += $( PATH_VgaBiosBin)/vgabios0.s91 VBOX_BCC_JOBS += $(VgaBiosBin_0_OUTDIR)/vgabios0.s 92 92 93 93 # 4. preprocess intermediate assembly. 94 $$( PATH_VgaBiosBin)/vgabios1.s: $$(PATH_VgaBiosBin)/vgabios0.s94 $$(VgaBiosBin_0_OUTDIR)/vgabios1.s: $$(VgaBiosBin_0_OUTDIR)/vgabios0.s 95 95 $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@) 96 96 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 97 97 98 98 # 5. assemble 99 $$( PATH_VgaBiosBin)/vgabios.tmp $$(PATH_VgaBiosBin)/vgabios.lst: $$(PATH_VgaBiosBin)/vgabios1.s99 $$(VgaBiosBin_0_OUTDIR)/vgabios.tmp $$(VgaBiosBin_0_OUTDIR)/vgabios.lst: $$(VgaBiosBin_0_OUTDIR)/vgabios1.s 100 100 $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS) 101 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $( PATH_VgaBiosBin)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_VgaBiosBin)/vgabios.lst101 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(VgaBiosBin_0_OUTDIR)/vgabios.tmp -u- -w- -g -0 -j -O -l $(VgaBiosBin_0_OUTDIR)/vgabios.lst 102 102 103 103 # 6. checksums 104 $$( PATH_VgaBiosBin)/vgabios.bin: $$(PATH_VgaBiosBin)/vgabios.tmp $$(VBOX_BIOSSUMS)104 $$(VgaBiosBin_0_OUTDIR)/vgabios.bin: $$(VgaBiosBin_0_OUTDIR)/vgabios.tmp $$(VBOX_BIOSSUMS) 105 105 $(call MSG_TOOL,biossums,VgaBiosBin,$<,$@) 106 106 $(QUIET)$(VBOX_BIOSSUMS) $< $@ … … 112 112 VgaDefBiosLogo_TEMPLATE = VBOXR3 113 113 VgaDefBiosLogo_INCS = $(VBOX_PATH_DEVICES_SRC) 114 VgaDefBiosLogo_SOURCES = $( PATH_VgaBiosBin)/VgaDefBiosLogo.c114 VgaDefBiosLogo_SOURCES = $(VgaBiosBin_0_OUTDIR)/VgaDefBiosLogo.c 115 115 116 116 # 117 117 # Rule for making the bios logo. 118 118 # 119 $$( PATH_VgaBiosBin)/VgaDefBiosLogo.c: $(VBOX_BRAND_BIOS_LOGO) $(VBOX_BIN2C)119 $$(VgaBiosBin_0_OUTDIR)/VgaDefBiosLogo.c: $(VBOX_BRAND_BIOS_LOGO) $(VBOX_BIN2C) 120 120 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 121 121 $(QUIET)$(VBOX_BIN2C) VgaDefBiosLogo $< $@
Note:
See TracChangeset
for help on using the changeset viewer.