VirtualBox

Changeset 94861 in vbox


Ignore:
Timestamp:
May 5, 2022 5:08:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151261
Message:

Validation Kit: Moved TEMPLATE_VBOXVALIDATIONKITR3BASE to main Config.kmk and derive TEMPLATE_VBOXR3TSTEXE_VALKIT from it instead of TEMPLATE_VBoxR3Static. That way it's easier to maintain and not forgotten when we need to do more widespread changes (e.g. see r151253). bugref:​10195

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r94853 r94861  
    67286728endif
    67296729
    6730 #
    6731 # Ring-3 testcase for the Validation Kit .ISO.
     6730
     6731#
     6732# Base template for Validation Kit R3 programs that drops the -static flag since we only want to use the
     6733# static version of our own libraries and not the system libs.
     6734#
     6735# Note: In main Config.kmk, as this is needed by VBOXR3TSTEXE_VALKIT below.
     6736#
     6737TEMPLATE_VBOXVALIDATIONKITR3BASE = VBox Validation Kit ring-3 program base, both guest and host.
     6738TEMPLATE_VBOXVALIDATIONKITR3BASE_EXTENDS = VBoxR3Static
     6739ifeq ($(KBUILD_TARGET),win)
     6740 TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS))
     6741else ifn1of ($(KBUILD_TARGET), darwin solaris win)
     6742 TEMPLATE_VBOXVALIDATIONKITR3BASE_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
     6743 TEMPLATE_VBOXVALIDATIONKITR3BASE_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
     6744 TEMPLATE_VBOXVALIDATIONKITR3BASE_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
     6745 TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
     6746endif
     6747TEMPLATE_VBOXVALIDATIONKITR3BASE_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
     6748TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
     6749if1of ($(KBUILD_TARGET), linux)
     6750 if $(VBOX_GCC_VERSION_CXX) < 40800
     6751  TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS += supc++
     6752  TEMPLATE_VBOXVALIDATIONKITR3BASE_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
     6753 endif
     6754endif
     6755TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
     6756
     6757
     6758#
     6759# Template for ring-3 testcase for the Validation Kit .ISO.
     6760#
     6761# Note: In main Config.kmk, as this also is needed by the IPRT testcases, which are part of the Validation Kit .ISO testcases.
    67326762#
    67336763# Needed for running the ring-3 testcases on older guests (like NT4 / XP).
     
    67356765# See @bugref:10195.
    67366766#
    6737 TEMPLATE_VBOXR3TSTEXE_VALKIT = VBox Ring 3 Testcase Exe for Validation Kit .ISO
    6738 TEMPLATE_VBOXR3TSTEXE_VALKIT_EXTENDS = VBoxR3Static
     6767TEMPLATE_VBOXR3TSTEXE_VALKIT         = VBox Ring 3 Testcase Exe for Validation Kit .ISO
     6768TEMPLATE_VBOXR3TSTEXE_VALKIT_EXTENDS = VBOXVALIDATIONKITR3BASE
    67396769TEMPLATE_VBOXR3TSTEXE_VALKIT_INST    =  $(INST_VALIDATIONKIT)/testcase/
    6740 ifn1of ($(KBUILD_TARGET), darwin solaris win)
    6741  TEMPLATE_VBOXR3TSTEXE_VALKIT_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
    6742  TEMPLATE_VBOXR3TSTEXE_VALKIT_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
    6743  TEMPLATE_VBOXR3TSTEXE_VALKIT_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
    6744  TEMPLATE_VBOXR3TSTEXE_VALKIT_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    6745 endif
    6746 TEMPLATE_VBOXR3TSTEXE_VALKIT_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
    6747 TEMPLATE_VBOXR3TSTEXE_VALKIT_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
    6748 if1of ($(KBUILD_TARGET), linux)
    6749  if $(VBOX_GCC_VERSION_CXX) < 40800
    6750   TEMPLATE_VBOXR3TSTEXE_VALKIT_LIBS += supc++
    6751   TEMPLATE_VBOXR3TSTEXE_VALKIT_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
    6752  endif
    6753 endif
    6754 TEMPLATE_VBOXR3TSTEXE_VALKIT_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
     6770
    67556771
    67566772#
  • trunk/src/VBox/ValidationKit/Config.kmk

    r94853 r94861  
    3939
    4040#
    41 # Base template that drops the -static flag since we only want to use the
    42 # static version of our own libraries and not the system libs.
    43 #
    44 TEMPLATE_VBoxValidationKitR3Base = VBox Validation Kit ring-3 program base, both guest and host.
    45 TEMPLATE_VBoxValidationKitR3Base_EXTENDS = VBoxR3Static
    46 ifeq ($(KBUILD_TARGET),win)
    47  TEMPLATE_VBoxValidationKitR3Base_LDFLAGS         = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    48 else ifn1of ($(KBUILD_TARGET), darwin solaris win)
    49  TEMPLATE_VBoxValidationKitR3Base_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
    50  TEMPLATE_VBoxValidationKitR3Base_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
    51  TEMPLATE_VBoxValidationKitR3Base_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
    52  TEMPLATE_VBoxValidationKitR3Base_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    53 endif
    54 TEMPLATE_VBoxValidationKitR3Base_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
    55 TEMPLATE_VBoxValidationKitR3Base_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
    56 if1of ($(KBUILD_TARGET), linux)
    57  if $(VBOX_GCC_VERSION_CXX) < 40800
    58   TEMPLATE_VBoxValidationKitR3Base_LIBS += supc++
    59   TEMPLATE_VBoxValidationKitR3Base_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
    60  endif
    61 endif
    62 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
    63 
    64 #
    65 # Template for building ring-3 progams for the Validation Kit.
     41# Template for building ring-3 programs for the Validation Kit.
    6642# These programs can run on any host or guest.
    6743#
    6844TEMPLATE_VBoxValidationKitR3 = VBox Validation Kit ring-3 program, both guest and host.
    69 TEMPLATE_VBoxValidationKitR3_EXTENDS = VBoxValidationKitR3Base
     45TEMPLATE_VBoxValidationKitR3_EXTENDS = VBOXVALIDATIONKITR3BASE
    7046TEMPLATE_VBoxValidationKitR3_EXTENDS_BY = appending
    7147TEMPLATE_VBoxValidationKitR3_INST = $(INST_VALIDATIONKIT)$(KBUILD_TARGET)/$(KBUILD_TARGET_ARCH)/
     
    10278        -Section:.bss,RW!K
    10379ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.x86)
    104  TEMPLATE_VBoxValidationKitR3_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBoxValidationKitR3Base_POST_CMDS)$$(NLTAB)
     80 TEMPLATE_VBoxValidationKitR3_POST_CMDS = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB))$(TEMPLATE_VBOXVALIDATIONKITR3BASE_POST_CMDS)$$(NLTAB)
    10581endif
    10682TEMPLATE_VBoxValidationKitR3_LNK_DEPS.win.x86  = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION))
     
    225201endef
    226202endif
    227 
Note: See TracChangeset for help on using the changeset viewer.

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