Makefile.kmk revision 1042ff61f0b8de217c7e694021be0b9a5b9b8468
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# Sub-Makefile for the support library and the drivers/modules/kexts it uses.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# Copyright (C) 2006-2012 Oracle Corporation
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# available from http://www.virtualbox.org. This file is free software;
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# you can redistribute it and/or modify it under the terms of the GNU
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# General Public License (GPL) as published by the Free Software
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# The contents of this file may alternatively be used under the terms
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# of the Common Development and Distribution License Version 1.0
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# VirtualBox OSE distribution, in which case the provisions of the
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# CDDL are applicable instead of those of the GPL.
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync# You may elect to license modified versions of this file under the
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync# terms and conditions of either the GPL or the CDDL or both.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUB_DEPTH = ../../../..
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncinclude $(KBUILD_PATH)/subheader.kmk
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncLIBRARIES += SUPR3 SUPR3Static
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncifdef VBOX_WITH_HARDENING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync LIBRARIES += SUPR3HardenedStatic
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncDLLS.win += VBoxSupLib
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncifdef VBOX_WITH_32_ON_64_MAIN_API
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync LIBRARIES += SUPR3-x86
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncifndef VBOX_ONLY_DOCS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync if1of ($(VBOX_LDR_FMT), pe lx)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync LIBRARIES += SUPR0
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif !defined(VBOX_ONLY_DOCS) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync && !defined(VBOX_ONLY_EXTPACKS) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync && !defined(VBOX_ONLY_VALIDATIONKIT)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_SUPSVC
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync PROGRAMS += VBoxSupSvc
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync ifdef VBOX_WITH_VBOXDRV
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync LIBRARIES += SUPR0IdcClient
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync INSTALLS.linux += vboxdrv-mod
acca7ab818eb8c2832aa27e27ce53133fba927dbvboxsync INSTALLS.freebsd += vboxdrv-mod
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync # Include sub-makefile(s).
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync # Populate FILES_VBOXDRV_NOBIN and FILES_VBOXDRV_BIN
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync ifeq ($(KBUILD_TARGET),linux)
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync include $(PATH_SUB_CURRENT)/linux/files_vboxdrv
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync ifeq ($(KBUILD_TARGET),freebsd)
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync include $(PATH_SUB_CURRENT)/freebsd/files_vboxdrv
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync# Authenticode related trust anchors and certificates -> .cpp
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsyncVBOX_SUP_WIN_CERTS_FILE = $(SUPR3_0_OUTDIR)/TrustAnchorsAndCerts.cpp
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsyncVBOX_SUP_WIN_CERTS := \
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync SpcRootMicrosoft0=SpcRoot-MicrosoftAuthenticodeTmRootAuthority-01.taf \
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync SpcRootMicrosoft1=SpcRoot-MicrosoftRootAuthority-00c1008b3c3c8811d13ef663ecdf40.taf \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SpcRootMicrosoft2=SpcRoot-MicrosoftRootCertificateAuthority-79ad16a14aa0a5ad4c7358f407132e65.taf \
ed82223f8f7be1435bf9b203a0ee4fbdfc856dc8vboxsync SpcRootMicrosoft3=SpcRoot-MicrosoftRootCertificateAuthority2010-28cc3a25bfba44ac449a9b586b4339aa.taf \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SpcRootMicrosoft4=SpcRoot-MicrosoftRootCertificateAuthority2011-3f8bc8b5fc9fb29643b569d66c42e144.taf \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SpcRootMicrosoft5=SpcRoot-MicrosoftDigitalMediaAuthority2005-6eff330eb6e7569740680870104baaba.taf \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync NtRootMicrosoft6=NtRoot-MicrosoftCodeVerificationRoot-729404101f3e0ca347837fca175a8438.taf \
5eb36887f6970e0033f63fa135f3bb8fbfd6059bvboxsync TimeRootMicrosoft0=Timestamp-CopyrightC1997MicrosoftCorp-01.taf \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync TrustedCertVBox0=Trusted-OracleCorporationVirtualBox-51ca009816fdbd80f120e015ee75823e.taf
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBOX_SUP_WIN_CERT_NAMES := $(foreach cert,$(VBOX_SUP_WIN_CERTS),$(firstword $(subst =,$(SPACE) ,$(cert))))
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBOX_PATH_SUPR3_CERTIFICATES := $(PATH_SUB_CURRENT)/win/Certificates
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# 1=name, 2=filter, 3=buildcert?.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBOX_SUP_GEN_CERT_MACRO = 'SUPTAENTRY const g_aSUP$(1)TAs[] =' '{' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if-expr "$(3)" == "",,' SUPTAENTRY_GEN(g_abSUPBuildCert),') \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' ''
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBOX_SUP_GEN_CERT_MACRO = 'SUPTAENTRY const g_aSUP$(1)TAs[] =' '{' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' ''
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync$$(VBOX_SUP_WIN_CERTS_FILE): $(MAKEFILE_CURRENT) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(foreach cert,$(VBOX_SUP_WIN_CERTS),$(VBOX_PATH_SUPR3_CERTIFICATES)/$(lastword $(subst =,$(SPACE) ,$(cert)))) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_BIN2C) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if-expr "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING),$(VBOX_RTSIGNTOOL)) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync | $$(dir $$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(RM) -f -- $@ $@.cer
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync $(QUIET)$(APPEND) -n "$@" \
63a3c5be7ac89d0d5b3386988f8c2f78df0cacf6vboxsync '#include <VBox/sup.h>' \
ed82223f8f7be1435bf9b203a0ee4fbdfc856dc8vboxsync $(foreach cert,$(VBOX_SUP_WIN_CERTS), $(NLTAB)$(VBOX_BIN2C) -ascii --append \
ed82223f8f7be1435bf9b203a0ee4fbdfc856dc8vboxsync "SUP$(firstword $(subst =,$(SP) ,$(cert)))" \
47e063db54028c020dd3e85a2467d7a279e47a8avboxsync "$(VBOX_PATH_SUPR3_CERTIFICATES)/$(lastword $(subst =,$(SP) ,$(cert)))" \
ed82223f8f7be1435bf9b203a0ee4fbdfc856dc8vboxsync# The build certificate.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --exe $(VBOX_RTSIGNTOOL) --output "$@.cer" --der
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_BIN2C) -ascii --append SUPBuildCert "$@.cer" $@
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(RM) -f -- $@.cer
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# Generate certificate lists.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(APPEND) -n "$@" '' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call VBOX_SUP_GEN_CERT_MACRO,All,%,build) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call VBOX_SUP_GEN_CERT_MACRO,SpcRoot,SpcRoot%) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call VBOX_SUP_GEN_CERT_MACRO,NtKernelRoot,NtRoot%) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call VBOX_SUP_GEN_CERT_MACRO,Timestamp,TimeRoot%) \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(call VBOX_SUP_GEN_CERT_MACRO,Trusted,TrustedCert%,build)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsynctst: $(VBOX_SUP_WIN_CERTS_FILE)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync# The Ring-3 Support Library (this is linked into the IPRT dll, VBoxRT).
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3_TEMPLATE = VBOXR3
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3_DEFS = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync IN_SUP_R3 IN_RT_R3 \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync VBOX_PERMIT_MORE
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsyncSUPR3_INCS := $(PATH_SUB_CURRENT)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3_SOURCES = \
25c15196ec95f6a53e802167c815286cecfeb278vboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp \
25c15196ec95f6a53e802167c815286cecfeb278vboxsync $(VBOX_SUP_WIN_CERTS_FILE)
25c15196ec95f6a53e802167c815286cecfeb278vboxsyncifdef VBOX_WITH_HARDENING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3-x86_TEMPLATE = VBoxR3Dll-x86
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3-x86_EXTENDS = SUPR3
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# Static version of SUPR3. This is more of a stub than anything else in a
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# hardened build, at least on windows.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3Static_TEMPLATE = VBOXR3STATIC
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3Static_EXTENDS = SUPR3
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3Static_DEFS = $(SUPR3_DEFS) IN_SUP_R3_STATIC
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3Static_SOURCES.win = $(filter-out win/SUPHardenedVerifyImage-win.cpp, $(SUPR3_SOURCES.win))
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# The static part of the hardened support library (ring-3).
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBOX_PATH_RUNTIME_SRC ?= $(PATH_ROOT)/src/VBox/Runtime
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3HardenedStatic_TEMPLATE = VBOXR3HARDENEDLIB
a0a3a26a4065b9401681a8c99a11bd83e08f94ccvboxsyncSUPR3HardenedStatic_DEFS = IN_SUP_HARDENED_R3
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3HardenedStatic_DEFS += \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_SUPSVC),VBOX_WITH_SUPSVC,) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
a0a3a26a4065b9401681a8c99a11bd83e08f94ccvboxsync $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_PERMIT_VISUAL_STUDIO_PROFILING),VBOX_PERMIT_VISUAL_STUDIO_PROFILING,) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBOX_PERMIT_MORE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncifdef VBOX_WITH_VISTA_NO_SP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_DEFS.win += VBOX_WITH_VISTA_NO_SP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3HardenedStatic_INCS = .
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3HardenedStatic_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_SUP_WIN_CERTS_FILE)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING) ## @todo some of this move up.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_DEFS += IN_RT IN_RT_R3 IN_RT_STATIC IPRT_NO_CRT RT_WITH_NOCRT_ALIASES LOG_DISABLED IPRT_NO_ERROR_DATA
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_DEFS.win += LDR_ONLY_PE __STRALIGN_H_
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_INCS += $(PATH_ROOT)/include/iprt/nocrt $(VBOX_PATH_RUNTIME_SRC)/include
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_SOURCES += \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldr.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrEx.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrPE.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-basics.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-cursor.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-default-allocator.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-dump.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-encode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring-decode.cpp \
a0a3a26a4065b9401681a8c99a11bd83e08f94ccvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time-decode.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-core.cpp \
7755c0a4b7b215f612d9d27848c2584ffafe7a66vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-builtin.cpp \
7755c0a4b7b215f612d9d27848c2584ffafe7a66vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-asn1-decoder.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-core.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-init.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-sanity.cpp \
316572fd6bf59ec1038f0476f6536fc10163beebvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-verify.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-builtin.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-core.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-rsa.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-verify.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-util.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-asn1-decoder.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-core.cpp \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-init.cpp \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-sanity.cpp \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-asn1-decoder.cpp \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-core.cpp \
b14965bee0bfb359e6ce9db6beaa4add9935fe3cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-init.cpp \
602e0e27740395dba64bee2e0a8aef023ebd7650vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-sanity.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-asn1-decoder.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-certpaths.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-core.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-init.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-sanity.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-verify.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store-inmem.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-asn1-decoder.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-core.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-init.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-sanity.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md2.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md5.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha1.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha256.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha512.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md2str.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md5str.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha1str.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha256str.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha512str.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/err/errinfo.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathChangeToUnixSlashes.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathExt.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrPrintHexBytes.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16PrintHexBytes.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16ICmpAscii.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CatAscii.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CopyAscii.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16End.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strstrip.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.cpp \
78df65edff21c11c537f38e736707ea434ab5623vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum-amd64-x86.asm \
78df65edff21c11c537f38e736707ea434ab5623vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg1Weak.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2Weak.cpp \
489fcf2b60b2dfc27a2fcb590aad04ad2c4f9b75vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2WeakV.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/misc/zero.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathFilename.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/memchr.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/memcmp.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/memcpy.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/memmove.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/mempcpy.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/memset.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCat.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCmp.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCopy.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNCmp.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNLen.cpp \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strchr.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strcmp.asm \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strcpy.asm \
78df65edff21c11c537f38e736707ea434ab5623vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strformat.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strformatrt.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strformattype.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/stringalloc.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strlen.asm \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strncmp.asm \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strncpy.asm \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/strtonum.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-16.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8-case.cpp \
f632be0ea31134f1ce343e84c90d7984d2bf96b2vboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/time/time.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/generic/RTAssertShouldPanic-generic.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/generic/memsafer-generic.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/generic/uuid-generic.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/common/math/RTUInt128MulByU64.asm
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/nt/RTErrConvertFromNtStatus.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/win/RTErrConvertFromWin32.cpp \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_PATH_RUNTIME_SRC)/win/errmsgwin.cpp
78df65edff21c11c537f38e736707ea434ab5623vboxsync # Add necessary compiler specific files from libcmt.lib and the lib dir.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifeq ($(KBUILD_TARGET),win)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPR3HardenedStatic_VBOX_LIBC_OBJS = chkstk.obj
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync SUPR3HardenedStatic_VBOX_LIBC_OBJS += \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync SUPR3HardenedStatic_SOURCES.win += $(addprefix $(SUPR3HardenedStatic_0_OUTDIR)/,$(SUPR3HardenedStatic_VBOX_LIBC_OBJS))
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(addprefix $$(SUPR3HardenedStatic_0_OUTDIR)/,$(SUPR3HardenedStatic_VBOX_LIBC_OBJS)): \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $$(PATH_TOOL_$(TEMPLATE_VBOXR3EXE_TOOL.win.$(KBUILD_TARGET_ARCH))_LIB)/libcmt.lib | $$(dir $$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(TOOL_$(TEMPLATE_VBOXR3HARDENEDEXE_TOOL.win.$(KBUILD_TARGET_ARCH))_AR) "$<" \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync /EXTRACT:`$(TOOL_$(TEMPLATE_VBOXR3HARDENEDEXE_TOOL.win.$(KBUILD_TARGET_ARCH))_AR) "$<" /LIST \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync | $(SED_EXT) -n -e '/[\\/:]$(notdir $@)/p'` \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR3HardenedMain.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# VBoxSupLib - Windows DLL for catching thread creation and termination.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupLib_TEMPLATE = $(if-expr "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING),VBOXR3HARDENEDLIB,VBOXR3)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupLib_LDFLAGS.win.amd64 = -Entry:DllMainEntrypoint
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupLib_LDFLAGS.win.x86 = -Entry:DllMainEntrypoint
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupLib_DEFS = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupLib_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(KBUILD_TARGET)/VBoxSupLib-$(KBUILD_TARGET).cpp
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib # for __chkstk
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_TOOL_$(TEMPLATE_VBOXR3STATIC_TOOL.win.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib # for __chkstk
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# VBoxSupSvc - The system wide service/daemon.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupSvc_TEMPLATE = VBOXR3EXE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxSupSvc_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(KBUILD_TARGET)/SUPSvc-$(KBUILD_TARGET).cpp
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif1of ($(KBUILD_TARGET), win)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxSupSvc_SOURCES += \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncifn1of ($(KBUILD_TARGET), win)
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync VBoxSupSvc_SOURCES += \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncVBoxSupSvc_LIBS = \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(LIB_RUNTIME)
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync# SUPR0 - The Ring-0 Import library.
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncSUPR0_TEMPLATE = VBoxR0
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncif1of ($(VBOX_LDR_FMT), pe lx)
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync SUPR0_SOURCES = $(SUPR0_0_OUTDIR)/SUPR0.def
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync SUPR0_CLEAN = $(SUPR0_0_OUTDIR)/SUPR0.def
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync$$(SUPR0_0_OUTDIR)/SUPR0.def: \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(PATH_SUB_CURRENT)/SUPDrv.c \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(PATH_SUB_CURRENT)/SUPR0-def-$(VBOX_LDR_FMT).sed \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync | $$(dir $$@)
84cbac6212750be6733ce171fcdec2e24fd378c8vboxsync -f $(dir $<)/SUPR0-def-$(VBOX_LDR_FMT).sed \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync --output $@ \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# SUPR0IdcClient - The Ring-0 IDC client driver library.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR0IdcClient_TEMPLATE = VBoxR0DrvLib
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR0IdcClient_DEFS = IN_RT_R0 IN_SUP_R0 IN_SUP_STATIC
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR0IdcClient_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR0IdcClient_SOURCES.$(KBUILD_TARGET) = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(KBUILD_TARGET)/SUPR0IdcClient-$(KBUILD_TARGET).c
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncSUPR0IdcClient_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif !defined(VBOX_ONLY_DOCS) \
2c6c9da3f26e8e769901a041f182037452cffafdvboxsync && !defined(VBOX_ONLY_EXTPACKS) \
2c6c9da3f26e8e769901a041f182037452cffafdvboxsync && !defined(VBOX_ONLY_VALIDATIONKIT)
2c6c9da3f26e8e769901a041f182037452cffafdvboxsyncifeq ($(KBUILD_TARGET),os2)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# VBoxDrv.sys - The OS/2 driver.
11e81238706f1510eabb4be04811da8f87706519vboxsyncVBoxDrv_TEMPLATE = VBOXR0DRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0
48807baed22246206b9855f41d1fd106f0679b3avboxsyncVBoxDrv_INCS := $(PATH_SUB_CURRENT)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync#VBoxDrv_LDFLAGS = -s -t -v
11e81238706f1510eabb4be04811da8f87706519vboxsyncVBoxDrv_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrv_LIBS = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBoxDrvLib_1_TARGET) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(VBOX_GCC_LIBGCC) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# temp hack to ensure that SUPDrvA-os2.asm is first in the link.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncLIBRARIES += VBoxDrvLib
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrvLib_TEMPLATE = VBOXR0DRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrvLib_INSTTYPE = none
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrvLib_INCS := \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncVBoxDrvLib_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncifeq ($(KBUILD_TARGET),freebsd)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# vboxdrv.ko - The FreeBSD Kernel Module.
7fee49908ea4b9f6cb4f9cc745633c4969ed6318vboxsyncvboxdrv_TEMPLATE = VBOXR0DRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncvboxdrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncvboxdrv_INCS := $(PATH_SUB_CURRENT)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncvboxdrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncvboxdrv_SOURCES := \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).c \
7fee49908ea4b9f6cb4f9cc745633c4969ed6318vboxsync $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/SUPDrv-$(KBUILD_TARGET).def \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync## @todo the SUPDrv-freebsd.def is most probably gonna break it and require build system hacking...
5d6df5999c0e844db1af3c6def0a9abac5120d3bvboxsync# Targets for installing the freebsd sources.
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncvboxdrv-mod_INST = bin/src/vboxdrv/
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsyncvboxdrv-mod_SOURCES = \
23ff0a80f28ba27da3cb458face82665fe65e96cvboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncvboxdrv-mod_CLEAN = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync$$(vboxdrv-mod_0_OUTDIR)/Makefile: \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_SUB_CURRENT)/freebsd/Makefile \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $$(if $$(eq $$(Support/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync | $$(dir $$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call MSG_TOOL,Creating,,$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(RM) -f -- $@
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifndef VBOX_WITH_HARDENING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(CP) -f $< $@
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncendif # freebsd
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync# New VBoxDrv target. TODO: Convert all the above to use this!
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif1of ($(KBUILD_TARGET), darwin linux solaris win)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_VBOXDRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SYSMODS += VBoxDrv
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_TEMPLATE = VBOXR0DRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_SIGNING_MODE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_INST.darwin = $(INST_VBOXDRV)Contents/MacOS/
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEBUG_INST.darwin= $(patsubst %/,%,$(INST_VBOXDRV))
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK)INCS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS := IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_DTRACE_R0DRV
a0a3a26a4065b9401681a8c99a11bd83e08f94ccvboxsync VBoxDrv_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITHOUT_DEBUGGER_CHECKS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS += VBOX_WITHOUT_DEBUGGER_CHECKS
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS += VBOX_PERMIT_VISUAL_STUDIO_PROFILING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS += VBOX_PERMIT_MORE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.darwin := VBOX_WITH_HOST_VMX
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE CONFIG_VBOXDRV_AS_MISC
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_LINUX_VERSION_2_4
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.linux += EXPORT_SYMTAB
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_NETFLT
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.solaris += VBOX_WITH_NETFLT
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_NATIVE_SOLARIS_LOADING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.solaris += VBOX_WITH_NATIVE_SOLARIS_LOADING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITHOUT_NATIVE_R0_LOADER
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.win += VBOX_WITHOUT_NATIVE_R0_LOADER
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_VISTA_NO_SP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_DEFS.win += VBOX_WITH_VISTA_NO_SP
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_HARDENING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_ASDEFS += VBOX_WITH_HARDENING
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_INCS = . $(VBoxDrv_0_OUTDIR)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_INCS.linux = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_LIBS.linux.debug = $(VBoxDrv_LIBS) $(VBOX_GCC_LIBGCC)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync #VBoxDrv_LDFLAGS.darwin = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync ifdef VBOX_WITH_NATIVE_DTRACE
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry@8
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync VBoxDrv_LDFLAGS.win.amd64= -Entry:DriverEntry
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifdef VBOX_WITH_HARDENING
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(VBOX_SUP_WIN_CERTS_FILE)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv_SOURCES = \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifdef VBOX_WITH_NATIVE_DTRACE
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv_SOURCES += \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync SUPDrv-dtrace.cpp_DEFS.darwin += VBOX_PATH_MACOSX_DTRACE_H=\"$(VBOX_PATH_MACOSX_SDK)/usr/include/sys/dtrace.h\"
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifn1of ($(KBUILD_TARGET), linux freebsd)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv_SOURCES += \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifndef VBOX_LINUX_VERSION_2_4
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsyncif1of ($(KBUILD_TARGET), darwin)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync # Files necessary to make a darwin kernel extension bundle.
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv.kext_SOURCES = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv.kext_CLEAN = $(VBoxDrv.kext_0_OUTDIR)/Info.plist
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(PATH_SUB_CURRENT)/darwin/Info.plist \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(VBOX_VERSION_MK) | $$(dir $$@)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(call MSG_GENERATE,VBoxDrv,$@,$<)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(QUIET)$(RM) -f $@
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(SED) \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync -e 's/@VBOX_VENDOR@/$(VBOX_VENDOR)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync -e 's/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync -e 's/@VBOX_C_YEAR@/$(VBOX_C_YEAR)/g' \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync --output $@ \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncif1of ($(KBUILD_TARGET), darwin solaris)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync # Common manual loader script.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync INSTALLS += SUPDrvScripts
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync SUPDrvScripts_INST = $(INST_DIST)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync SUPDrvScripts_EXEC_SOURCES = \
ae5fc6ddd3d2ccdb941b1aacd23f6791fecc3354vboxsync $(KBUILD_TARGET)/load.sh
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsyncif1of ($(KBUILD_TARGET), linux)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync # Targets for installing the linux sources.
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync vboxdrv-mod_INST = bin/src/vboxdrv/
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync vboxdrv-mod_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync vboxdrv-mod_EXEC_SOURCES = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN)) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_ROOT)/src/VBox/HostDrivers/linux/do_Module.symvers
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync vboxdrv-mod_CLEAN = \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(vboxdrv-mod_0_OUTDIR)/Makefile \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_TARGET)/vboxdrv-mod-1.dep \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync # Scripts needed for building the kernel modules
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync includedep $(PATH_TARGET)/vboxdrv-mod-1.dep
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $$(vboxdrv-mod_0_OUTDIR)/Makefile: \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(PATH_SUB_CURRENT)/linux/Makefile \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $$(if $$(eq $$(Support/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync | $$(dir $$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call MSG_TOOL,Creating,,$@)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifndef VBOX_WITH_HARDENING
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(QUIET)$(CP) -f $< $@
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync %$(QUIET2)$(APPEND) -t '$(PATH_TARGET)/vboxdrv-mod-1.dep' 'Support/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncendif # real linux
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsyncifeq ($(KBUILD_TARGET), win)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync INSTALLS.win += VBoxDrv-inf
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_INST = $(INST_BIN)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_MODE = a+r,u+w
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_SOURCES = \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(call MSG_GENERATE,VBoxDrv-inf,$@,$<)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(call VBOX_EDIT_INF_FN,$<,$@)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync ifdef VBOX_SIGNING_MODE
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync VBoxDrv-inf_SOURCES += \
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@)
f3abe19bdaeea1b354674327ee95707281a6ad83vboxsync $(INSTALL) -m 644 $< $(@D)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync $(call VBOX_MAKE_CAT_FN, $(@D),$@)
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsync endif # signing
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncendif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
30a23dfc653298a09d77d3045cf873b1bd6ddecfvboxsyncinclude $(FILE_KBUILD_SUB_FOOTER)