VirtualBox

Changeset 10043 in vbox


Ignore:
Timestamp:
Jun 30, 2008 11:54:38 PM (16 years ago)
Author:
vboxsync
Message:

Fixed a couple of wrong deps (TARGET_PATH instead of PATH_TARGET, missing double expansion of TARGET_vbetables-gen in rule dependency). Rewrote the bcc temp file workaround to not use .NOTPARALLEL as that is wasting time in a parallel build.

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk

    r9218 r10043  
    2020#
    2121
    22 DEPTH ?= ../../../../..
     22ifdef VBOX_KBUILD_HACKING
     23SUB_DEPTH = ../../../../..
     24else
    2325SUB_DEPTH = ../..
     26DEPTH    ?= ../../../../..
     27endif
    2428include $(KBUILD_PATH)/subheader.kmk
    2529
    26 VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
     30VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices
    2731
    2832#
     
    7478
    7579# 1. create vbetables.h
    76 $(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $(TARGET_vbetables-gen)
     80$(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) $$(TARGET_vbetables-gen)
    7781        $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen)
    7882
     
    8286        $(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 $@ $<
    8387
    84 # 3. compile - tempfile clashes, so make sure it's built in solitude.
    85 .NOTPARALLEL: $(PATH_TARGET)/vgabios0.s
    86 $(PATH_TARGET)/vgabios0.s: $(PATH_TARGET)/_vgabios_.c
     88# 3. compile
     89# 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)
    8791        $(call MSG_COMPILE,VgaBiosBin,$<,$@,C)
    8892        $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^
     93VBOX_BCC_JOBS += $(PATH_TARGET)/vgabios0.s
    8994
    9095# 4. preprocess intermediate assembly.
  • trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk

    r8760 r10043  
    2020#
    2121
    22 DEPTH ?= ../../../../../
     22ifdef VBOX_KBUILD_HACKING
     23SUB_DEPTH = ../../../../..
     24else
    2325SUB_DEPTH = ../..
     26DEPTH    ?= ../../../../..
     27endif
    2428include $(KBUILD_PATH)/subheader.kmk
    2529
    26 VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
     30VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices
    2731
    2832#
     
    6670# 1. precompile rombios.c
    6771$(PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S \
    68                 $(PATH_SUB_CURRENT)/../DevPcBios.h $(PATH_ROOT)/include/VBox/bioslogo.h | $(call DIRDEP,$(TARGET_PATH))
     72                $(PATH_SUB_CURRENT)/../DevPcBios.h $(PATH_ROOT)/include/VBox/bioslogo.h | $(call DIRDEP,$(PATH_TARGET))
    6973        $(call MSG_TOOL,cpp,PcBiosBin,$<,$@)
    7074        $(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 $@ $<
    7175
    72 # 2. compile to intermediate asm file - tempfile clashes, make sure it's built alone.
    73 .NOTPARALLEL: $(PATH_TARGET)/rombios0.s
    74 $(PATH_TARGET)/rombios0.s: $(PATH_TARGET)/_rombios_.c
     76# 2. compile to intermediate asm file.
     77# 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_BCC_JOBS)
    7579        $(call MSG_COMPILE,PcBiosBin,$<,$@,C)
    7680        $(QUIET)$(VBOX_BCC) -o $@ -C-c -D__i86__ -0 -S $^
     81VBOX_BCC_JOBS += $(PATH_TARGET)/rombios0.s
    7782
    7883# 3. post process intermediate asm file.
  • trunk/src/VBox/Devices/testcase/Makefile.kmk

    r10042 r10043  
    4747# Globals
    4848#
    49 VBOX_PATH_DEVICES_SRC = $(PATH_ROOT)/src/VBox/Devices
     49VBOX_PATH_DEVICES_SRC ?= $(PATH_ROOT)/src/VBox/Devices
    5050
    5151#
Note: See TracChangeset for help on using the changeset viewer.

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