VirtualBox

vbox的更動 12268 路徑 trunk/src/VBox/Devices/PC


忽略:
時間撮記:
2008-9-9 上午03:43:51 (16 年 以前)
作者:
vboxsync
訊息:

Devices/Makefiles: PATH_TARGET elimination, push up to root (sub-makefile wise). Some minor cleanups.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk

    r12170 r12268  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../../../..
    24 else
    25 SUB_DEPTH = ../..
    26 DEPTH    ?= ../../../../..
    27 endif
    2823include $(KBUILD_PATH)/subheader.kmk
    2924
     25#
     26# Globals
     27#
    3028VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices
    3129
     
    4543PcBiosBin_DEFS      = IN_VBOXDD2
    4644PcBiosBin_INCS      = $(VBOX_PATH_DEVICES_SRC)
    47 PcBiosBin_SOURCES   = $(PATH_TARGET)/PcBiosBin.c
    48 $(PATH_TARGET)/PcBiosBin.c_DEPS = $(PATH_TARGET)/pcbios-syms.h
     45PcBiosBin_SOURCES   = $(PATH_PcBiosBin)/PcBiosBin.c
     46PcBiosBin_DEPS      = $(PATH_PcBiosBin)/pcbios-syms.h
    4947PcBiosBin_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.h
     48        $(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
    5856
    5957#
    6058# Rule for making the bios.
    6159#
    62 $(PATH_TARGET)/PcBiosBin.c: $(PATH_TARGET)/pcbios.bin $(VBOX_BIN2C)
     60$$(PATH_PcBiosBin)/PcBiosBin.c: $$(PATH_PcBiosBin)/pcbios.bin $(VBOX_BIN2C)
    6361        $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@)
    6462        $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@
     
    6967
    7068# 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 $@)
    7371        $(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 $@ $<
    7573
    7674# 2. compile to intermediate asm file.
    7775# 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)
    7977        $(call MSG_COMPILE,PcBiosBin,$<,$@,C)
    8078        $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $<
    81 VBOX_BCC_JOBS += $(PATH_TARGET)/rombios0.s
     79VBOX_BCC_JOBS += $(PATH_PcBiosBin)/rombios0.s
    8280
    8381# 3. post process intermediate asm file.
    84 $(PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s
     82$$(PATH_PcBiosBin)/rombios1.s: $$(PATH_PcBiosBin)/rombios0.s
    8583        $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@)
    8684        $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^
    8785
    8886# 4. assemble the intermediate asm file. (also creates a listing rombios.lst)
    89 $(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s
     87$$(PATH_PcBiosBin)/pcbios.tmp + $$(PATH_PcBiosBin)/pcbios.lst: $$(PATH_PcBiosBin)/rombios1.s
    9088        $(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.lst
     89        $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_PcBiosBin)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_PcBiosBin)/pcbios.lst
    9290
    9391# 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)
    9593        $(call MSG_TOOL,pcbiossums,PcBiosBin,$<,$@)
    96         $(QUIET)$(CP) -f $(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.bin
    97         $(QUIET)$(TARGET_pcbiossums) $(PATH_TARGET)/pcbios.bin
     94        $(QUIET)$(CP) -f $(PATH_PcBiosBin)/pcbios.tmp $(PATH_PcBiosBin)/pcbios.bin
     95        $(QUIET)$(TARGET_pcbiossums) $(PATH_PcBiosBin)/pcbios.bin
    9896
    9997# 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)
    10199        $(call MSG_GENERATE,PcBiosBin,$<,$@)
    102100        $(QUIET)$(SED) \
     
    104102                -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"),/' \
    105103                --output $@ \
    106                 $(PATH_TARGET)/pcbios.lst
     104                $(PATH_PcBiosBin)/pcbios.lst
    107105
    108106
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette