Changeset 12268 in vbox for trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
- Timestamp:
- Sep 9, 2008 3:43:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
r12170 r12268 20 20 # 21 21 22 ifdef VBOX_SINGLE_MAKEFILE23 22 SUB_DEPTH = ../../../../.. 24 else25 SUB_DEPTH = ../..26 DEPTH ?= ../../../../..27 endif28 23 include $(KBUILD_PATH)/subheader.kmk 29 24 25 # 26 # Globals 27 # 30 28 VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices 31 29 … … 46 44 VgaBiosBin_DEFS = IN_VBOXDD2 47 45 VgaBiosBin_INCS = $(VBOX_PATH_DEVICES_SRC) 48 VgaBiosBin_SOURCES = $(PATH_ TARGET)/VgaBiosBin.c46 VgaBiosBin_SOURCES = $(PATH_VgaBiosBin)/VgaBiosBin.c 49 47 VgaBiosBin_CLEAN = \ 50 $(PATH_ TARGET)/vbetables.h \48 $(PATH_VgaBiosBin)/vbetables.h \ 51 49 \ 52 $(PATH_ TARGET)/_vgabios_.c \53 $(PATH_ TARGET)/vgabios0.s \54 $(PATH_ TARGET)/vgabios1.s \55 $(PATH_ TARGET)/vgabios.tmp \56 $(PATH_ TARGET)/vgabios.lst \57 $(PATH_ TARGET)/vgabios.bin \58 $(PATH_ TARGET)/VgaBiosBin.c \59 $(PATH_ TARGET)/VgaDefBiosLogo.c \50 $(PATH_VgaBiosBin)/_vgabios_.c \ 51 $(PATH_VgaBiosBin)/vgabios0.s \ 52 $(PATH_VgaBiosBin)/vgabios1.s \ 53 $(PATH_VgaBiosBin)/vgabios.tmp \ 54 $(PATH_VgaBiosBin)/vgabios.lst \ 55 $(PATH_VgaBiosBin)/vgabios.bin \ 56 $(PATH_VgaBiosBin)/VgaBiosBin.c \ 57 $(PATH_VgaBiosBin)/VgaDefBiosLogo.c \ 60 58 \ 61 $(PATH_ TARGET)/_vgabios-cirrus_.c \62 $(PATH_ TARGET)/vgabios-cirrus0.s \63 $(PATH_ TARGET)/vgabios-cirrus1.s \64 $(PATH_ TARGET)/vgabios-cirrus.tmp \65 $(PATH_ TARGET)/vgabios-cirrus.lst \66 $(PATH_ TARGET)/vgabios-cirrus.bin59 $(PATH_VgaBiosBin)/_vgabios-cirrus_.c \ 60 $(PATH_VgaBiosBin)/vgabios-cirrus0.s \ 61 $(PATH_VgaBiosBin)/vgabios-cirrus1.s \ 62 $(PATH_VgaBiosBin)/vgabios-cirrus.tmp \ 63 $(PATH_VgaBiosBin)/vgabios-cirrus.lst \ 64 $(PATH_VgaBiosBin)/vgabios-cirrus.bin 67 65 68 66 # 69 67 # Rule for making the bios. 70 68 # 71 $ (PATH_TARGET)/VgaBiosBin.c: $(PATH_TARGET)/vgabios.bin $(VBOX_BIN2C)69 $$(PATH_VgaBiosBin)/VgaBiosBin.c: $$(PATH_VgaBiosBin)/vgabios.bin $(VBOX_BIN2C) 72 70 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 73 71 $(QUIET)$(VBOX_BIN2C) -min 32 -max 64 -mask 0x0fff -ascii -export VgaBiosBinary $< $@ … … 78 76 79 77 # 1. create vbetables.h 80 $ (PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen)78 $$(PATH_VgaBiosBin)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen) 81 79 $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen) 82 80 83 81 # 2. precompile 84 $ (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 $(VBOX_VERSION_STAMP)82 $$(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 $(VBOX_VERSION_STAMP) 85 83 $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@) 86 84 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(KBUILD_TYPE))) -o $@ $< … … 88 86 # 3. compile 89 87 # BCC tempfile clashes, order the BCC jobs to make sure they don't interfere with one another. 90 $ (PATH_TARGET)/vgabios0.s: $(PATH_TARGET)/_vgabios_.c | $(VBOX_BCC_JOBS)88 $$(PATH_VgaBiosBin)/vgabios0.s: $$(PATH_VgaBiosBin)/_vgabios_.c | $(VBOX_BCC_JOBS) 91 89 $(call MSG_COMPILE,VgaBiosBin,$<,$@,C) 92 90 $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^ 93 VBOX_BCC_JOBS += $(PATH_ TARGET)/vgabios0.s91 VBOX_BCC_JOBS += $(PATH_VgaBiosBin)/vgabios0.s 94 92 95 93 # 4. preprocess intermediate assembly. 96 $ (PATH_TARGET)/vgabios1.s: $(PATH_TARGET)/vgabios0.s94 $$(PATH_VgaBiosBin)/vgabios1.s: $$(PATH_VgaBiosBin)/vgabios0.s 97 95 $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@) 98 96 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 99 97 100 98 # 5. assemble 101 $ (PATH_TARGET)/vgabios.tmp $(PATH_TARGET)/vgabios.lst: $(PATH_TARGET)/vgabios1.s99 $$(PATH_VgaBiosBin)/vgabios.tmp $$(PATH_VgaBiosBin)/vgabios.lst: $$(PATH_VgaBiosBin)/vgabios1.s 102 100 $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS) 103 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_ TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst101 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_VgaBiosBin)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_VgaBiosBin)/vgabios.lst 104 102 105 103 # 6. checksums 106 $ (PATH_TARGET)/vgabios.bin: $(PATH_TARGET)/vgabios.tmp $$(TARGET_vgabiossums)104 $$(PATH_VgaBiosBin)/vgabios.bin: $$(PATH_VgaBiosBin)/vgabios.tmp $$(TARGET_vgabiossums) 107 105 $(call MSG_TOOL,vgabiossums,VgaBiosBin,$<,$@) 108 $(QUIET)$(CP) -f $(PATH_ TARGET)/vgabios.tmp $@106 $(QUIET)$(CP) -f $(PATH_VgaBiosBin)/vgabios.tmp $@ 109 107 $(QUIET)$(TARGET_vgabiossums) $@ 110 108 … … 115 113 VgaDefBiosLogo_TEMPLATE = VBOXR3 116 114 VgaDefBiosLogo_INCS = $(VBOX_PATH_DEVICES_SRC) 117 VgaDefBiosLogo_SOURCES = $(PATH_ TARGET)/VgaDefBiosLogo.c115 VgaDefBiosLogo_SOURCES = $(PATH_VgaBiosBin)/VgaDefBiosLogo.c 118 116 119 117 # … … 121 119 # 122 120 ifdef VBOX_OSE 123 VBOX_LOGO_FILE := ose_logo.bmp121 VBOX_LOGO_FILE := ose_logo.bmp 124 122 else 125 VBOX_LOGO_FILE := sun_logo.bmp123 VBOX_LOGO_FILE := sun_logo.bmp 126 124 endif 127 $ (PATH_TARGET)/VgaDefBiosLogo.c: $(PATH_SUB_CURRENT)/$(VBOX_LOGO_FILE) $(VBOX_BIN2C)125 $$(PATH_VgaBiosBin)/VgaDefBiosLogo.c: $(PATH_SUB_CURRENT)/$(VBOX_LOGO_FILE) $(VBOX_BIN2C) 128 126 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 129 127 $(QUIET)$(VBOX_BIN2C) VgaDefBiosLogo $< $@
Note:
See TracChangeset
for help on using the changeset viewer.