VirtualBox

Changeset 1279 in vbox


Ignore:
Timestamp:
Mar 6, 2007 8:16:19 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19231
Message:

Use 'nm' instead of 'objdump'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/Makefile

    r1210 r1279  
    2121DEPTH = ../../../..
    2222include $(PATH_KBUILD)/header.kmk
    23 include $(PATH_KBUILD)/tools/MINGW32.kmk
    2423
    2524#
    2625# Target lists.
    2726#
    28 #LIBRARIES        = tstHelp
    29 PROGRAMS         = tstVMStructSize tstVMStructGC
    30 ifneq ($(BUILD_TARGET),darwin)
    31 PROGRAMS        += tstAsmStructs tstAsmStructsGC
    32 endif
    33 PROGRAMS        += tstVMM tstVMM-HwAccm
     27PROGRAMS        = tstVMStructSize tstVMStructGC tstAsmStructs tstAsmStructsGC tstVMM tstVMM-HwAccm
    3428ifdef VBOX_WITH_TESTCASES
    35 PROGRAMS        += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1
    36 ifneq ($(BUILD_TARGET),l4)
    37 PROGRAMS        += tstAnimate
    38 endif
    39 #PROGRAMS        += tstProg1 tstProg2 tstProg3
    40 SYSMODS          = tstMicroGC
     29 PROGRAMS       += tstCFGM tstSSM tstMMHyperHeap tstVMM-2 tstVMREQ tstMicro tstCompiler tstVMMR0CallHost-1
     30 ifneq ($(BUILD_TARGET),l4)
     31  PROGRAMS      += tstAnimate
     32 endif
     33 SYSMODS         = tstMicroGC
    4134endif # VBOX_WITH_TESTCASES
    4235
     
    6760# Targets
    6861#
    69 tstHelp_TEMPLATE        = VBOXLNX32GUESTR3
    70 tstHelp_SOURCES         = tstHelpA.asm tstHelp.c
    71 
    72 tstProg1_TEMPLATE       = VBOXLNX32GUESTR3
    73 tstProg1_SOURCES        = tstProg-1.c tstProg-1A.asm
    74 tstProg1_LIBS           = $(PATH_LIB)/tstHelp$(VBOX_SUFF_LIB)
    75 tstProg1_LDFLAGS.linux  = -static
    76 
    77 tstProg2_TEMPLATE       = VBOXLNX32GUESTR3
    78 tstProg2_SOURCES        = tstProg-2.c tstProg-2A.asm
    79 tstProg2_LDFLAGS.linux  = -static
    80 
    81 tstProg3_TEMPLATE       = VBOXLNX32GUESTR3
    82 tstProg3_SOURCES        = tstProg-3.c
    83 tstProg3_LDFLAGS.linux  = -static
    84 
    85 
    8662tstVMStructGC_TEMPLATE  = VBOXGCEXE
    8763tstVMStructGC_DEFS      = IN_VMM_GC IN_PDM_GC IN_CFGM_GC IN_IOM_GC IN_VM_GC IN_CPUM_GC IN_SELM_GC IN_PGM_GC IN_TRPM_GC IN_MM_GC IN_PDM_GC IN_DBGF_GC IN_PATM_GC IN_DIS_GC IN_STAM_GC IN_VGADEVICE_GC IN_CSAM_GC IN_SSM_GC IN_REM_GC IN_RRM_GC
     
    185161                ../TRPMInternal.mac \
    186162                ../VMMInternal.mac \
    187                 Makefile
     163                Makefile \
     164                | $(call DIRDEP,$(PATH_TARGET))
    188165        $(call MSG_L1,Compiling $<)
    189166ifndef DONT_USE_YASM
     
    197174                        $(DEFS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \
    198175                ) \
    199                 -f elf -g stabs $(foreach inc,$(INCS),-I$(inc)/) -o $@ $<
     176                -f $(if $(eq $(BUILD_TARGET),darwin),macho,elf) -g stabs \
     177                $(foreach inc,$(INCS),-I$(inc)/) -o $@ $<
    200178else
    201179        $(QUIET)$(TOOL_NASM_AS) \
     
    208186                        $(DEFS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)) \
    209187                ) \
    210                 -f elf $(foreach inc,$(INCS),-I$(inc)/) -o $@ $<
    211 endif
    212 
    213 # 2. use objdump and sed to transform this into the header we want.
     188                -f $(if $(eq $(BUILD_TARGET),darwin),macho,elf) \
     189                $(foreach inc,$(INCS),-I$(inc)/) -o $@ $<
     190endif
     191
     192# 2. use nm and sed to transform this into the header we want.
     193ifeq ($(BUILD_PLATFORM),win)
     194 include $(PATH_KBUILD)/tools/MINGW32.kmk
     195 VBOX_NM ?= $(PATH_TOOL_MINGW32)/bin/nm.exe -p
     196else
     197 VBOX_NM ?= nm -p
     198endif
    214199$(PATH_TARGET)/tstAsmStructsHC.h: $(PATH_TARGET)/tstAsmStructsAsm.o
    215200        $(call MSG_L1,Generating $@)
    216201        $(QUIET)$(RM) -f $@ [email protected] [email protected]
    217 ifeq ($(BUILD_PLATFORM),win)
    218         $(QUIET)$(PATH_TOOL_MINGW32)/bin/objdump.exe -x $< > [email protected]
    219 else
    220         $(QUIET)objdump -x $< > [email protected]
    221 endif
     202        $(VBOX_NM) $< > [email protected]
    222203        $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \
    223                -e '/ l[[:space:]]*\*ABS\*[[:space:]]*00000000[[:space:]]*[^_.]*\./!d'     -e 's/^[0]*\(.*\) l.*00000000 \([^.]*\)\.\(.*$$\)/    CHECK_OFF(\2, 0x0\1, \3);/' \
     204               -e '/00[0-9a-fA-F]* a [^_.]*\./!d'     -e 's/\(00[0-9a-fA-F]*\) a \([^.]*\)\.\(.*$$\)/    CHECK_OFF(\2, 0x0\1, \3);/' \
    224205               [email protected][email protected]
    225206        $(QUIET)$(SED) -e '/VM_size$$/d' \
    226                -e '/ l[[:space:]]*\*ABS\*[[:space:]]*00000000[[:space:]]*[^_.]*\_size/!d' -e 's/^[0]*\(.*\) l.*00000000 \([^.]*\)\_size/    CHECK_SIZE(\2, 0x0\1);/' \
     207               -e '/00[0-9a-fA-F]* a [^_.]*_size$$/!d'  -e 's/\(00[0-9a-fA-F]*\) a \([^_.]*\)_size/    CHECK_SIZE(\2, 0x0\1);/' \
    227208               [email protected] >> [email protected]
    228209        $(QUIET)$(MV) -f [email protected] $@
     
    263244# alias for the two struct tests.
    264245run-struct-tests: $(PATH_TARGET)/tstAsmStructs.run $(PATH_TARGET)/tstVMStructSize.run
    265 
     246run-asm-tests: $(PATH_TARGET)/tstAsmStructs.run
     247        $(ECHO) $<
     248
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