VirtualBox

Changeset 94968 in vbox


Ignore:
Timestamp:
May 9, 2022 5:01:28 PM (3 years ago)
Author:
vboxsync
Message:

Validation Kit/unit tests: Cleaned up build templates by moving the Validation Kit-specific ones to ValidationKit/Config.kmk + derive TEMPLATE_VBoxValidationKitR3TstExe from VBoxValidationKitR3, as loader trickery is also needed here for older guests (XP and friends). bugref:10195

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r94908 r94968  
    67366736
    67376737#
    6738 # Base template for Validation Kit R3 programs that drops the -static flag since we only want to use the
    6739 # static version of our own libraries and not the system libs.
    6740 #
    6741 # Note: In main Config.kmk, as this is needed by VBOXR3TSTEXE_VALKIT below.
    6742 #
    6743 TEMPLATE_VBOXVALIDATIONKITR3BASE = VBox Validation Kit ring-3 program base, both guest and host.
    6744 TEMPLATE_VBOXVALIDATIONKITR3BASE_EXTENDS = VBoxR3Static
    6745 ifeq ($(KBUILD_TARGET),win)
    6746  TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    6747 else ifn1of ($(KBUILD_TARGET), darwin solaris win)
    6748  TEMPLATE_VBOXVALIDATIONKITR3BASE_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
    6749  TEMPLATE_VBOXVALIDATIONKITR3BASE_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
    6750  TEMPLATE_VBOXVALIDATIONKITR3BASE_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
    6751  TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
    6752 endif
    6753 TEMPLATE_VBOXVALIDATIONKITR3BASE_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
    6754 TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
    6755 if1of ($(KBUILD_TARGET), linux)
    6756  if $(VBOX_GCC_VERSION_CXX) < 40800
    6757   TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS += supc++
    6758   TEMPLATE_VBOXVALIDATIONKITR3BASE_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
    6759  endif
    6760 endif
    6761 TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
    6762 
    6763 
    6764 #
    6765 # Template for ring-3 testcase for the Validation Kit .ISO.
    6766 #
    6767 # Note: In main Config.kmk, as this also is needed by the IPRT testcases, which are part of the Validation Kit .ISO testcases.
    6768 #
    6769 # Needed for running the ring-3 testcases on older guests (like NT4 / XP).
    6770 # Those testcases then run as part of the Validation Kit and are included on the Validation Kit .ISO.
    6771 # See @bugref:10195.
    6772 #
    6773 TEMPLATE_VBOXR3TSTEXE_VALKIT         = VBox Ring 3 Testcase Exe for Validation Kit .ISO
    6774 TEMPLATE_VBOXR3TSTEXE_VALKIT_EXTENDS = VBOXVALIDATIONKITR3BASE
    6775 TEMPLATE_VBOXR3TSTEXE_VALKIT_INST    = $(INST_VALIDATIONKIT)/testcase/$(KBUILD_TARGET)/$(KBUILD_TARGET_ARCH)/testcase/
    6776 
    6777 
    6778 
    6779 #
    67806738# Ring-3 testcase (no -pedantic)
    67816739#
  • trunk/src/VBox/ValidationKit/Config.kmk

    r94861 r94968  
    3636#
    3737VBOX_PATH_VALIDATIONKIT_SRC := $(PATH_ROOT)/src/VBox/ValidationKit
     38
     39
     40#
     41# Base template for Validation Kit R3 programs 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#
     45TEMPLATE_VBOXVALIDATIONKITR3BASE = VBox Validation Kit ring-3 program base, both guest and host.
     46TEMPLATE_VBOXVALIDATIONKITR3BASE_EXTENDS = VBoxR3Static
     47ifeq ($(KBUILD_TARGET),win)
     48 TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS))
     49else ifn1of ($(KBUILD_TARGET), darwin solaris win)
     50 TEMPLATE_VBOXVALIDATIONKITR3BASE_CFLAGS          = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CFLAGS))
     51 TEMPLATE_VBOXVALIDATIONKITR3BASE_CXXFLAGS        = $(filter-out -static, $(TEMPLATE_VBoxR3Static_CXXFLAGS))
     52 TEMPLATE_VBOXVALIDATIONKITR3BASE_OBJCFLAGS       = $(filter-out -static, $(TEMPLATE_VBoxR3Static_OBJCFLAGS))
     53 TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS         = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS))
     54endif
     55TEMPLATE_VBOXVALIDATIONKITR3BASE_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))
     56TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS = $(TEMPLATE_VBoxR3Static_LIBS)
     57if1of ($(KBUILD_TARGET), linux)
     58 if $(VBOX_GCC_VERSION_CXX) < 40800
     59  TEMPLATE_VBOXVALIDATIONKITR3BASE_LIBS += supc++
     60  TEMPLATE_VBOXVALIDATIONKITR3BASE_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))
     61 endif
     62endif
     63TEMPLATE_VBOXVALIDATIONKITR3BASE_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit
    3864
    3965
     
    90116
    91117#
     118# Template for ring-3 testcases to be included on the Validation Kit .ISO.
     119#
     120# Needed for running the ring-3 testcases on older guests (like NT4 / XP).
     121# Those testcases then run as part of the Validation Kit and are included on the Validation Kit .ISO.
     122# See @bugref:10195.
     123#
     124TEMPLATE_VBoxValidationKitR3TstExe         = VBox Ring 3 Testcase Exe for Validation Kit .ISO
     125TEMPLATE_VBoxValidationKitR3TstExe_EXTENDS = VBoxValidationKitR3
     126TEMPLATE_VBoxValidationKitR3TstExe_INST    = $(INST_VALIDATIONKIT)/testcase/$(KBUILD_TARGET)/$(KBUILD_TARGET_ARCH)/testcase/
     127
     128
     129#
    92130# Template for building ring-3 programs for the Validation Kit.
    93131# When these programs run on the host they may take advantage of the
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