VirtualBox

Changeset 94968 in vbox for trunk/src/VBox/ValidationKit


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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