VirtualBox

Changeset 12248 in vbox


Ignore:
Timestamp:
Sep 9, 2008 1:21:58 AM (16 years ago)
Author:
vboxsync
Message:

VMM/Makefiles: Eliminated PATH_TARGET usage and pushed them up to root level (sub-makefile wise).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r12170 r12248  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../..
    24 else
    25 DEPTH     = ../../..
    26 endif
    2723include $(KBUILD_PATH)/subheader.kmk
    2824
     
    214210endif
    215211ifeq ($(VBOX_LDR_FMT32),lx)
    216 VMMGCBuiltin_SOURCES = $(PATH_TARGET)/VMMGCBuiltin.def
    217 $(PATH_TARGET)/VMMGCBuiltin.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGCBuiltin.def | $(call DIRDEP,$(PATH_TARGET))
    218         $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /' $< > [email protected]
    219         $(MV) -f [email protected] $@
     212VMMGCBuiltin_SOURCES = $(PATH_VMMGCBuiltin)/VMMGCBuiltin.def
     213$$(PATH_VMMGCBuiltin)/VMMGCBuiltin.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGCBuiltin.def | $$(dir $$@)
     214        $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@ $<
    220215endif
    221216
     
    230225endif
    231226ifeq ($(VBOX_LDR_FMT32),lx)
    232 VMMGCImp_SOURCES = $(PATH_TARGET)/VMMGC.def
    233 $(PATH_TARGET)/VMMGC.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGC.def | $(call DIRDEP,$(PATH_TARGET))
    234         $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /' $< > [email protected]
    235         $(APPEND) "[email protected]" ""
    236         $(APPEND) "[email protected]" "    ___ehInit"
    237         $(MV) -f [email protected] $@
     227VMMGCImp_SOURCES = $(PATH_VMMGCImp)/VMMGC.def
     228$$(PATH_VMMGCImp)/VMMGC.def: $(PATH_SUB_CURRENT)/VMMGC/VMMGC.def | $$(dir $$@)
     229        $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /' --output $@  $<
     230        $(APPEND) "$@" ""
     231        $(APPEND) "$@" "    ___ehInit"
    238232endif
    239233
     
    251245 endif
    252246 ifeq ($(VBOX_LDR_FMT),lx)
    253 VMMR0Imp_SOURCES = $(PATH_TARGET)/VMMR0.def
    254 $(PATH_TARGET)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $(call DIRDEP,$(PATH_TARGET))
    255         $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /' $< > [email protected]
    256         $(APPEND) "[email protected]" ""
    257         $(APPEND) "[email protected]" "    ___ehInit"
    258         $(MV) -f [email protected] $@
     247VMMR0Imp_SOURCES = $(PATH_VMMR0Imp)/VMMR0.def
     248$$(PATH_VMMR0Imp)/VMMR0.def: $(PATH_SUB_CURRENT)/VMMR0/VMMR0.def | $$(dir $$@)
     249        $(SED) -e '/not-os2/d' -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' -e 's/[ \t]DATA[ \t]*/ /'  --output $@ $<
     250        $(APPEND) "$@" ""
     251        $(APPEND) "$@" "    ___ehInit"
    259252 endif
    260253endif # R0: pe + lx
     
    338331endif
    339332ifeq ($(VBOX_LDR_FMT32),lx)
    340 VMMGC_SOURCES += $(PATH_TARGET)/VMMGC.def
     333VMMGC_SOURCES += $(PATH_VMMGCImp)/VMMGC.def
    341334endif
    342335
     
    416409endif
    417410ifeq ($(VBOX_LDR_FMT),lx)
    418 VMMR0_SOURCES += $(PATH_TARGET)/VMMR0.def
     411VMMR0_SOURCES += $(PATH_VMMR0Imp)/VMMR0.def
    419412endif
    420413
  • trunk/src/VBox/VMM/testcase/Makefile.kmk

    r12170 r12248  
    2020#
    2121
    22 ifdef VBOX_SINGLE_MAKEFILE
    2322SUB_DEPTH = ../../../..
    24 else
    25 SUB_DEPTH = ..
    26 DEPTH    ?= ../../../..
    27 endif
    2823include $(KBUILD_PATH)/subheader.kmk
    2924
     
    4742endif
    4843
     44# Where we put our temporary files (just for simplicity)
     45VBOX_VMM_TESTCASE_OUT_DIR := $(PATH_TARGET)/VMM
     46BLDDIRS += $(VBOX_VMM_TESTCASE_OUT_DIR)
    4947
    5048#
     
    5553 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
    5654  OTHERS += \
    57         $(PATH_TARGET)/tstAsmStructs.run \
    58         $(PATH_TARGET)/tstVMStructSize.run
     55        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
     56        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
    5957 endif
    6058endif
     
    6260# The normal testing pass.
    6361TESTING += \
    64         $(PATH_TARGET)/tstAsmStructs.run \
    65         $(PATH_TARGET)/tstVMStructSize.run
     62        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
     63        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
    6664
    6765OTHER_CLEAN += \
    68         $(PATH_TARGET)/tstAsmStructs.run \
    69         $(PATH_TARGET)/tstVMStructSize.run \
    70         $(PATH_TARGET)/tstAsmStructs.h \
    71         $(PATH_TARGET)/tstAsmStructsAsm.o \
    72         $(PATH_TARGET)/tstAsmStructsAsm.mac \
    73         $(PATH_TARGET)/tstAsmStructsAsm.mac.o \
    74         $(PATH_TARGET)/tstAsmStructsAsm.mac.lst \
    75         $(PATH_TARGET)/tstAsmStructs.h.dump \
    76         $(PATH_TARGET)/tstAsmStructsGC.h \
    77         $(PATH_TARGET)/tstAsmStructsHC.h \
    78         $(PATH_TARGET)/tstVMStructGC.h
     66        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \
     67        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run \
     68        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.h \
     69        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o \
     70        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
     71        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.o \
     72        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac.lst \
     73        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.h.dump \
     74        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h \
     75        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h \
     76        $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h
    7977
    8078#
     
    9997tstVMStructSize_DEFS   += VBOX_WITH_IDT_PATCHING
    10098endif
    101 tstVMStructSize_INCS    = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM $(PATH_TARGET)
     99tstVMStructSize_INCS    = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM $(VBOX_VMM_TESTCASE_OUT_DIR)
    102100tstVMStructSize_SOURCES = tstVMStructSize.cpp
    103 tstVMStructSize.cpp_DEPS= $(PATH_TARGET)/tstVMStructGC.h
     101tstVMStructSize.cpp_DEPS= $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h
    104102
    105103tstAsmStructs_TEMPLATE  = VBOXR3AUTOTST
     
    108106tstAsmStructs_DEFS     += VBOX_WITH_IDT_PATCHING
    109107endif
    110 tstAsmStructs_INCS      = $(VBOX_PATH_VMM_SRC) $(PATH_TARGET)
     108tstAsmStructs_INCS      = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR)
    111109tstAsmStructs_SOURCES   = tstAsmStructs.cpp
    112110
     
    116114tstAsmStructsGC_DEFS    += VBOX_WITH_IDT_PATCHING
    117115endif
    118 tstAsmStructsGC_INCS    = $(VBOX_PATH_VMM_SRC) $(PATH_TARGET)
     116tstAsmStructsGC_INCS    = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR)
    119117tstAsmStructsGC_SOURCES = tstAsmStructs.cpp
    120118
    121 tstAsmStructs.cpp_DEPS  = $(PATH_TARGET)/tstAsmStructsHC.h $(PATH_TARGET)/tstAsmStructsGC.h
     119tstAsmStructs.cpp_DEPS  = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h
    122120
    123121
     
    227225                ) \
    228226                -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \
    229                 $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(PATH_TARGET),-I$(inc)/)
     227                $(foreach inc,$(INCS) $(VBOX_PATH_VMM_SRC)/testcase $(VBOX_VMM_TESTCASE_OUT_DIR),-I$(inc)/)
    230228
    231229# 1a. make a header file which makes all the structures+members globals.
    232 $(PATH_TARGET)/tstAsmStructsAsm.mac: \
     230$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac: \
    233231                $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
    234232                $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed \
     
    242240                $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
    243241                $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) \
    244                 | $(call DIRDEP,$(PATH_TARGET))
     242                | $$(dir $$@)
    245243        $(call MSG_GENERATE,tstVMStructSize,$@,$<)
    246244ifndef DONT_USE_YASM
     
    256254
    257255# 1b. make an elf/macho object containing the offsets.
    258 $(PATH_TARGET)/tstAsmStructsAsm.o: \
     256$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o: \
    259257                $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \
    260                 $(PATH_TARGET)/tstAsmStructsAsm.mac \
     258                $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \
    261259                $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \
    262                 | $(call DIRDEP,$(PATH_TARGET))
     260                | $$(dir $$@)
    263261        $(call MSG_COMPILE,tstAsmStructsasm,$<,$@,AS)
    264262ifndef DONT_USE_YASM
     
    269267
    270268# 2. use nm and sed to transform this into the header we want.
    271 $(PATH_TARGET)/tstAsmStructsHC.h: $(PATH_TARGET)/tstAsmStructsAsm.o
     269$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o
    272270        $(call MSG_GENERATE,tstVMStructSize,$@,$<)
    273271        $(QUIET)$(RM) -f $@ [email protected] [email protected]
     
    283281
    284282# 3. transform the HC header into a GC one by omitting some HC only structures.
    285 $(PATH_TARGET)/tstAsmStructsGC.h: $(PATH_TARGET)/tstAsmStructsHC.h
     283$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h
    286284        $(call MSG_GENERATE,tstVMStructSize,$@,$<)
    287285        $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' --output $@ $^
     
    291289
    292290# 4. run it.
    293 $(PATH_TARGET)/tstAsmStructs.run: $$(INSTARGET_tstAsmStructs) $$(INSTARGET_tstAsmStructsGC)
     291$(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run: $$(INSTARGET_tstAsmStructs) $$(INSTARGET_tstAsmStructsGC)
    294292        $(QUIET)$(RM) -f $@
    295293        $(INSTARGET_tstAsmStructs)
     
    304302
    305303# 1. Manually dump selected structures and members.
    306 $(PATH_TARGET)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC)
     304$(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC)
    307305        $(call MSG_GENERATE,tstVMStructSize,$@)
    308306        $(QUIET)$(REDIRECT) -wo $@ -- $^
    309307
    310308# 2. run it.
    311 $(PATH_TARGET)/tstVMStructSize.run: $$(INSTARGET_tstVMStructSize)
     309$(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run: $$(INSTARGET_tstVMStructSize)
    312310        $(QUIET)$(RM) -f $@
    313311        $^
     
    315313
    316314# alias for the two struct tests.
    317 run-struct-tests: $(PATH_TARGET)/tstAsmStructs.run $(PATH_TARGET)/tstVMStructSize.run
    318 
     315run-struct-tests: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run
     316
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