vbox的更動 12268 路徑 trunk/src/VBox/Devices/PC
- 時間撮記:
- 2008-9-9 上午03:43:51 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/PC/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 … … 45 43 PcBiosBin_DEFS = IN_VBOXDD2 46 44 PcBiosBin_INCS = $(VBOX_PATH_DEVICES_SRC) 47 PcBiosBin_SOURCES = $(PATH_ TARGET)/PcBiosBin.c48 $(PATH_TARGET)/PcBiosBin.c_DEPS = $(PATH_TARGET)/pcbios-syms.h45 PcBiosBin_SOURCES = $(PATH_PcBiosBin)/PcBiosBin.c 46 PcBiosBin_DEPS = $(PATH_PcBiosBin)/pcbios-syms.h 49 47 PcBiosBin_CLEAN = \ 50 $(PATH_ TARGET)/_rombios_.c \51 $(PATH_ TARGET)/rombios0.s \52 $(PATH_ TARGET)/rombios1.s \53 $(PATH_ TARGET)/pcbios.lst \54 $(PATH_ TARGET)/pcbios.tmp \55 $(PATH_ TARGET)/pcbios.bin \56 $(PATH_ TARGET)/PcBiosBin.c \57 $(PATH_ TARGET)/pcbios-syms.h48 $(PATH_PcBiosBin)/_rombios_.c \ 49 $(PATH_PcBiosBin)/rombios0.s \ 50 $(PATH_PcBiosBin)/rombios1.s \ 51 $(PATH_PcBiosBin)/pcbios.lst \ 52 $(PATH_PcBiosBin)/pcbios.tmp \ 53 $(PATH_PcBiosBin)/pcbios.bin \ 54 $(PATH_PcBiosBin)/PcBiosBin.c \ 55 $(PATH_PcBiosBin)/pcbios-syms.h 58 56 59 57 # 60 58 # Rule for making the bios. 61 59 # 62 $ (PATH_TARGET)/PcBiosBin.c: $(PATH_TARGET)/pcbios.bin $(VBOX_BIN2C)60 $$(PATH_PcBiosBin)/PcBiosBin.c: $$(PATH_PcBiosBin)/pcbios.bin $(VBOX_BIN2C) 63 61 $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@) 64 62 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@ … … 69 67 70 68 # 1. precompile rombios.c 71 $ (PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S \72 $(PATH_SUB_CURRENT)/../DevPcBios.h $(PATH_ROOT)/include/VBox/bioslogo.h | $ (call DIRDEP,$(PATH_TARGET))69 $$(PATH_PcBiosBin)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S \ 70 $(PATH_SUB_CURRENT)/../DevPcBios.h $(PATH_ROOT)/include/VBox/bioslogo.h | $$(dir $@) 73 71 $(call MSG_TOOL,cpp,PcBiosBin,$<,$@) 74 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_ TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX -DVBOX_PC_BIOS $(addprefix -D,$(DEFS) $(DEFS.$(KBUILD_TYPE))) -P -o $@ $<72 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_PcBiosBin) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX -DVBOX_PC_BIOS $(addprefix -D,$(DEFS) $(DEFS.$(KBUILD_TYPE))) -P -o $@ $< 75 73 76 74 # 2. compile to intermediate asm file. 77 75 # BCC tempfile clashes, order the BCC jobs to make sure they don't interfere with one another. 78 $ (PATH_TARGET)/rombios0.s: $(PATH_TARGET)/_rombios_.c $(VBOX_VERSION_STAMP) | $(VBOX_BCC_JOBS)76 $$(PATH_PcBiosBin)/rombios0.s: $$(PATH_PcBiosBin)/_rombios_.c $(VBOX_VERSION_STAMP) | $(VBOX_BCC_JOBS) 79 77 $(call MSG_COMPILE,PcBiosBin,$<,$@,C) 80 78 $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $< 81 VBOX_BCC_JOBS += $(PATH_ TARGET)/rombios0.s79 VBOX_BCC_JOBS += $(PATH_PcBiosBin)/rombios0.s 82 80 83 81 # 3. post process intermediate asm file. 84 $ (PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s82 $$(PATH_PcBiosBin)/rombios1.s: $$(PATH_PcBiosBin)/rombios0.s 85 83 $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@) 86 84 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 87 85 88 86 # 4. assemble the intermediate asm file. (also creates a listing rombios.lst) 89 $ (PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s87 $$(PATH_PcBiosBin)/pcbios.tmp + $$(PATH_PcBiosBin)/pcbios.lst: $$(PATH_PcBiosBin)/rombios1.s 90 88 $(call MSG_COMPILE,PcBiosBin,$<,$@,AS) 91 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_ TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst89 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_PcBiosBin)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_PcBiosBin)/pcbios.lst 92 90 93 91 # 5. calculate checksums for the final BIOS image. 94 $ (PATH_TARGET)/pcbios.bin: $(PATH_TARGET)/pcbios.tmp $$(TARGET_pcbiossums)92 $$(PATH_PcBiosBin)/pcbios.bin: $$(PATH_PcBiosBin)/pcbios.tmp $$(TARGET_pcbiossums) 95 93 $(call MSG_TOOL,pcbiossums,PcBiosBin,$<,$@) 96 $(QUIET)$(CP) -f $(PATH_ TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.bin97 $(QUIET)$(TARGET_pcbiossums) $(PATH_ TARGET)/pcbios.bin94 $(QUIET)$(CP) -f $(PATH_PcBiosBin)/pcbios.tmp $(PATH_PcBiosBin)/pcbios.bin 95 $(QUIET)$(TARGET_pcbiossums) $(PATH_PcBiosBin)/pcbios.bin 98 96 99 97 # 6. create the symbol table. 100 $ (PATH_TARGET)/pcbios-syms.h: $(PATH_TARGET)/pcbios.lst $(MAKEFILE_CURRENT)98 $$(PATH_PcBiosBin)/pcbios-syms.h: $$(PATH_PcBiosBin)/pcbios.lst $(MAKEFILE_CURRENT) 101 99 $(call MSG_GENERATE,PcBiosBin,$<,$@) 102 100 $(QUIET)$(SED) \ … … 104 102 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 105 103 --output $@ \ 106 $(PATH_ TARGET)/pcbios.lst104 $(PATH_PcBiosBin)/pcbios.lst 107 105 108 106
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器