Changeset 12248 in vbox
- Timestamp:
- Sep 9, 2008 1:21:58 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r12170 r12248 20 20 # 21 21 22 ifdef VBOX_SINGLE_MAKEFILE23 22 SUB_DEPTH = ../../.. 24 else25 DEPTH = ../../..26 endif27 23 include $(KBUILD_PATH)/subheader.kmk 28 24 … … 214 210 endif 215 211 ifeq ($(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] $@ 212 VMMGCBuiltin_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 $@ $< 220 215 endif 221 216 … … 230 225 endif 231 226 ifeq ($(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] $@ 227 VMMGCImp_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" 238 232 endif 239 233 … … 251 245 endif 252 246 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] $@ 247 VMMR0Imp_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" 259 252 endif 260 253 endif # R0: pe + lx … … 338 331 endif 339 332 ifeq ($(VBOX_LDR_FMT32),lx) 340 VMMGC_SOURCES += $(PATH_ TARGET)/VMMGC.def333 VMMGC_SOURCES += $(PATH_VMMGCImp)/VMMGC.def 341 334 endif 342 335 … … 416 409 endif 417 410 ifeq ($(VBOX_LDR_FMT),lx) 418 VMMR0_SOURCES += $(PATH_ TARGET)/VMMR0.def411 VMMR0_SOURCES += $(PATH_VMMR0Imp)/VMMR0.def 419 412 endif 420 413 -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r12170 r12248 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 … … 47 42 endif 48 43 44 # Where we put our temporary files (just for simplicity) 45 VBOX_VMM_TESTCASE_OUT_DIR := $(PATH_TARGET)/VMM 46 BLDDIRS += $(VBOX_VMM_TESTCASE_OUT_DIR) 49 47 50 48 # … … 55 53 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),) 56 54 OTHERS += \ 57 $( PATH_TARGET)/tstAsmStructs.run \58 $( PATH_TARGET)/tstVMStructSize.run55 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \ 56 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run 59 57 endif 60 58 endif … … 62 60 # The normal testing pass. 63 61 TESTING += \ 64 $( PATH_TARGET)/tstAsmStructs.run \65 $( PATH_TARGET)/tstVMStructSize.run62 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run \ 63 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run 66 64 67 65 OTHER_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.h66 $(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 79 77 80 78 # … … 99 97 tstVMStructSize_DEFS += VBOX_WITH_IDT_PATCHING 100 98 endif 101 tstVMStructSize_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM $( PATH_TARGET)99 tstVMStructSize_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_PATH_VMM_SRC)/PATM $(VBOX_VMM_TESTCASE_OUT_DIR) 102 100 tstVMStructSize_SOURCES = tstVMStructSize.cpp 103 tstVMStructSize.cpp_DEPS= $( PATH_TARGET)/tstVMStructGC.h101 tstVMStructSize.cpp_DEPS= $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h 104 102 105 103 tstAsmStructs_TEMPLATE = VBOXR3AUTOTST … … 108 106 tstAsmStructs_DEFS += VBOX_WITH_IDT_PATCHING 109 107 endif 110 tstAsmStructs_INCS = $(VBOX_PATH_VMM_SRC) $( PATH_TARGET)108 tstAsmStructs_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR) 111 109 tstAsmStructs_SOURCES = tstAsmStructs.cpp 112 110 … … 116 114 tstAsmStructsGC_DEFS += VBOX_WITH_IDT_PATCHING 117 115 endif 118 tstAsmStructsGC_INCS = $(VBOX_PATH_VMM_SRC) $( PATH_TARGET)116 tstAsmStructsGC_INCS = $(VBOX_PATH_VMM_SRC) $(VBOX_VMM_TESTCASE_OUT_DIR) 119 117 tstAsmStructsGC_SOURCES = tstAsmStructs.cpp 120 118 121 tstAsmStructs.cpp_DEPS = $( PATH_TARGET)/tstAsmStructsHC.h $(PATH_TARGET)/tstAsmStructsGC.h119 tstAsmStructs.cpp_DEPS = $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h 122 120 123 121 … … 227 225 ) \ 228 226 -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)/) 230 228 231 229 # 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: \ 233 231 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \ 234 232 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed \ … … 242 240 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \ 243 241 $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) \ 244 | $ (call DIRDEP,$(PATH_TARGET))242 | $$(dir $$@) 245 243 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 246 244 ifndef DONT_USE_YASM … … 256 254 257 255 # 1b. make an elf/macho object containing the offsets. 258 $( PATH_TARGET)/tstAsmStructsAsm.o: \256 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o: \ 259 257 $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm.asm \ 260 $( PATH_TARGET)/tstAsmStructsAsm.mac \258 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.mac \ 261 259 $(VBOX_PATH_VMM_SRC)/testcase/Makefile.kmk \ 262 | $ (call DIRDEP,$(PATH_TARGET))260 | $$(dir $$@) 263 261 $(call MSG_COMPILE,tstAsmStructsasm,$<,$@,AS) 264 262 ifndef DONT_USE_YASM … … 269 267 270 268 # 2. use nm and sed to transform this into the header we want. 271 $( PATH_TARGET)/tstAsmStructsHC.h: $(PATH_TARGET)/tstAsmStructsAsm.o269 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsAsm.o 272 270 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 273 271 $(QUIET)$(RM) -f $@ [email protected] [email protected] … … 283 281 284 282 # 3. transform the HC header into a GC one by omitting some HC only structures. 285 $( PATH_TARGET)/tstAsmStructsGC.h: $(PATH_TARGET)/tstAsmStructsHC.h283 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsGC.h: $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructsHC.h 286 284 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 287 285 $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' --output $@ $^ … … 291 289 292 290 # 4. run it. 293 $( PATH_TARGET)/tstAsmStructs.run: $$(INSTARGET_tstAsmStructs) $$(INSTARGET_tstAsmStructsGC)291 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstAsmStructs.run: $$(INSTARGET_tstAsmStructs) $$(INSTARGET_tstAsmStructsGC) 294 292 $(QUIET)$(RM) -f $@ 295 293 $(INSTARGET_tstAsmStructs) … … 304 302 305 303 # 1. Manually dump selected structures and members. 306 $( PATH_TARGET)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC)304 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC) 307 305 $(call MSG_GENERATE,tstVMStructSize,$@) 308 306 $(QUIET)$(REDIRECT) -wo $@ -- $^ 309 307 310 308 # 2. run it. 311 $( PATH_TARGET)/tstVMStructSize.run: $$(INSTARGET_tstVMStructSize)309 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstVMStructSize.run: $$(INSTARGET_tstVMStructSize) 312 310 $(QUIET)$(RM) -f $@ 313 311 $^ … … 315 313 316 314 # alias for the two struct tests. 317 run-struct-tests: $( PATH_TARGET)/tstAsmStructs.run $(PATH_TARGET)/tstVMStructSize.run318 315 run-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.