- Timestamp:
- Feb 1, 2023 4:23:38 PM (2 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Makefile.kmk
r98103 r98414 41 41 include $(PATH_SUB_CURRENT)/Support/Makefile.kmk 42 42 43 if !defined(VBOX_ONLY_DOCS) \44 && !defined(VBOX_ONLY_EXTPACKS) \45 && !defined(VBOX_ONLY_VALIDATIONKIT) \46 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""47 if1of ($(KBUILD_TARGET), win)43 if !defined(VBOX_ONLY_DOCS) \ 44 && !defined(VBOX_ONLY_EXTPACKS) \ 45 && !defined(VBOX_ONLY_VALIDATIONKIT) \ 46 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" 47 if1of ($(KBUILD_TARGET), win) 48 48 include $(PATH_SUB_CURRENT)/win/Makefile.kmk 49 49 endif -
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r98256 r98414 51 51 LIBRARIES += SUPR3 SUPR3Static 52 52 if defined(VBOX_WITH_HARDENING) \ 53 && !defined(VBOX_ONLY_VALIDATIONKIT)53 && !defined(VBOX_ONLY_VALIDATIONKIT) 54 54 LIBRARIES += SUPR3HardenedStatic 55 55 endif … … 68 68 LIBRARIES += SUPRC 69 69 endif 70 if !defined(VBOX_ONLY_DOCS) \71 && !defined(VBOX_ONLY_EXTPACKS) \72 && !defined(VBOX_ONLY_VALIDATIONKIT) \73 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""70 if !defined(VBOX_ONLY_DOCS) \ 71 && !defined(VBOX_ONLY_EXTPACKS) \ 72 && !defined(VBOX_ONLY_VALIDATIONKIT) \ 73 && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" 74 74 ifdef VBOX_WITH_SUPSVC 75 75 PROGRAMS += VBoxSupSvc … … 103 103 VBOX_SUP_WIN_CERTS_FILE = $(SUPR3_0_OUTDIR)/TrustAnchorsAndCerts.cpp 104 104 VBOX_SUP_WIN_CERTS := \ 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 105 SpcRootMicrosoft0=SpcRoot-MicrosoftAuthenticodeTmRootAuthority-01.taf \ 106 SpcRootMicrosoft1=SpcRoot-MicrosoftRootAuthority-00c1008b3c3c8811d13ef663ecdf40.taf \ 107 SpcRootMicrosoft2=SpcRoot-MicrosoftRootCertificateAuthority-79ad16a14aa0a5ad4c7358f407132e65.taf \ 108 SpcRootMicrosoft3=SpcRoot-MicrosoftRootCertificateAuthority2010-28cc3a25bfba44ac449a9b586b4339aa.taf \ 109 SpcRootMicrosoft4=SpcRoot-MicrosoftRootCertificateAuthority2011-3f8bc8b5fc9fb29643b569d66c42e144.taf \ 110 SpcRootMicrosoft5=SpcRoot-MicrosoftDigitalMediaAuthority2005-6eff330eb6e7569740680870104baaba.taf \ 111 SpcRootMicrosoft6=SpcRoot-MicrosoftDevelopmentRootCertificateAuthority2014-078f0a9d03df119e434e4fec1bf0235a.taf \ 112 SpcRootMicrosoft7=SpcRoot-MicrosoftTestingRootCertificateAuthority2010-8a334aa8052dd244a647306a76b8178fa215f344.taf \ 113 NtRootMicrosoft8=NtRoot-MicrosoftCodeVerificationRoot-729404101f3e0ca347837fca175a8438.taf \ 114 TimeRootMicrosoft0=Timestamp-CopyrightC1997MicrosoftCorp-01.taf \ 115 TimeRootOracle0=Timestamp-VBoxLegacyWinCA.taf \ 116 TimeRootOracle1=Timestamp-VBoxLegacyWinSha1CA.taf \ 117 TrustedCertVBox0=Trusted-OracleCorporationVirtualBox-05308b76ac2e15b29720fb4395f65f38.taf \ 118 AppleRoot0=AppleRoot-2bd06947947609fef46b8d2e40a6f7474d7f085e.taf \ 119 AppleRoot1=AppleRoot-G2-c499136c1803c27bc0a3a00d7f72807a1c77268d.taf 120 120 # Hack Alert! Because the DigiCert cross signing certificate we use expired 2020-04-15, we add it as a trusted NT kernel 121 121 # signing root instead, so we can bypass the expiry check in IPRT. NtRootMicrosoft8 is the one found in the … … 129 129 if "$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING) 130 130 VBOX_SUP_GEN_CERT_MACRO = 'SUPTAENTRY const g_aSUP$(1)TAs[] =' '{' \ 131 132 $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \133 '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' ''131 $(if-expr "$(3)" == "",,' SUPTAENTRY_GEN(g_abSUPBuildCert),') \ 132 $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \ 133 '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' '' 134 134 else 135 135 VBOX_SUP_GEN_CERT_MACRO = 'SUPTAENTRY const g_aSUP$(1)TAs[] =' '{' \ 136 $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \137 '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' ''138 endif 139 140 if ("$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)) \141 || ("$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE))136 $(foreach certnm,$(filter $(2),$(VBOX_SUP_WIN_CERT_NAMES)), ' SUPTAENTRY_GEN(g_abSUP$(certnm)),') \ 137 '};' 'unsigned const g_cSUP$(1)TAs = RT_ELEMENTS(g_aSUP$(1)TAs);' '' '' 138 endif 139 140 if ("$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE)) \ 141 || ("$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)) 142 142 BLDPROGS += bldSUPSignedDummy 143 143 bldSUPSignedDummy_TEMPLATE = VBoxBldProg … … 203 203 SUPR3HardenedVerify.cpp \ 204 204 $(KBUILD_TARGET)/SUPLib-$(KBUILD_TARGET).cpp \ 205 205 $(VBOX_SUP_WIN_CERTS_FILE) 206 206 SUPR3_SOURCES.amd64 = \ 207 207 SUPLibTracerA.asm … … 268 268 IN_RT_STATIC \ 269 269 IN_DIS \ 270 IN_DIS_STATIC \270 IN_DIS_STATIC \ 271 271 DIS_CORE_ONLY \ 272 272 IPRT_NO_CRT \ 273 273 RT_WITH_NOCRT_ALIASES \ 274 274 LOG_DISABLED \ 275 275 IPRT_NO_ERROR_DATA \ 276 276 IPRT_WITHOUT_DIGEST_MD4 277 277 SUPR3HardenedStatic_DEFS.win += LDR_ONLY_PE __STRALIGN_H_ 278 278 … … 280 280 281 281 SUPR3HardenedStatic_SOURCES += \ 282 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldr.cpp \283 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrEx.cpp \284 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrPE.cpp \285 $(VBOX_PATH_RUNTIME_SRC)/common/alloc/heapsimple.cpp \286 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-basics.cpp \287 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-cursor.cpp \288 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-default-allocator.cpp \289 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-safer-allocator.cpp \290 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-dump.cpp \291 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-encode.cpp \292 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring.cpp \293 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring-decode.cpp \294 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean.cpp \295 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean-decode.cpp \296 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core.cpp \297 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core-decode.cpp \298 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype.cpp \299 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype-decode.cpp \300 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer.cpp \301 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer-decode.cpp \302 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null.cpp \303 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null-decode.cpp \304 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid.cpp \305 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid-decode.cpp \306 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring.cpp \307 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring-decode.cpp \308 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string.cpp \309 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string-decode.cpp \310 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time.cpp \311 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time-decode.cpp \312 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-core.cpp \313 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-builtin.cpp \314 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/key.cpp \315 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-asn1-decoder.cpp \316 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-core.cpp \317 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-init.cpp \318 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-sanity.cpp \319 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-verify.cpp \320 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-builtin.cpp \321 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-core.cpp \322 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-rsa.cpp \323 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-verify.cpp \324 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-util.cpp \325 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-asn1-decoder.cpp \326 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-core.cpp \327 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-init.cpp \328 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-sanity.cpp \329 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-asn1-decoder.cpp \330 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-core.cpp \331 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-init.cpp \332 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-sanity.cpp \333 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-asn1-decoder.cpp \334 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-certpaths.cpp \335 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-core.cpp \336 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-init.cpp \337 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-sanity.cpp \338 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-verify.cpp \339 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store.cpp \340 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store-inmem.cpp \341 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-asn1-decoder.cpp \342 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-core.cpp \343 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-init.cpp \344 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-sanity.cpp \345 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-asn1-decoder.cpp \346 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-core.cpp \347 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-init.cpp \348 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-sanity.cpp \349 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md2.cpp \350 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md5.cpp \351 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha1.cpp \352 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha256.cpp \353 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha512.cpp \354 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha3.cpp \355 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md2str.cpp \356 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md5str.cpp \357 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha1str.cpp \358 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha256str.cpp \359 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha512str.cpp \360 $(VBOX_PATH_RUNTIME_SRC)/common/err/errinfo.cpp \361 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathChangeToUnixSlashes.cpp \362 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathExt.cpp \363 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16PrintHexBytes.cpp \364 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16ICmpAscii.cpp \365 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16NICmpAscii.cpp \366 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CatAscii.cpp \367 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CopyAscii.cpp \368 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16End.cpp \369 $(VBOX_PATH_RUNTIME_SRC)/common/string/strstrip.cpp \370 371 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.cpp \372 $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum.cpp \373 $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum-amd64-x86.asm \374 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg1Weak.cpp \375 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2.cpp \376 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2Weak.cpp \377 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2WeakV.cpp \378 $(VBOX_PATH_RUNTIME_SRC)/common/misc/zero.asm \379 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathAbsEx.cpp \380 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathFilename.cpp \381 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathParse.cpp \382 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathParsedReassemble.cpp \383 $(VBOX_PATH_RUNTIME_SRC)/common/string/memchr.asm \384 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcmp.asm \385 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcpy.asm \386 $(VBOX_PATH_RUNTIME_SRC)/common/string/memmove.asm \387 $(VBOX_PATH_RUNTIME_SRC)/common/string/mempcpy.asm \388 $(VBOX_PATH_RUNTIME_SRC)/common/string/memset.asm \389 $(VBOX_PATH_RUNTIME_SRC)/common/string/strversion.cpp \390 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrPrintHexBytes.cpp \391 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCat.cpp \392 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCmp.cpp \393 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCopy.cpp \394 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrEnd.asm \395 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrICmpAscii.cpp \396 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNCmp.cpp \397 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNLen.cpp \398 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16Copy.cpp \399 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16NLenEx.cpp \400 $(VBOX_PATH_RUNTIME_SRC)/common/string/strchr.asm \401 $(VBOX_PATH_RUNTIME_SRC)/common/string/strcmp.asm \402 $(VBOX_PATH_RUNTIME_SRC)/common/string/strcpy.asm \403 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformat.cpp \404 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrFormat.cpp \405 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformatrt.cpp \406 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformattype.cpp \407 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformatnum.cpp \408 $(VBOX_PATH_RUNTIME_SRC)/common/string/stringalloc.cpp \409 $(VBOX_PATH_RUNTIME_SRC)/common/string/strlen.asm \410 $(VBOX_PATH_RUNTIME_SRC)/common/string/strncmp.asm \411 $(VBOX_PATH_RUNTIME_SRC)/common/string/strncpy.asm \412 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf.cpp \413 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf-ellipsis.cpp \414 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf2.cpp \415 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf2-ellipsis.cpp \416 $(VBOX_PATH_RUNTIME_SRC)/common/string/strtonum.cpp \417 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-16.cpp \418 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8.cpp \419 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8-case.cpp \420 $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp \421 $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp \422 $(VBOX_PATH_RUNTIME_SRC)/common/time/time.cpp \423 $(VBOX_PATH_RUNTIME_SRC)/generic/RTAssertShouldPanic-generic.cpp \424 $(VBOX_PATH_RUNTIME_SRC)/generic/RTPathGetCurrentDrive-generic.cpp \425 $(VBOX_PATH_RUNTIME_SRC)/generic/RTPathGetCurrentOnDrive-generic.cpp \426 $(VBOX_PATH_RUNTIME_SRC)/generic/rtStrFormatKernelAddress-generic.cpp \427 $(VBOX_PATH_RUNTIME_SRC)/generic/memsafer-generic.cpp \428 $(VBOX_PATH_RUNTIME_SRC)/generic/uuid-generic.cpp \429 430 ../../Disassembler/DisasmCore.cpp \431 ../../Disassembler/DisasmTables.cpp \432 ../../Disassembler/DisasmTablesX64.cpp \433 ../../Disassembler/DisasmMisc.cpp282 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldr.cpp \ 283 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrEx.cpp \ 284 $(VBOX_PATH_RUNTIME_SRC)/common/ldr/ldrPE.cpp \ 285 $(VBOX_PATH_RUNTIME_SRC)/common/alloc/heapsimple.cpp \ 286 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-basics.cpp \ 287 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-cursor.cpp \ 288 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-default-allocator.cpp \ 289 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-safer-allocator.cpp \ 290 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-dump.cpp \ 291 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-encode.cpp \ 292 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring.cpp \ 293 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-bitstring-decode.cpp \ 294 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean.cpp \ 295 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-boolean-decode.cpp \ 296 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core.cpp \ 297 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-core-decode.cpp \ 298 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype.cpp \ 299 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-dyntype-decode.cpp \ 300 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer.cpp \ 301 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-integer-decode.cpp \ 302 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null.cpp \ 303 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-null-decode.cpp \ 304 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid.cpp \ 305 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-objid-decode.cpp \ 306 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring.cpp \ 307 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-octetstring-decode.cpp \ 308 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string.cpp \ 309 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-string-decode.cpp \ 310 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time.cpp \ 311 $(VBOX_PATH_RUNTIME_SRC)/common/asn1/asn1-ut-time-decode.cpp \ 312 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-core.cpp \ 313 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/digest-builtin.cpp \ 314 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/key.cpp \ 315 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-asn1-decoder.cpp \ 316 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-core.cpp \ 317 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-init.cpp \ 318 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-sanity.cpp \ 319 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkcs7-verify.cpp \ 320 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-builtin.cpp \ 321 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-core.cpp \ 322 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-signature-rsa.cpp \ 323 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-verify.cpp \ 324 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/pkix-util.cpp \ 325 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-asn1-decoder.cpp \ 326 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-core.cpp \ 327 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-init.cpp \ 328 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/rsa-sanity.cpp \ 329 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-asn1-decoder.cpp \ 330 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-core.cpp \ 331 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-init.cpp \ 332 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/spc-sanity.cpp \ 333 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-asn1-decoder.cpp \ 334 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-certpaths.cpp \ 335 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-core.cpp \ 336 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-init.cpp \ 337 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-sanity.cpp \ 338 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/x509-verify.cpp \ 339 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store.cpp \ 340 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/store-inmem.cpp \ 341 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-asn1-decoder.cpp \ 342 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-core.cpp \ 343 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-init.cpp \ 344 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/taf-sanity.cpp \ 345 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-asn1-decoder.cpp \ 346 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-core.cpp \ 347 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-init.cpp \ 348 $(VBOX_PATH_RUNTIME_SRC)/common/crypto/tsp-sanity.cpp \ 349 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md2.cpp \ 350 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-md5.cpp \ 351 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha1.cpp \ 352 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha256.cpp \ 353 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha512.cpp \ 354 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/alt-sha3.cpp \ 355 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md2str.cpp \ 356 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/md5str.cpp \ 357 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha1str.cpp \ 358 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha256str.cpp \ 359 $(VBOX_PATH_RUNTIME_SRC)/common/checksum/sha512str.cpp \ 360 $(VBOX_PATH_RUNTIME_SRC)/common/err/errinfo.cpp \ 361 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathChangeToUnixSlashes.cpp \ 362 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathExt.cpp \ 363 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16PrintHexBytes.cpp \ 364 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16ICmpAscii.cpp \ 365 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16NICmpAscii.cpp \ 366 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CatAscii.cpp \ 367 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16CopyAscii.cpp \ 368 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16End.cpp \ 369 $(VBOX_PATH_RUNTIME_SRC)/common/string/strstrip.cpp \ 370 \ 371 $(VBOX_PATH_RUNTIME_SRC)/common/err/errmsg.cpp \ 372 $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum.cpp \ 373 $(VBOX_PATH_RUNTIME_SRC)/common/math/bignum-amd64-x86.asm \ 374 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg1Weak.cpp \ 375 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2.cpp \ 376 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2Weak.cpp \ 377 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2WeakV.cpp \ 378 $(VBOX_PATH_RUNTIME_SRC)/common/misc/zero.asm \ 379 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathAbsEx.cpp \ 380 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathFilename.cpp \ 381 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathParse.cpp \ 382 $(VBOX_PATH_RUNTIME_SRC)/common/path/RTPathParsedReassemble.cpp \ 383 $(VBOX_PATH_RUNTIME_SRC)/common/string/memchr.asm \ 384 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcmp.asm \ 385 $(VBOX_PATH_RUNTIME_SRC)/common/string/memcpy.asm \ 386 $(VBOX_PATH_RUNTIME_SRC)/common/string/memmove.asm \ 387 $(VBOX_PATH_RUNTIME_SRC)/common/string/mempcpy.asm \ 388 $(VBOX_PATH_RUNTIME_SRC)/common/string/memset.asm \ 389 $(VBOX_PATH_RUNTIME_SRC)/common/string/strversion.cpp \ 390 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrPrintHexBytes.cpp \ 391 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCat.cpp \ 392 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCmp.cpp \ 393 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrCopy.cpp \ 394 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrEnd.asm \ 395 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrICmpAscii.cpp \ 396 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNCmp.cpp \ 397 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrNLen.cpp \ 398 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16Copy.cpp \ 399 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTUtf16NLenEx.cpp \ 400 $(VBOX_PATH_RUNTIME_SRC)/common/string/strchr.asm \ 401 $(VBOX_PATH_RUNTIME_SRC)/common/string/strcmp.asm \ 402 $(VBOX_PATH_RUNTIME_SRC)/common/string/strcpy.asm \ 403 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformat.cpp \ 404 $(VBOX_PATH_RUNTIME_SRC)/common/string/RTStrFormat.cpp \ 405 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformatrt.cpp \ 406 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformattype.cpp \ 407 $(VBOX_PATH_RUNTIME_SRC)/common/string/strformatnum.cpp \ 408 $(VBOX_PATH_RUNTIME_SRC)/common/string/stringalloc.cpp \ 409 $(VBOX_PATH_RUNTIME_SRC)/common/string/strlen.asm \ 410 $(VBOX_PATH_RUNTIME_SRC)/common/string/strncmp.asm \ 411 $(VBOX_PATH_RUNTIME_SRC)/common/string/strncpy.asm \ 412 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf.cpp \ 413 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf-ellipsis.cpp \ 414 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf2.cpp \ 415 $(VBOX_PATH_RUNTIME_SRC)/common/string/strprintf2-ellipsis.cpp \ 416 $(VBOX_PATH_RUNTIME_SRC)/common/string/strtonum.cpp \ 417 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-16.cpp \ 418 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8.cpp \ 419 $(VBOX_PATH_RUNTIME_SRC)/common/string/utf-8-case.cpp \ 420 $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-upper.cpp \ 421 $(VBOX_PATH_RUNTIME_SRC)/common/string/unidata-lower.cpp \ 422 $(VBOX_PATH_RUNTIME_SRC)/common/time/time.cpp \ 423 $(VBOX_PATH_RUNTIME_SRC)/generic/RTAssertShouldPanic-generic.cpp \ 424 $(VBOX_PATH_RUNTIME_SRC)/generic/RTPathGetCurrentDrive-generic.cpp \ 425 $(VBOX_PATH_RUNTIME_SRC)/generic/RTPathGetCurrentOnDrive-generic.cpp \ 426 $(VBOX_PATH_RUNTIME_SRC)/generic/rtStrFormatKernelAddress-generic.cpp \ 427 $(VBOX_PATH_RUNTIME_SRC)/generic/memsafer-generic.cpp \ 428 $(VBOX_PATH_RUNTIME_SRC)/generic/uuid-generic.cpp \ 429 \ 430 ../../Disassembler/DisasmCore.cpp \ 431 ../../Disassembler/DisasmTables.cpp \ 432 ../../Disassembler/DisasmTablesX64.cpp \ 433 ../../Disassembler/DisasmMisc.cpp 434 434 435 435 SUPR3HardenedStatic_SOURCES.amd64 += \ … … 446 446 $(VBOX_PATH_RUNTIME_SRC)/r3/nt/pathint-nt.cpp \ 447 447 $(VBOX_PATH_RUNTIME_SRC)/win/RTErrConvertFromWin32.cpp \ 448 $(VBOX_PATH_RUNTIME_SRC)/win/errmsgwin.cpp448 $(VBOX_PATH_RUNTIME_SRC)/win/errmsgwin.cpp 449 449 450 450 # Add necessary compiler specific files from the compiler lib dir. … … 476 476 $(SUPR3HardenedStatic_0_OUTDIR)/alloca16.obj 477 477 478 $$(SUPR3HardenedStatic_0_OUTDIR)/loadcfg.obj \ 479 $$(SUPR3HardenedStatic_0_OUTDIR)/gs_cookie.obj \ 480 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_support.obj \ 481 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_dispatch.obj \ 482 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_xfg_dispatch.obj \ 483 $$(SUPR3HardenedStatic_0_OUTDIR)/amdsecgs.obj \ 484 $$(SUPR3HardenedStatic_0_OUTDIR)/gs_report.obj \ 485 $$(SUPR3HardenedStatic_0_OUTDIR)/gshandler.obj \ 486 $$(SUPR3HardenedStatic_0_OUTDIR)/secchk.obj \ 487 $$(SUPR3HardenedStatic_0_OUTDIR)/alloca16.obj \ 488 : \ 489 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/libcmt.lib | $$(dir $$@) 478 $$(SUPR3HardenedStatic_0_OUTDIR)/loadcfg.obj \ 479 $$(SUPR3HardenedStatic_0_OUTDIR)/gs_cookie.obj \ 480 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_support.obj \ 481 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_dispatch.obj \ 482 $$(SUPR3HardenedStatic_0_OUTDIR)/guard_xfg_dispatch.obj \ 483 $$(SUPR3HardenedStatic_0_OUTDIR)/amdsecgs.obj \ 484 $$(SUPR3HardenedStatic_0_OUTDIR)/gs_report.obj \ 485 $$(SUPR3HardenedStatic_0_OUTDIR)/gshandler.obj \ 486 $$(SUPR3HardenedStatic_0_OUTDIR)/secchk.obj \ 487 $$(SUPR3HardenedStatic_0_OUTDIR)/alloca16.obj: \ 488 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/libcmt.lib | $$(dir $$@) 490 489 set -x; $(TOOL_$(VBOX_VCC_TOOL)_AR) "/EXTRACT:$$($(TOOL_$(VBOX_VCC_TOOL)_AR) /LIST "$<" | $(SED_EXT) -e '/$(notdir $@)/!d' )" "/OUT:$@" "$<" 491 490 endif … … 502 501 SUPR3HardenedStatic_SOURCES += \ 503 502 darwin/SUPR3HardenedMain-darwin.cpp \ 504 503 \ 505 504 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg1Weak.cpp \ 506 505 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2.cpp \ … … 514 513 SUPR3HardenedStatic_DEFS += \ 515 514 IN_DIS \ 516 IN_DIS_STATIC \515 IN_DIS_STATIC \ 517 516 DIS_CORE_ONLY \ 518 517 LOG_DISABLED … … 527 526 SUPR3HardenedStatic_SOURCES += \ 528 527 posix/SUPR3HardenedMain-posix.cpp \ 529 posix/SUPR3HardenedMainA-posix.asm \530 528 posix/SUPR3HardenedMainA-posix.asm \ 529 \ 531 530 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg1Weak.cpp \ 532 531 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2.cpp \ … … 534 533 $(VBOX_PATH_RUNTIME_SRC)/common/misc/RTAssertMsg2WeakV.cpp \ 535 534 $(VBOX_PATH_RUNTIME_SRC)/generic/RTAssertShouldPanic-generic.cpp \ 536 535 \ 537 536 ../../Disassembler/DisasmCore.cpp \ 538 537 ../../Disassembler/DisasmTables.cpp \ … … 556 555 $(KBUILD_TARGET)/VBoxSupLib-$(KBUILD_TARGET).cpp 557 556 VBoxSupLib_SOURCES.win.amd64 = \ 558 557 $(VBOX_PATH_RUNTIME_SRC)/common/compiler/vcc/stack-probe-vcc.asm 559 558 VBoxSupLib_SOURCES.win.x86 = \ 560 559 $(VBOX_PATH_RUNTIME_SRC)/common/compiler/vcc/stack-probe-vcc.asm 561 560 VBoxSupLib_SOURCES.win = \ 562 561 win/VBoxSupLib.rc … … 583 582 if1of ($(KBUILD_TARGET), win) 584 583 VBoxSupSvc_SOURCES += \ 585 SUPSvcGrant.cpp584 SUPSvcGrant.cpp 586 585 endif 587 586 ifn1of ($(KBUILD_TARGET), win) … … 600 599 SUPR0_SOURCES = $(SUPR0_0_OUTDIR)/SUPR0.def 601 600 SUPR0_CLEAN = $(SUPR0_0_OUTDIR)/SUPR0.def 602 $$(SUPR0_0_OUTDIR)/SUPR0.def: \603 $(PATH_SUB_CURRENT)/SUPDrv.cpp \604 $(PATH_SUB_CURRENT)/SUPR0-def-$(VBOX_LDR_FMT).sed \605 | $$(dir $$@)601 $$(SUPR0_0_OUTDIR)/SUPR0.def: \ 602 $(PATH_SUB_CURRENT)/SUPDrv.cpp \ 603 $(PATH_SUB_CURRENT)/SUPR0-def-$(VBOX_LDR_FMT).sed \ 604 | $$(dir $$@) 606 605 $(SED) \ 607 606 -f $(dir $<)/SUPR0-def-$(VBOX_LDR_FMT).sed \ … … 640 639 641 640 642 if !defined(VBOX_ONLY_DOCS) \643 && !defined(VBOX_ONLY_EXTPACKS) \644 && !defined(VBOX_ONLY_VALIDATIONKIT)645 646 ifeq ($(KBUILD_TARGET),os2)647 648 #649 # VBoxDrv.sys - The OS/2 driver.650 #651 VBoxDrv_TEMPLATE= VBoxR0Drv652 VBoxDrv_DEFS= IN_RT_R0 IN_SUP_R0653 VBoxDrv_INCS:= $(PATH_SUB_CURRENT)654 #VBoxDrv_LDFLAGS = -s -t -v655 VBoxDrv_SOURCES= \656 os2/SUPDrvA-os2.asm \657 os2/SUPDrv-os2.def658 VBoxDrv_LIBS= \659 $(VBoxDrvLib_1_TARGET) \660 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \661 $(VBOX_GCC_LIBGCC) \662 end663 664 # temp hack to ensure that SUPDrvA-os2.asm is first in the link.665 LIBRARIES += VBoxDrvLib666 VBoxDrvLib_TEMPLATE= VBoxR0Drv667 VBoxDrvLib_INSTTYPE= none668 VBoxDrvLib_DEFS= IN_RT_R0 IN_SUP_R0669 VBoxDrvLib_INCS:= \670 . \671 $(PATH_ROOT)/src/VBox/Runtime/include672 VBoxDrvLib_SOURCES= \673 os2/SUPDrv-os2.cpp \674 SUPDrv.cpp \675 SUPDrvGip.cpp \676 SUPDrvSem.cpp \677 SUPLibAll.cpp678 679 endif # os2680 681 682 #683 # New VBoxDrv target. TODO: Convert all the above to use this!684 #685 if1of ($(KBUILD_TARGET), darwin freebsd solaris win)686 ifdef VBOX_WITH_VBOXDRV687 SYSMODS += VBoxDrv688 endif689 VBoxDrv_TEMPLATE= VBoxR0Drv690 VBoxDrv_NAME.freebsd= vboxdrv691 VBoxDrv_NAME.solaris= vboxdrv692 VBoxDrv_NAME.win= VBoxSup693 ifdef VBOX_SIGNING_MODE694 VBoxDrv_INSTTYPE.win= none695 VBoxDrv_DEBUG_INSTTYPE.win = both696 endif697 VBoxDrv_INST.darwin= $(INST_VBOXDRV)Contents/MacOS/698 VBoxDrv_DEBUG_INST.darwin= $(patsubst %/,%,$(INST_VBOXDRV))699 VBoxDrv_SDKS.win= ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK_INCS)700 701 VBoxDrv_DEFS:= IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV)702 ifdef VBOX_WITH_DTRACE_R0DRV703 VBoxDrv_DEFS+= VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV704 endif705 ifdef VBOX_WITHOUT_DEBUGGER_CHECKS706 VBoxDrv_DEFS+= VBOX_WITHOUT_DEBUGGER_CHECKS707 endif708 ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING709 VBoxDrv_DEFS+= VBOX_PERMIT_VISUAL_STUDIO_PROFILING710 endif711 VBoxDrv_DEFS+= VBOX_PERMIT_MORE VBOX_PERMIT_EVEN_MORE712 #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP713 VBoxDrv_DEFS.darwin:= VBOX_WITH_HOST_VMX714 ifdef VBOX_WITH_RAW_MODE715 VBoxDrv_DEFS.darwin+= VBOX_WITH_RAW_MODE716 endif717 if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)718 VBoxDrv_DEFS.darwin+= VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION719 ifeq ($(VBOX_SIGNING_MODE),test)720 VBoxDrv_DEFS.darwin+= VBOX_WITH_DARWIN_R0_TEST_SIGN721 endif722 endif723 ifdef VBOX_WITH_NETFLT724 VBoxDrv_DEFS.solaris+= VBOX_WITH_NETFLT725 endif726 ifdef VBOX_WITH_NATIVE_SOLARIS_LOADING727 VBoxDrv_DEFS.solaris+= VBOX_WITH_NATIVE_SOLARIS_LOADING728 endif729 ifdef VBOX_WITHOUT_NATIVE_R0_LOADER730 VBoxDrv_DEFS.win+= VBOX_WITHOUT_NATIVE_R0_LOADER731 endif732 ifdef VBOX_WITH_VISTA_NO_SP733 VBoxDrv_DEFS.win+= VBOX_WITH_VISTA_NO_SP734 endif735 ifdef VBOX_WITH_HARDENING736 VBoxDrv_ASDEFS+= VBOX_WITH_HARDENING737 endif738 ifdef VBOX_WITH_RAM_IN_KERNEL739 VBoxDrv_DEFS+= VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV IPRT_WITHOUT_EFLAGS_AC_PRESERVING740 else if ($(VBOX_VERSION_BUILD) % 2) == 1741 VBoxDrv_DEFS+= VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV IPRT_WITH_EFLAGS_AC_PRESERVING742 endif743 744 VBoxDrv_INCS= . $(VBoxDrv_0_OUTDIR)745 VBoxDrv_INCS.darwin= ./darwin746 747 VBoxDrv_LIBS= $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)748 VBoxDrv_LIBS.win= \749 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \750 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \751 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib752 ifn1of ($(VBOX_WINDDK), WINDDK80 WINDDK71)753 VBoxDrv_LIBS.win.x86= \754 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/BufferOverflowK.lib755 endif756 757 #VBoxDrv_LDFLAGS.darwin = -Wl,-sectcreate,__TEXT,__info_plist,$(VBoxDrv.kext_0_OUTDIR)/Info.plist758 #VBoxDrv_LDFLAGS.darwin = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded759 VBoxDrv_LDFLAGS.solaris += -N misc/ctf760 ifdef VBOX_WITH_NATIVE_DTRACE761 VBoxDrv_LDFLAGS.solaris += -N drv/dtrace762 endif763 VBoxDrv_LDFLAGS.win.x86= -Entry:DriverEntry@8764 VBoxDrv_LDFLAGS.win.amd64= -Entry:DriverEntry765 766 VBoxDrv_SOURCES.darwin= \767 darwin/SUPDrv-darwin.cpp768 ifdef VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION769 VBoxDrv_SOURCES.darwin += \770 $(VBOX_SUP_WIN_CERTS_FILE)771 endif772 VBoxDrv_SOURCES.solaris= \773 solaris/SUPDrv-solaris.c774 VBoxDrv_SOURCES.win= \775 win/SUPDrv-win.cpp \776 win/SUPDrvA-win.asm \777 win/VBoxDrv.rc778 ifdef VBOX_WITH_HARDENING779 VBoxDrv_SOURCES.win+= \780 win/SUPHardenedVerifyImage-win.cpp \781 win/SUPHardenedVerifyProcess-win.cpp \782 $(VBOX_SUP_WIN_CERTS_FILE)783 endif784 VBoxDrv_SOURCES= \785 SUPDrv.d \786 SUPDrv.cpp \787 SUPDrvGip.cpp \788 SUPDrvSem.cpp \641 if !defined(VBOX_ONLY_DOCS) \ 642 && !defined(VBOX_ONLY_EXTPACKS) \ 643 && !defined(VBOX_ONLY_VALIDATIONKIT) 644 645 ifeq ($(KBUILD_TARGET),os2) 646 647 # 648 # VBoxDrv.sys - The OS/2 driver. 649 # 650 VBoxDrv_TEMPLATE = VBoxR0Drv 651 VBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 652 VBoxDrv_INCS := $(PATH_SUB_CURRENT) 653 #VBoxDrv_LDFLAGS = -s -t -v 654 VBoxDrv_SOURCES = \ 655 os2/SUPDrvA-os2.asm \ 656 os2/SUPDrv-os2.def 657 VBoxDrv_LIBS = \ 658 $(VBoxDrvLib_1_TARGET) \ 659 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \ 660 $(VBOX_GCC_LIBGCC) \ 661 end 662 663 # temp hack to ensure that SUPDrvA-os2.asm is first in the link. 664 LIBRARIES += VBoxDrvLib 665 VBoxDrvLib_TEMPLATE = VBoxR0Drv 666 VBoxDrvLib_INSTTYPE = none 667 VBoxDrvLib_DEFS = IN_RT_R0 IN_SUP_R0 668 VBoxDrvLib_INCS := \ 669 . \ 670 $(PATH_ROOT)/src/VBox/Runtime/include 671 VBoxDrvLib_SOURCES = \ 672 os2/SUPDrv-os2.cpp \ 673 SUPDrv.cpp \ 674 SUPDrvGip.cpp \ 675 SUPDrvSem.cpp \ 676 SUPLibAll.cpp 677 678 endif # os2 679 680 681 # 682 # New VBoxDrv target. TODO: Convert all the above to use this! 683 # 684 if1of ($(KBUILD_TARGET), darwin freebsd solaris win) 685 ifdef VBOX_WITH_VBOXDRV 686 SYSMODS += VBoxDrv 687 endif 688 VBoxDrv_TEMPLATE = VBoxR0Drv 689 VBoxDrv_NAME.freebsd = vboxdrv 690 VBoxDrv_NAME.solaris = vboxdrv 691 VBoxDrv_NAME.win = VBoxSup 692 ifdef VBOX_SIGNING_MODE 693 VBoxDrv_INSTTYPE.win = none 694 VBoxDrv_DEBUG_INSTTYPE.win = both 695 endif 696 VBoxDrv_INST.darwin = $(INST_VBOXDRV)Contents/MacOS/ 697 VBoxDrv_DEBUG_INST.darwin = $(patsubst %/,%,$(INST_VBOXDRV)) 698 VBoxDrv_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK) $(VBOX_WINPSDK_INCS) 699 700 VBoxDrv_DEFS := IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV) 701 ifdef VBOX_WITH_DTRACE_R0DRV 702 VBoxDrv_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV 703 endif 704 ifdef VBOX_WITHOUT_DEBUGGER_CHECKS 705 VBoxDrv_DEFS += VBOX_WITHOUT_DEBUGGER_CHECKS 706 endif 707 ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 708 VBoxDrv_DEFS += VBOX_PERMIT_VISUAL_STUDIO_PROFILING 709 endif 710 VBoxDrv_DEFS += VBOX_PERMIT_MORE VBOX_PERMIT_EVEN_MORE 711 #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP 712 VBoxDrv_DEFS.darwin := VBOX_WITH_HOST_VMX 713 ifdef VBOX_WITH_RAW_MODE 714 VBoxDrv_DEFS.darwin += VBOX_WITH_RAW_MODE 715 endif 716 if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE) 717 VBoxDrv_DEFS.darwin += VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION 718 ifeq ($(VBOX_SIGNING_MODE),test) 719 VBoxDrv_DEFS.darwin += VBOX_WITH_DARWIN_R0_TEST_SIGN 720 endif 721 endif 722 ifdef VBOX_WITH_NETFLT 723 VBoxDrv_DEFS.solaris += VBOX_WITH_NETFLT 724 endif 725 ifdef VBOX_WITH_NATIVE_SOLARIS_LOADING 726 VBoxDrv_DEFS.solaris += VBOX_WITH_NATIVE_SOLARIS_LOADING 727 endif 728 ifdef VBOX_WITHOUT_NATIVE_R0_LOADER 729 VBoxDrv_DEFS.win += VBOX_WITHOUT_NATIVE_R0_LOADER 730 endif 731 ifdef VBOX_WITH_VISTA_NO_SP 732 VBoxDrv_DEFS.win += VBOX_WITH_VISTA_NO_SP 733 endif 734 ifdef VBOX_WITH_HARDENING 735 VBoxDrv_ASDEFS += VBOX_WITH_HARDENING 736 endif 737 ifdef VBOX_WITH_RAM_IN_KERNEL 738 VBoxDrv_DEFS += VBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV IPRT_WITHOUT_EFLAGS_AC_PRESERVING 739 else if ($(VBOX_VERSION_BUILD) % 2) == 1 740 VBoxDrv_DEFS += VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV IPRT_WITH_EFLAGS_AC_PRESERVING 741 endif 742 743 VBoxDrv_INCS = . $(VBoxDrv_0_OUTDIR) 744 VBoxDrv_INCS.darwin = ./darwin 745 746 VBoxDrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 747 VBoxDrv_LIBS.win = \ 748 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) \ 749 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \ 750 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib 751 ifn1of ($(VBOX_WINDDK), WINDDK80 WINDDK71) 752 VBoxDrv_LIBS.win.x86 = \ 753 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/BufferOverflowK.lib 754 endif 755 756 #VBoxDrv_LDFLAGS.darwin = -Wl,-sectcreate,__TEXT,__info_plist,$(VBoxDrv.kext_0_OUTDIR)/Info.plist 757 #VBoxDrv_LDFLAGS.darwin = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded 758 VBoxDrv_LDFLAGS.solaris += -N misc/ctf 759 ifdef VBOX_WITH_NATIVE_DTRACE 760 VBoxDrv_LDFLAGS.solaris += -N drv/dtrace 761 endif 762 VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry@8 763 VBoxDrv_LDFLAGS.win.amd64 = -Entry:DriverEntry 764 765 VBoxDrv_SOURCES.darwin = \ 766 darwin/SUPDrv-darwin.cpp 767 ifdef VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION 768 VBoxDrv_SOURCES.darwin += \ 769 $(VBOX_SUP_WIN_CERTS_FILE) 770 endif 771 VBoxDrv_SOURCES.solaris = \ 772 solaris/SUPDrv-solaris.c 773 VBoxDrv_SOURCES.win = \ 774 win/SUPDrv-win.cpp \ 775 win/SUPDrvA-win.asm \ 776 win/VBoxDrv.rc 777 ifdef VBOX_WITH_HARDENING 778 VBoxDrv_SOURCES.win += \ 779 win/SUPHardenedVerifyImage-win.cpp \ 780 win/SUPHardenedVerifyProcess-win.cpp \ 781 $(VBOX_SUP_WIN_CERTS_FILE) 782 endif 783 VBoxDrv_SOURCES = \ 784 SUPDrv.d \ 785 SUPDrv.cpp \ 786 SUPDrvGip.cpp \ 787 SUPDrvSem.cpp \ 789 788 SUPDrvTracer.cpp \ 790 SUPLibAll.cpp791 ifdef VBOX_WITH_NATIVE_DTRACE792 VBoxDrv_SOURCES+= \793 SUPDrv-dtrace.cpp794 SUPDrv-dtrace.cpp_DEFS.darwin += VBOX_PATH_MACOSX_DTRACE_H=\"$(VBOX_PATH_MACOSX_SDK)/usr/include/sys/dtrace.h\"795 endif796 ifn1of ($(KBUILD_TARGET), linux freebsd)797 VBoxDrv_SOURCES+= \798 SUPDrvTracerA.asm799 endif800 801 linux/SUPDrv-linux.c_DEPS = $(VBOX_SVN_REV_HEADER)802 803 endif804 805 806 807 if defined(VBOX_WITH_VBOXDRV) && "$(KBUILD_TARGET)" == "darwin"808 # Files necessary to make a darwin kernel extension bundle.809 INSTALLS.darwin += VBoxDrv.kext810 VBoxDrv.kext_INST= $(INST_VBOXDRV)Contents/811 VBoxDrv.kext_SOURCES= $(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist812 VBoxDrv.kext_CLEAN= $(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist813 VBoxDrv.kext_BLDDIRS= $(VBoxDrv.kext_0_OUTDIR)/Contents/814 815 $$(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist: \816 $(PATH_SUB_CURRENT)/darwin/Info.plist \817 $(VBOX_VERSION_MK) | $$(dir $$@)789 SUPLibAll.cpp 790 ifdef VBOX_WITH_NATIVE_DTRACE 791 VBoxDrv_SOURCES += \ 792 SUPDrv-dtrace.cpp 793 SUPDrv-dtrace.cpp_DEFS.darwin += VBOX_PATH_MACOSX_DTRACE_H=\"$(VBOX_PATH_MACOSX_SDK)/usr/include/sys/dtrace.h\" 794 endif 795 ifn1of ($(KBUILD_TARGET), linux freebsd) 796 VBoxDrv_SOURCES += \ 797 SUPDrvTracerA.asm 798 endif 799 800 linux/SUPDrv-linux.c_DEPS = $(VBOX_SVN_REV_HEADER) 801 802 endif 803 804 805 806 if defined(VBOX_WITH_VBOXDRV) && "$(KBUILD_TARGET)" == "darwin" 807 # Files necessary to make a darwin kernel extension bundle. 808 INSTALLS.darwin += VBoxDrv.kext 809 VBoxDrv.kext_INST = $(INST_VBOXDRV)Contents/ 810 VBoxDrv.kext_SOURCES = $(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist 811 VBoxDrv.kext_CLEAN = $(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist 812 VBoxDrv.kext_BLDDIRS = $(VBoxDrv.kext_0_OUTDIR)/Contents/ 813 814 $$(VBoxDrv.kext_0_OUTDIR)/Contents/Info.plist: \ 815 $(PATH_SUB_CURRENT)/darwin/Info.plist \ 816 $(VBOX_VERSION_MK) | $$(dir $$@) 818 817 $(call MSG_GENERATE,VBoxDrv,$@,$<) 819 818 $(QUIET)$(RM) -f $@ … … 829 828 $< 830 829 831 $(evalcall2 VBOX_TEST_SIGN_KEXT,VBoxDrv)832 endif833 834 835 if1of ($(KBUILD_TARGET), darwin solaris)836 ifdef VBOX_WITH_VBOXDRV837 # Common manual loader script.838 INSTALLS += SUPDrvScripts839 SUPDrvScripts_INST = $(INST_DIST)840 SUPDrvScripts_EXEC_SOURCES= \841 $(KBUILD_TARGET)/load.sh842 endif843 endif844 845 846 if1of ($(KBUILD_TARGET), linux freebsd)847 if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))848 #849 # Targets for installing the linux sources.850 #851 vboxdrv-src_INST= bin/src/vboxdrv/852 vboxdrv-src_SOURCES = \853 $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \854 $(vboxdrv-src_0_OUTDIR)/Makefile855 vboxdrv-src_EXEC_SOURCES= \856 $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN))857 vboxdrv-src_CLEAN= \858 $(vboxdrv-src_0_OUTDIR)/Makefile \859 $(PATH_TARGET)/vboxdrv-src-1.dep \ 860 861 # Scripts needed for building the kernel modules862 includedep $(PATH_TARGET)/vboxdrv-src-1.dep863 $$(vboxdrv-src_0_OUTDIR)/Makefile: \864 $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile \865 $$(if $$(eq $$(Support/$(KBUILD_TARGET)/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \866 $$(if $$(eq $$(Support/$(KBUILD_TARGET)/Makefile_VBOX_RAM_IN_KERNEL),$$(VBOX_WITH_RAM_IN_KERNEL)),,FORCE) \867 | $$(dir $$@)830 $(evalcall2 VBOX_TEST_SIGN_KEXT,VBoxDrv) 831 endif 832 833 834 if1of ($(KBUILD_TARGET), darwin solaris) 835 ifdef VBOX_WITH_VBOXDRV 836 # Common manual loader script. 837 INSTALLS += SUPDrvScripts 838 SUPDrvScripts_INST = $(INST_DIST) 839 SUPDrvScripts_EXEC_SOURCES = \ 840 $(KBUILD_TARGET)/load.sh 841 endif 842 endif 843 844 845 if1of ($(KBUILD_TARGET), linux freebsd) 846 if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS)) 847 # 848 # Targets for installing the linux sources. 849 # 850 vboxdrv-src_INST = bin/src/vboxdrv/ 851 vboxdrv-src_SOURCES = \ 852 $(subst $(DQUOTE),,$(FILES_VBOXDRV_NOBIN)) \ 853 $(vboxdrv-src_0_OUTDIR)/Makefile 854 vboxdrv-src_EXEC_SOURCES = \ 855 $(subst $(DQUOTE),,$(FILES_VBOXDRV_BIN)) 856 vboxdrv-src_CLEAN = \ 857 $(vboxdrv-src_0_OUTDIR)/Makefile \ 858 $(PATH_TARGET)/vboxdrv-src-1.dep 859 860 # Scripts needed for building the kernel modules 861 includedep $(PATH_TARGET)/vboxdrv-src-1.dep 862 $$(vboxdrv-src_0_OUTDIR)/Makefile: \ 863 $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile \ 864 $$(if $$(eq $$(Support/$(KBUILD_TARGET)/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 865 $$(if $$(eq $$(Support/$(KBUILD_TARGET)/Makefile_VBOX_RAM_IN_KERNEL),$$(VBOX_WITH_RAM_IN_KERNEL)),,FORCE) \ 866 | $$(dir $$@) 868 867 $(call MSG_TOOL,Creating,,$@) 869 868 $(QUIET)$(SED) -e "" \ … … 874 873 'Support/$(KBUILD_TARGET)/Makefile_VBOX_RAM_IN_KERNEL=$(VBOX_WITH_RAM_IN_KERNEL)' 875 874 876 #877 # Build test for the linux host kernel modules.878 #879 $(evalcall2 VBOX_LINUX_KMOD_TEST_BUILD_RULE_FN,vboxdrv-src,,save_symvers)880 881 ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS882 #883 # Common wrapper module files.884 #885 INSTALLS.linux += vboxwrappermod-common-src886 vboxwrappermod-common-src_INST = bin/src/common/887 vboxwrappermod-common-src_SOURCES = \888 linux/SUPWrapperMod-linux.c=>SUPWrapperMod-linux.c \889 linux/Makefile-wrapper.gmk=>Makefile-wrapper.gmk \890 $(PATH_ROOT)/src/VBox/Installer/linux/Makefile-header.gmk=>Makefile-header.gmk \891 $(PATH_ROOT)/src/VBox/Installer/linux/Makefile-footer.gmk=>Makefile-footer.gmk892 endif893 894 endif # supported host arch895 endif # linux freebsd896 897 898 ifeq ($(KBUILD_TARGET),win)899 INSTALLS.win += VBoxSup-inf900 VBoxSup-inf_TEMPLATE = VBoxR0DrvInfCat901 VBoxSup-inf_SOURCES = \902 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf903 VBoxSup-inf_CLEAN = $(VBoxSup-inf_SOURCES)904 VBoxSup-inf_BLDDIRS = $(PATH_TARGET)/VBoxSupCat.dir905 906 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf: $(PATH_SUB_CURRENT)/win/VBoxSup.inf $(MAKEFILE_CURRENT) | $$(dir $$@)875 # 876 # Build test for the linux host kernel modules. 877 # 878 $(evalcall2 VBOX_LINUX_KMOD_TEST_BUILD_RULE_FN,vboxdrv-src,,save_symvers) 879 880 ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS 881 # 882 # Common wrapper module files. 883 # 884 INSTALLS.linux += vboxwrappermod-common-src 885 vboxwrappermod-common-src_INST = bin/src/common/ 886 vboxwrappermod-common-src_SOURCES = \ 887 linux/SUPWrapperMod-linux.c=>SUPWrapperMod-linux.c \ 888 linux/Makefile-wrapper.gmk=>Makefile-wrapper.gmk \ 889 $(PATH_ROOT)/src/VBox/Installer/linux/Makefile-header.gmk=>Makefile-header.gmk \ 890 $(PATH_ROOT)/src/VBox/Installer/linux/Makefile-footer.gmk=>Makefile-footer.gmk 891 endif 892 893 endif # supported host arch 894 endif # linux freebsd 895 896 897 ifeq ($(KBUILD_TARGET),win) 898 INSTALLS.win += VBoxSup-inf 899 VBoxSup-inf_TEMPLATE = VBoxR0DrvInfCat 900 VBoxSup-inf_SOURCES = \ 901 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf 902 VBoxSup-inf_CLEAN = $(VBoxSup-inf_SOURCES) 903 VBoxSup-inf_BLDDIRS = $(PATH_TARGET)/VBoxSupCat.dir 904 905 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf: $(PATH_SUB_CURRENT)/win/VBoxSup.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 907 906 $(call MSG_GENERATE,VBoxSup-inf,$@,$<) 908 907 $(call VBOX_EDIT_INF_FN,$<,$@) 909 908 910 ifdef VBOX_SIGNING_MODE911 VBoxSup-inf_SOURCES += \912 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys \913 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat \914 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat=>VBoxSup-PreW10.cat915 916 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@)909 ifdef VBOX_SIGNING_MODE 910 VBoxSup-inf_SOURCES += \ 911 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys \ 912 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat \ 913 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat=>VBoxSup-PreW10.cat 914 915 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@) 917 916 $(INSTALL) -m 644 -- "$<" "$(@D)" 918 917 919 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat: \920 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf \921 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys918 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.cat: \ 919 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.inf \ 920 $(PATH_TARGET)/VBoxSupCat.dir/VBoxSup.sys 922 921 $(call MSG_TOOL,Inf2Cat,VBoxSup-inf,$@,$<) 923 922 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 924 endif # signing925 endif # win926 927 #928 # Linux only.929 #930 PROGRAMS.linux += LnxPerfHack931 LnxPerfHack_TEMPLATE = VBoxR3Tool932 LnxPerfHack_SOURCES = linux/LnxPerfHack.cpp923 endif # signing 924 endif # win 925 926 # 927 # Linux only. 928 # 929 PROGRAMS.linux += LnxPerfHack 930 LnxPerfHack_TEMPLATE = VBoxR3Tool 931 LnxPerfHack_SOURCES = linux/LnxPerfHack.cpp 933 932 934 933 -
trunk/src/VBox/HostDrivers/Support/testcase/Makefile.kmk
r98256 r98414 49 49 ifdef VBOX_WITH_TESTCASES 50 50 if defined(VBOX_WITH_HARDENING) 51 PROGRAMS += \52 tstSupVerify51 PROGRAMS += \ 52 tstSupVerify 53 53 endif 54 54 if !defined(VBOX_WITH_HARDENING) || "$(KBUILD_TARGET)" != "win" 55 PROGRAMS += \56 tstPage \57 tstContiguous \58 tstInit \59 tstInt \60 tstLow \61 tstPin \62 tstGetPagingMode \63 tstSupLoadModule \64 tstSupSem \65 tstSupSem-Zombie \66 tstSupTscDelta55 PROGRAMS += \ 56 tstPage \ 57 tstContiguous \ 58 tstInit \ 59 tstInt \ 60 tstLow \ 61 tstPin \ 62 tstGetPagingMode \ 63 tstSupLoadModule \ 64 tstSupSem \ 65 tstSupSem-Zombie \ 66 tstSupTscDelta 67 67 endif 68 PROGRAMS.win += \69 tstNtQueryStuff68 PROGRAMS.win += \ 69 tstNtQueryStuff 70 70 endif # VBOX_WITH_TESTCASES 71 71 … … 87 87 tstInt_LIBS = $(LIB_RUNTIME) 88 88 89 tstContiguous_TEMPLATE = VBoxR3TstExe89 tstContiguous_TEMPLATE = VBoxR3TstExe 90 90 tstContiguous_SOURCES = tstContiguous.cpp 91 91 … … 128 128 129 129 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 130 tstGIP-2_TEMPLATE:= VBoxR3HardenedTstDll130 tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll 131 131 else 132 tstGIP-2_TEMPLATE:= VBoxR3TstExe132 tstGIP-2_TEMPLATE := VBoxR3TstExe 133 133 endif 134 134 tstGIP-2_SOURCES = tstGIP-2.cpp -
trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk
r98125 r98414 47 47 VBoxNetAdp_TEMPLATE = VBoxR0Drv 48 48 VBoxNetAdp_INST = $(INST_VBOXNETADP)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/) 49 VBoxNetAdp_DEBUG_INST.darwin = $(patsubst %/,%,$(INST_VBOXNETADP))49 VBoxNetAdp_DEBUG_INST.darwin = $(patsubst %/,%,$(INST_VBOXNETADP)) 50 50 VBoxNetAdp_NAME.solaris = vboxnet 51 51 VBoxNetAdp_NAME.freebsd = vboxnetadp … … 82 82 VBoxNetAdp.kext_BLDDIRS = $(VBoxNetAdp.kext_0_OUTDIR)/Contents/ 83 83 84 $$(VBoxNetAdp.kext_0_OUTDIR)/Contents/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)84 $$(VBoxNetAdp.kext_0_OUTDIR)/Contents/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@) 85 85 $(call MSG_GENERATE,VBoxNetAdp,$@,$<) 86 86 $(QUIET)$(RM) -f $@ … … 140 140 VBoxNetAdp6-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdp6Cat.dir 141 141 142 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@)142 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 143 143 $(call MSG_GENERATE,VBoxNetAdp6-inf,$@,$<) 144 144 $(call VBOX_EDIT_INF_FN,$<,$@) 145 145 146 146 ifdef VBOX_SIGNING_MODE 147 VBoxNetAdp6-inf_SOURCES += \148 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \149 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat \150 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat=>VBoxNetAdp6-PreW10.cat151 152 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@)147 VBoxNetAdp6-inf_SOURCES += \ 148 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \ 149 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat \ 150 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat=>VBoxNetAdp6-PreW10.cat 151 152 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@) 153 153 $(INSTALL) -m 644 $< $(@D) 154 154 155 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \156 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \157 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf155 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \ 156 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \ 157 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf 158 158 $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<) 159 159 $(call VBOX_MAKE_CAT_FN, $(@D),$@) … … 172 172 VBoxNetAdp-src_INST = bin/src/vboxnetadp/ 173 173 VBoxNetAdp-src_SOURCES = \ 174 $(subst $(DQUOTE),,$(VBOX_VBOXNETADP_SOURCES)) \175 $(VBoxNetAdp-src_0_OUTDIR)/Makefile174 $(subst $(DQUOTE),,$(VBOX_VBOXNETADP_SOURCES)) \ 175 $(VBoxNetAdp-src_0_OUTDIR)/Makefile 176 176 VBoxNetAdp-src_CLEAN = \ 177 $(VBoxNetAdp-src_0_OUTDIR)/Makefile \178 $(PATH_TARGET)/VBoxNetAdp-src-1.dep \ 177 $(VBoxNetAdp-src_0_OUTDIR)/Makefile \ 178 $(PATH_TARGET)/VBoxNetAdp-src-1.dep 179 179 180 180 # Scripts needed for building the kernel modules 181 181 includedep $(PATH_TARGET)/VBoxNetAdp-src-1.dep 182 $$(VBoxNetAdp-src_0_OUTDIR)/Makefile: \183 $(PATH_SUB_CURRENT)/linux/Makefile \184 $$(if $$(eq $$(VBoxNetAdp/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \185 | $$(dir $$@)182 $$(VBoxNetAdp-src_0_OUTDIR)/Makefile: \ 183 $(PATH_SUB_CURRENT)/linux/Makefile \ 184 $$(if $$(eq $$(VBoxNetAdp/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 185 | $$(dir $$@) 186 186 $(QUIET)$(RM) -f -- $@ 187 187 ifndef VBOX_WITH_HARDENING … … 207 207 VBoxNetAdp-src_INST = bin/src/vboxnetadp/ 208 208 VBoxNetAdp-src_SOURCES = \ 209 $(subst $(DQUOTE),,$(VBOX_VBOXNETADP_SOURCES)) \210 $(VBoxNetAdp-src_0_OUTDIR)/Makefile209 $(subst $(DQUOTE),,$(VBOX_VBOXNETADP_SOURCES)) \ 210 $(VBoxNetAdp-src_0_OUTDIR)/Makefile 211 211 VBoxNetAdp-src_CLEAN = \ 212 $(VBoxNetAdp-src_0_OUTDIR)/Makefile \ 213 214 $$(VBoxNetAdp-src_0_OUTDIR)/Makefile: \215 $(PATH_SUB_CURRENT)/freebsd/Makefile \216 $$(if $$(eq $$(VBoxNetAdp/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \217 | $$(dir $$@)212 $(VBoxNetAdp-src_0_OUTDIR)/Makefile 213 214 $$(VBoxNetAdp-src_0_OUTDIR)/Makefile: \ 215 $(PATH_SUB_CURRENT)/freebsd/Makefile \ 216 $$(if $$(eq $$(VBoxNetAdp/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 217 | $$(dir $$@) 218 218 $(QUIET)$(RM) -f -- $@ 219 219 ifndef VBOX_WITH_HARDENING -
trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
r98257 r98414 90 90 91 91 92 # Darwin extras.93 if "$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_VBOXDRV)94 INSTALLS += VBoxNetFlt.kext95 VBoxNetFlt.kext_INST= $(INST_VBOXNETFLT)Contents/96 VBoxNetFlt.kext_SOURCES= $(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist97 VBoxNetFlt.kext_CLEAN= $(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist98 VBoxNetFlt.kext_BLDDIRS= $(VBoxNetFlt.kext_0_OUTDIR)/Contents/99 100 $$(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)92 # Darwin extras. 93 if "$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_VBOXDRV) 94 INSTALLS += VBoxNetFlt.kext 95 VBoxNetFlt.kext_INST = $(INST_VBOXNETFLT)Contents/ 96 VBoxNetFlt.kext_SOURCES = $(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist 97 VBoxNetFlt.kext_CLEAN = $(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist 98 VBoxNetFlt.kext_BLDDIRS = $(VBoxNetFlt.kext_0_OUTDIR)/Contents/ 99 100 $$(VBoxNetFlt.kext_0_OUTDIR)/Contents/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@) 101 101 $(call MSG_GENERATE,VBoxNetFlt,$@,$<) 102 102 $(QUIET)$(RM) -f $@ … … 112 112 $< 113 113 114 $(evalcall2 VBOX_TEST_SIGN_KEXT,VBoxNetFlt)115 116 INSTALLS.darwin += Scripts-darwin117 Scripts-darwin_INST = $(INST_DIST)118 Scripts-darwin_EXEC_SOURCES = \119 darwin/loadnetflt.sh120 endif # darwin && host-drivers121 122 123 ifeq ($(KBUILD_TARGET),win)124 #125 # Windows extras.126 #127 INSTALLS.win += VBoxNetFlt-inf128 VBoxNetFlt-inf_TEMPLATE = VBoxR0DrvInfCat129 VBoxNetFlt-inf_SOURCES = \130 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf \131 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf132 VBoxNetFlt-inf_CLEAN = $(VBoxNetFlt-inf_SOURCES)133 VBoxNetFlt-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetFltCat.dir134 135 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetFlt.inf $(MAKEFILE_CURRENT) | $$(dir $$@)114 $(evalcall2 VBOX_TEST_SIGN_KEXT,VBoxNetFlt) 115 116 INSTALLS.darwin += Scripts-darwin 117 Scripts-darwin_INST = $(INST_DIST) 118 Scripts-darwin_EXEC_SOURCES = \ 119 darwin/loadnetflt.sh 120 endif # darwin && host-drivers 121 122 123 ifeq ($(KBUILD_TARGET),win) 124 # 125 # Windows extras. 126 # 127 INSTALLS.win += VBoxNetFlt-inf 128 VBoxNetFlt-inf_TEMPLATE = VBoxR0DrvInfCat 129 VBoxNetFlt-inf_SOURCES = \ 130 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf \ 131 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf 132 VBoxNetFlt-inf_CLEAN = $(VBoxNetFlt-inf_SOURCES) 133 VBoxNetFlt-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetFltCat.dir 134 135 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetFlt.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 136 136 $(call MSG_GENERATE,VBoxNetFlt-inf,$@,$<) 137 137 $(call VBOX_EDIT_INF_FN,$<,$@) 138 138 139 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetFltM.inf $(MAKEFILE_CURRENT) | $$(dir $$@)139 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetFltM.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 140 140 $(call MSG_GENERATE,VBoxNetFlt-inf,$@,$<) 141 141 $(call VBOX_EDIT_INF_FN,$<,$@) 142 142 143 ifdef VBOX_SIGNING_MODE144 VBoxNetFlt-inf_SOURCES += \145 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys \146 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll \147 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.cat148 149 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys: $$(VBoxNetFlt_1_TARGET) | $$(dir $$@)143 ifdef VBOX_SIGNING_MODE 144 VBoxNetFlt-inf_SOURCES += \ 145 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys \ 146 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll \ 147 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.cat 148 149 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys: $$(VBoxNetFlt_1_TARGET) | $$(dir $$@) 150 150 $(INSTALL) -m 644 $< $(@D) 151 151 152 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll: $$(VBoxNetFltNobj_1_TARGET) | $$(dir $$@)152 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll: $$(VBoxNetFltNobj_1_TARGET) | $$(dir $$@) 153 153 $(INSTALL) -m 644 $< $(@D) 154 154 155 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.cat: \156 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys \157 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll \158 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf \159 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf155 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.cat: \ 156 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys \ 157 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltNobj.dll \ 158 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf \ 159 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFltM.inf 160 160 $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<) 161 161 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 162 162 163 endif # signing164 165 166 #167 # VBoxNetLwf.sys - The light-weight filter driver for NDIS6.168 #169 SYSMODS += VBoxNetLwf170 VBoxNetLwf_TEMPLATE = VBoxR0Drv171 VBoxNetLwf_INST = $(INST_VBOXNETFLT)172 if defined(VBOX_SIGNING_MODE)173 VBoxNetLwf_INSTTYPE = none174 VBoxNetLwf_DEBUG_INSTTYPE = both175 endif176 VBoxNetLwf_DEFS = IN_RT_R0 IN_SUP_STATIC177 VBoxNetLwf_INCS = .178 VBoxNetLwf_SOURCES = VBoxNetFlt.c VBoxNetFlt.rc179 VBoxNetLwf_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS)180 VBoxNetLwf_SOURCES.win = \181 win/drv/VBoxNetLwf-win.cpp182 # with WINDDKWLH the WIN9X_COMPAT_SPINLOCK is needed to avoid inline declaration of KeInitializeSpinLock183 # otherwise the linker would complain about dumplicate _KeInitializeSpinLock@4 definition184 # in ntoskrnl.lib and our object files185 VBoxNetLwf_DEFS.win += WIN9X_COMPAT_SPINLOCK=1 NDISLWF=1 DBG=1186 # VBoxNetLwf_DEFS.win += VBOXNETFLT_STATIC_CONFIG187 # VBoxNetLwf_DEFS.win += VBOXNETFLT_NO_PACKET_QUEUE188 # VBoxNetLwf_DEFS.win += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0189 VBoxNetLwf_DEFS.win += NDIS60=1190 # ifdef VBOX_LOOPBACK_USEFLAGS191 # VBoxNetLwf_DEFS.win += VBOX_LOOPBACK_USEFLAGS192 # endif193 # VBoxNetLwf_SOURCES = VBoxNetLwf.c194 VBoxNetLwf_LDFLAGS.win.x86 = -Entry:DriverEntry@8195 VBoxNetLwf_LDFLAGS.win.amd64 = -Entry:DriverEntry196 VBoxNetLwf_LIBS.win = \197 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/ntoskrnl.lib \198 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/hal.lib \199 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/ndis.lib \200 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/netio.lib \201 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)202 VBoxNetLwf_LIBS = \203 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)204 #205 # VBoxNetLwf installation.206 #207 INSTALLS.win += VBoxNetLwf-inf208 VBoxNetLwf-inf_TEMPLATE = VBoxR0DrvInfCat209 VBoxNetLwf-inf_SOURCES = \210 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf211 VBoxNetLwf-inf_CLEAN = $(VBoxNetLwf-inf_SOURCES)212 VBoxNetLwf-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetLwfCat.dir213 214 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetLwf.inf $(MAKEFILE_CURRENT) | $$(dir $$@)163 endif # signing 164 165 166 # 167 # VBoxNetLwf.sys - The light-weight filter driver for NDIS6. 168 # 169 SYSMODS += VBoxNetLwf 170 VBoxNetLwf_TEMPLATE = VBoxR0Drv 171 VBoxNetLwf_INST = $(INST_VBOXNETFLT) 172 if defined(VBOX_SIGNING_MODE) 173 VBoxNetLwf_INSTTYPE = none 174 VBoxNetLwf_DEBUG_INSTTYPE = both 175 endif 176 VBoxNetLwf_DEFS = IN_RT_R0 IN_SUP_STATIC 177 VBoxNetLwf_INCS = . 178 VBoxNetLwf_SOURCES = VBoxNetFlt.c VBoxNetFlt.rc 179 VBoxNetLwf_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS) 180 VBoxNetLwf_SOURCES.win = \ 181 win/drv/VBoxNetLwf-win.cpp 182 # with WINDDKWLH the WIN9X_COMPAT_SPINLOCK is needed to avoid inline declaration of KeInitializeSpinLock 183 # otherwise the linker would complain about dumplicate _KeInitializeSpinLock@4 definition 184 # in ntoskrnl.lib and our object files 185 VBoxNetLwf_DEFS.win += WIN9X_COMPAT_SPINLOCK=1 NDISLWF=1 DBG=1 186 # VBoxNetLwf_DEFS.win += VBOXNETFLT_STATIC_CONFIG 187 # VBoxNetLwf_DEFS.win += VBOXNETFLT_NO_PACKET_QUEUE 188 # VBoxNetLwf_DEFS.win += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0 189 VBoxNetLwf_DEFS.win += NDIS60=1 190 # ifdef VBOX_LOOPBACK_USEFLAGS 191 # VBoxNetLwf_DEFS.win += VBOX_LOOPBACK_USEFLAGS 192 # endif 193 # VBoxNetLwf_SOURCES = VBoxNetLwf.c 194 VBoxNetLwf_LDFLAGS.win.x86 = -Entry:DriverEntry@8 195 VBoxNetLwf_LDFLAGS.win.amd64 = -Entry:DriverEntry 196 VBoxNetLwf_LIBS.win = \ 197 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/ntoskrnl.lib \ 198 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/hal.lib \ 199 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/ndis.lib \ 200 $(PATH_SDK_$(VBOX_WINDDK_WLH)_LIB)/netio.lib \ 201 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 202 VBoxNetLwf_LIBS = \ 203 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 204 # 205 # VBoxNetLwf installation. 206 # 207 INSTALLS.win += VBoxNetLwf-inf 208 VBoxNetLwf-inf_TEMPLATE = VBoxR0DrvInfCat 209 VBoxNetLwf-inf_SOURCES = \ 210 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf 211 VBoxNetLwf-inf_CLEAN = $(VBoxNetLwf-inf_SOURCES) 212 VBoxNetLwf-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetLwfCat.dir 213 214 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetLwf.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 215 215 $(call MSG_GENERATE,VBoxNetLwf-inf,$@,$<) 216 216 $(call VBOX_EDIT_INF_FN,$<,$@) 217 217 218 ifdef VBOX_SIGNING_MODE219 VBoxNetLwf-inf_SOURCES += \220 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys \221 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat \222 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat=>VBoxNetLwf-PreW10.cat223 224 # $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwfNobj.dll \225 226 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys: $$(VBoxNetLwf_1_TARGET) | $$(dir $$@)218 ifdef VBOX_SIGNING_MODE 219 VBoxNetLwf-inf_SOURCES += \ 220 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys \ 221 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat \ 222 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat=>VBoxNetLwf-PreW10.cat 223 224 # $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwfNobj.dll \ 225 226 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys: $$(VBoxNetLwf_1_TARGET) | $$(dir $$@) 227 227 $(INSTALL) -m 644 $< $(@D) 228 228 229 #$(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwfNobj.dll: $$(VBoxNetLwfNobj_1_TARGET) | $$(dir $$@)230 # $(INSTALL) -m 644 $< $(@D)231 232 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat: \233 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys \234 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf229 #$(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwfNobj.dll: $$(VBoxNetLwfNobj_1_TARGET) | $$(dir $$@) 230 # $(INSTALL) -m 644 $< $(@D) 231 232 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.cat: \ 233 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.sys \ 234 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf 235 235 $(call MSG_TOOL,Inf2Cat,VBoxNetLwf-inf,$@,$<) 236 236 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 237 237 238 endif # signing239 240 241 242 #243 # WinNetConfig - static library with host network interface config API (for the installer)244 #245 LIBRARIES.win += WinNetConfigSharedStatic246 WinNetConfigSharedStatic_TEMPLATE = VBoxR3StaticDllNoAsan247 WinNetConfigSharedStatic_SDKS= ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)248 WinNetConfigSharedStatic_DEFS= _UNICODE UNICODE249 WinNetConfigSharedStatic_SOURCES= \250 win/cfg/VBoxNetCfg.cpp \251 252 253 # Version for DLLs:254 LIBRARIES.win += WinNetConfigDll255 WinNetConfigDll_TEMPLATE = VBoxR3Dll256 WinNetConfigDll_EXTENDS= WinNetConfigSharedStatic257 258 # Version for EXEs:259 LIBRARIES.win += WinNetConfigExe260 WinNetConfigExe_TEMPLATE = VBoxR3Exe261 WinNetConfigExe_EXTENDS= WinNetConfigSharedStatic262 263 264 #265 # Template for NetFltInstall and friends.266 #267 TEMPLATE_VBoxNetFltR3 = Template for NetFltInstall, NetFltUninstall, NetAdpInstall, NetAdpUninstall, ++268 TEMPLATE_VBoxNetFltR3_EXTENDS= VBoxR3Exe269 TEMPLATE_VBoxNetFltR3_SDKS= $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll VBoxWinNewDevLib270 TEMPLATE_VBoxNetFltR3_LIBS= $(TEMPLATE_VBoxR3Exe_LIBS) \271 $(WinNetConfigExe_1_TARGET) \272 $(PATH_STAGE_LIB)/VBoxDrvCfgExe$(VBOX_SUFF_LIB) \273 238 endif # signing 239 240 241 242 # 243 # WinNetConfig - static library with host network interface config API (for the installer) 244 # 245 LIBRARIES.win += WinNetConfigSharedStatic 246 WinNetConfigSharedStatic_TEMPLATE = VBoxR3StaticDllNoAsan 247 WinNetConfigSharedStatic_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 248 WinNetConfigSharedStatic_DEFS = _UNICODE UNICODE 249 WinNetConfigSharedStatic_SOURCES = \ 250 win/cfg/VBoxNetCfg.cpp \ 251 ../../Main/glue/string.cpp 252 253 # Version for DLLs: 254 LIBRARIES.win += WinNetConfigDll 255 WinNetConfigDll_TEMPLATE = VBoxR3Dll 256 WinNetConfigDll_EXTENDS = WinNetConfigSharedStatic 257 258 # Version for EXEs: 259 LIBRARIES.win += WinNetConfigExe 260 WinNetConfigExe_TEMPLATE = VBoxR3Exe 261 WinNetConfigExe_EXTENDS = WinNetConfigSharedStatic 262 263 264 # 265 # Template for NetFltInstall and friends. 266 # 267 TEMPLATE_VBoxNetFltR3 = Template for NetFltInstall, NetFltUninstall, NetAdpInstall, NetAdpUninstall, ++ 268 TEMPLATE_VBoxNetFltR3_EXTENDS = VBoxR3Exe 269 TEMPLATE_VBoxNetFltR3_SDKS = $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll VBoxWinNewDevLib 270 TEMPLATE_VBoxNetFltR3_LIBS = $(TEMPLATE_VBoxR3Exe_LIBS) \ 271 $(WinNetConfigExe_1_TARGET) \ 272 $(PATH_STAGE_LIB)/VBoxDrvCfgExe$(VBOX_SUFF_LIB) \ 273 $(LIB_RUNTIME) \ 274 274 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \ 275 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib276 277 #278 # NetFltInstall279 #280 PROGRAMS.win+= NetFltInstall281 NetFltInstall_TEMPLATE = VBoxNetFltR3282 NetFltInstall_SOURCES= win/tools/VBoxNetFltInstall.cpp283 284 #285 # NetFltUninstall286 #287 PROGRAMS.win+= NetFltUninstall288 NetFltUninstall_TEMPLATE = VBoxNetFltR3289 NetFltUninstall_SOURCES= win/tools/VBoxNetFltUninstall.cpp290 291 #292 # NetAdpInstall293 #294 PROGRAMS.win+= NetAdpInstall295 NetAdpInstall_TEMPLATE = VBoxNetFltR3296 NetAdpInstall_SOURCES= win/tools/VBoxNetAdpInstall.cpp297 298 #299 # NetAdpUninstall300 #301 PROGRAMS.win+= NetAdpUninstall302 NetAdpUninstall_TEMPLATE = VBoxNetFltR3303 NetAdpUninstall_SOURCES= win/tools/VBoxNetAdpUninstall.cpp304 305 #306 # NetAdp6Install307 #308 PROGRAMS.win+= NetAdp6Install309 NetAdp6Install_TEMPLATE = VBoxNetFltR3310 NetAdp6Install_SOURCES= win/tools/VBoxNetAdpInstall.cpp311 NetAdp6Install_DEFS= NDIS60=1312 313 #314 # NetAdp6Uninstall315 #316 PROGRAMS.win+= NetAdp6Uninstall317 NetAdp6Uninstall_TEMPLATE = VBoxNetFltR3318 NetAdp6Uninstall_SOURCES= win/tools/VBoxNetAdpUninstall.cpp319 NetAdp6Uninstall_DEFS= NDIS60=1320 321 #322 # NetLwfInstall323 #324 PROGRAMS.win+= NetLwfInstall325 NetLwfInstall_TEMPLATE = VBoxNetFltR3326 NetLwfInstall_SOURCES= win/tools/VBoxNetLwfInstall.cpp327 328 #329 # NetLwfUninstall330 #331 PROGRAMS.win+= NetLwfUninstall332 NetLwfUninstall_TEMPLATE = VBoxNetFltR3333 NetLwfUninstall_SOURCES= win/tools/VBoxNetLwfUninstall.cpp334 335 #336 # VBoxNetFltNobj337 #338 DLLS.win += VBoxNetFltNobj339 VBoxNetFltNobj_TEMPLATE= VBoxR3StaticDll340 if defined(VBOX_SIGNING_MODE)341 VBoxNetFltNobj_INSTTYPE= none342 VBoxNetFltNobj_DEBUG_INSTTYPE = both343 endif344 VBoxNetFltNobj_SDKS= ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)345 VBoxNetFltNobj_DEFS= WIN32 _ATL_STATIC_REGISTRY346 VBoxNetFltNobj_INCS= \347 $(VBoxNetFltNobj_0_OUTDIR)348 VBoxNetFltNobj_SOURCES= \349 win/nobj/VBoxNetFltNobj.cpp \350 win/nobj/VBoxNetFltNobj.def \351 win/nobj/VBoxNetFltNobj.rc352 #VBoxNetFltNobj_INTERMEDIATES =353 VBoxNetFltNobj_DEPS= \354 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \355 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_p.c \356 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.h \357 $(VBoxNetFltNobj_0_OUTDIR)/dlldata.c \358 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.tlb359 VBoxNetFltNobj_CLEAN= $(VBoxNetFltNobj_DEPS)360 361 $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \362 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_p.c \363 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.h \364 + $$(VBoxNetFltNobj_0_OUTDIR)/dlldata.c \365 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.tlb: \366 $(PATH_SUB_CURRENT)/win/nobj/VBoxNetFltNobjT.idl \367 | $$(dir $$@)275 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib 276 277 # 278 # NetFltInstall 279 # 280 PROGRAMS.win += NetFltInstall 281 NetFltInstall_TEMPLATE = VBoxNetFltR3 282 NetFltInstall_SOURCES = win/tools/VBoxNetFltInstall.cpp 283 284 # 285 # NetFltUninstall 286 # 287 PROGRAMS.win += NetFltUninstall 288 NetFltUninstall_TEMPLATE = VBoxNetFltR3 289 NetFltUninstall_SOURCES = win/tools/VBoxNetFltUninstall.cpp 290 291 # 292 # NetAdpInstall 293 # 294 PROGRAMS.win += NetAdpInstall 295 NetAdpInstall_TEMPLATE = VBoxNetFltR3 296 NetAdpInstall_SOURCES = win/tools/VBoxNetAdpInstall.cpp 297 298 # 299 # NetAdpUninstall 300 # 301 PROGRAMS.win += NetAdpUninstall 302 NetAdpUninstall_TEMPLATE = VBoxNetFltR3 303 NetAdpUninstall_SOURCES = win/tools/VBoxNetAdpUninstall.cpp 304 305 # 306 # NetAdp6Install 307 # 308 PROGRAMS.win += NetAdp6Install 309 NetAdp6Install_TEMPLATE = VBoxNetFltR3 310 NetAdp6Install_SOURCES = win/tools/VBoxNetAdpInstall.cpp 311 NetAdp6Install_DEFS = NDIS60=1 312 313 # 314 # NetAdp6Uninstall 315 # 316 PROGRAMS.win += NetAdp6Uninstall 317 NetAdp6Uninstall_TEMPLATE = VBoxNetFltR3 318 NetAdp6Uninstall_SOURCES = win/tools/VBoxNetAdpUninstall.cpp 319 NetAdp6Uninstall_DEFS = NDIS60=1 320 321 # 322 # NetLwfInstall 323 # 324 PROGRAMS.win += NetLwfInstall 325 NetLwfInstall_TEMPLATE = VBoxNetFltR3 326 NetLwfInstall_SOURCES = win/tools/VBoxNetLwfInstall.cpp 327 328 # 329 # NetLwfUninstall 330 # 331 PROGRAMS.win += NetLwfUninstall 332 NetLwfUninstall_TEMPLATE = VBoxNetFltR3 333 NetLwfUninstall_SOURCES = win/tools/VBoxNetLwfUninstall.cpp 334 335 # 336 # VBoxNetFltNobj 337 # 338 DLLS.win += VBoxNetFltNobj 339 VBoxNetFltNobj_TEMPLATE = VBoxR3StaticDll 340 if defined(VBOX_SIGNING_MODE) 341 VBoxNetFltNobj_INSTTYPE = none 342 VBoxNetFltNobj_DEBUG_INSTTYPE = both 343 endif 344 VBoxNetFltNobj_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) 345 VBoxNetFltNobj_DEFS = WIN32 _ATL_STATIC_REGISTRY 346 VBoxNetFltNobj_INCS = \ 347 $(VBoxNetFltNobj_0_OUTDIR) 348 VBoxNetFltNobj_SOURCES = \ 349 win/nobj/VBoxNetFltNobj.cpp \ 350 win/nobj/VBoxNetFltNobj.def \ 351 win/nobj/VBoxNetFltNobj.rc 352 #VBoxNetFltNobj_INTERMEDIATES = 353 VBoxNetFltNobj_DEPS = \ 354 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \ 355 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_p.c \ 356 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.h \ 357 $(VBoxNetFltNobj_0_OUTDIR)/dlldata.c \ 358 $(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.tlb 359 VBoxNetFltNobj_CLEAN = $(VBoxNetFltNobj_DEPS) 360 361 $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_i.c \ 362 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT_p.c \ 363 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.h \ 364 + $$(VBoxNetFltNobj_0_OUTDIR)/dlldata.c \ 365 + $$(VBoxNetFltNobj_0_OUTDIR)/VBoxNetFltNobjT.tlb: \ 366 $(PATH_SUB_CURRENT)/win/nobj/VBoxNetFltNobjT.idl \ 367 | $$(dir $$@) 368 368 $(VBOX_MIDL_REDIRECT) $(VBOX_WIN_MIDL) /nologo \ 369 369 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxNetFltNobj_0_OUTDIR)) \ … … 376 376 377 377 378 #379 # VBoxNetAdp.sys - The VirtualBox Adapter miniport driver.380 #381 SYSMODS.win += VBoxNetAdp382 VBoxNetAdp_TEMPLATE = VBoxR0Drv383 #VBoxNetAdp_INST = $(INST_VBOXNETADP)384 if defined(VBOX_SIGNING_MODE)385 VBoxNetAdp_INSTTYPE.win = none386 VBoxNetAdp_DEBUG_INSTTYPE.win = both387 endif388 VBoxNetAdp_DEFS = IN_RT_R0 IN_SUP_STATIC389 VBoxNetAdp_INCS := $(PATH_SUB_CURRENT)390 VBoxNetAdp_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS)391 VBoxNetAdp_SOURCES = \392 VBoxNetFlt.c \393 win/drv/VBoxNetFltM-win.cpp \394 win/drv/VBoxNetFltRt-win.cpp \395 win/drv/VBoxNetFlt-win.rc396 VBoxNetAdp_DEFS += VBOXNETFLT_STATIC_CONFIG VBOXNETADP397 VBoxNetAdp_DEFS.win += VBOXNETFLT_NO_PACKET_QUEUE398 VBoxNetAdp_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0399 VBoxNetAdp_DEFS += NDIS50_MINIPORT=1 NDIS50=1400 VBoxNetAdp_LDFLAGS.win.x86 = -Entry:DriverEntry@8401 VBoxNetAdp_LDFLAGS.win.amd64 = -Entry:DriverEntry402 VBoxNetAdp_LIBS.win = \403 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \404 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \405 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \406 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)407 VBoxNetAdp_LIBS = \408 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)409 410 411 INSTALLS.win += VBoxNetAdp-inf412 VBoxNetAdp-inf_TEMPLATE = VBoxR0DrvInfCat413 VBoxNetAdp-inf_SOURCES = \414 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf415 VBoxNetAdp-inf_CLEAN = $(VBoxNetAdp-inf_SOURCES)416 VBoxNetAdp-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdpCat.dir417 418 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetAdp.inf $(MAKEFILE_CURRENT) | $$(dir $$@)378 # 379 # VBoxNetAdp.sys - The VirtualBox Adapter miniport driver. 380 # 381 SYSMODS.win += VBoxNetAdp 382 VBoxNetAdp_TEMPLATE = VBoxR0Drv 383 #VBoxNetAdp_INST = $(INST_VBOXNETADP) 384 if defined(VBOX_SIGNING_MODE) 385 VBoxNetAdp_INSTTYPE.win = none 386 VBoxNetAdp_DEBUG_INSTTYPE.win = both 387 endif 388 VBoxNetAdp_DEFS = IN_RT_R0 IN_SUP_STATIC 389 VBoxNetAdp_INCS := $(PATH_SUB_CURRENT) 390 VBoxNetAdp_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS) 391 VBoxNetAdp_SOURCES = \ 392 VBoxNetFlt.c \ 393 win/drv/VBoxNetFltM-win.cpp \ 394 win/drv/VBoxNetFltRt-win.cpp \ 395 win/drv/VBoxNetFlt-win.rc 396 VBoxNetAdp_DEFS += VBOXNETFLT_STATIC_CONFIG VBOXNETADP 397 VBoxNetAdp_DEFS.win += VBOXNETFLT_NO_PACKET_QUEUE 398 VBoxNetAdp_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0 399 VBoxNetAdp_DEFS += NDIS50_MINIPORT=1 NDIS50=1 400 VBoxNetAdp_LDFLAGS.win.x86 = -Entry:DriverEntry@8 401 VBoxNetAdp_LDFLAGS.win.amd64 = -Entry:DriverEntry 402 VBoxNetAdp_LIBS.win = \ 403 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \ 404 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \ 405 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \ 406 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 407 VBoxNetAdp_LIBS = \ 408 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 409 410 411 INSTALLS.win += VBoxNetAdp-inf 412 VBoxNetAdp-inf_TEMPLATE = VBoxR0DrvInfCat 413 VBoxNetAdp-inf_SOURCES = \ 414 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf 415 VBoxNetAdp-inf_CLEAN = $(VBoxNetAdp-inf_SOURCES) 416 VBoxNetAdp-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdpCat.dir 417 418 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetAdp.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 419 419 $(call MSG_GENERATE,VBoxNetAdp-inf,$@,$<) 420 420 $(call VBOX_EDIT_INF_FN,$<,$@) 421 421 422 ifdef VBOX_SIGNING_MODE423 VBoxNetAdp-inf_SOURCES += \424 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \425 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat426 427 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys: $$(VBoxNetAdp_1_TARGET) | $$(dir $$@)422 ifdef VBOX_SIGNING_MODE 423 VBoxNetAdp-inf_SOURCES += \ 424 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \ 425 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat 426 427 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys: $$(VBoxNetAdp_1_TARGET) | $$(dir $$@) 428 428 $(INSTALL) -m 644 $< $(@D) 429 429 430 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat: \431 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \432 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf430 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.cat: \ 431 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \ 432 $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf 433 433 $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<) 434 434 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 435 435 436 endif # ifdef VBOX_SIGNING_MODE437 438 endif #ifeq ($(KBUILD_TARGET), win)436 endif # ifdef VBOX_SIGNING_MODE 437 438 endif #ifeq ($(KBUILD_TARGET), win) 439 439 440 440 else if1of ($(KBUILD_TARGET), solaris freebsd) ## @todo merge this with the mixed case stuff. 441 #442 # vboxnetflt(.ko/.o/) - The lower case driver.443 # Note! On Solaris the name has to be <= 8 chars long.444 # The DEBUG_HASH* stuff is for CONFIG_DYNAMIC_DEBUG-enabled kernels445 #441 # 442 # vboxnetflt(.ko/.o/) - The lower case driver. 443 # Note! On Solaris the name has to be <= 8 chars long. 444 # The DEBUG_HASH* stuff is for CONFIG_DYNAMIC_DEBUG-enabled kernels 445 # 446 446 ifdef VBOX_WITH_VBOXDRV 447 447 SYSMODS += vboxnetflt … … 489 489 VBoxNetFlt-src_INST = bin/src/vboxnetflt/ 490 490 VBoxNetFlt-src_SOURCES = \ 491 $(subst $(DQUOTE),,$(VBOX_VBOXNETFLT_SOURCES)) \492 $(VBoxNetFlt-src_0_OUTDIR)/Makefile491 $(subst $(DQUOTE),,$(VBOX_VBOXNETFLT_SOURCES)) \ 492 $(VBoxNetFlt-src_0_OUTDIR)/Makefile 493 493 VBoxNetFlt-src_CLEAN = \ 494 $(VBoxNetFlt-src_0_OUTDIR)/Makefile \495 $(PATH_TARGET)/VBoxNetFlt-src-1.dep \ 494 $(VBoxNetFlt-src_0_OUTDIR)/Makefile \ 495 $(PATH_TARGET)/VBoxNetFlt-src-1.dep 496 496 497 497 # Scripts needed for building the kernel module. … … 499 499 includedep $(PATH_TARGET)/VBoxNetFlt-src-1.dep 500 500 $$(VBoxNetFlt-src_0_OUTDIR)/Makefile: \ 501 $(PATH_SUB_CURRENT)/linux/Makefile \502 $$(if $$(eq $$(VBoxNetFlt/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \503 | $$(dir $$@)501 $(PATH_SUB_CURRENT)/linux/Makefile \ 502 $$(if $$(eq $$(VBoxNetFlt/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 503 | $$(dir $$@) 504 504 $(QUIET)$(RM) -f -- $@ 505 505 ifndef VBOX_WITH_HARDENING … … 521 521 ifeq ($(KBUILD_TARGET),freebsd) 522 522 vboxnetflt_DEPS.freebsd += $(PATH_OUT)/opt_netgraph.h 523 $(PATH_OUT)/opt_netgraph.h:523 $(PATH_OUT)/opt_netgraph.h: 524 524 echo > $(PATH_OUT)/opt_netgraph.h 525 525 … … 532 532 VBoxNetFlt-src_INST = bin/src/vboxnetflt/ 533 533 VBoxNetFlt-src_SOURCES = \ 534 $(subst $(DQUOTE),,$(VBOX_VBOXNETFLT_SOURCES)) \534 $(subst $(DQUOTE),,$(VBOX_VBOXNETFLT_SOURCES)) \ 535 535 $(VBoxNetFlt-src_0_OUTDIR)/Makefile 536 536 VBoxNetFlt-src_CLEAN = \ 537 $(VBoxNetFlt-src_0_OUTDIR)/Makefile \537 $(VBoxNetFlt-src_0_OUTDIR)/Makefile 538 538 539 539 $$(VBoxNetFlt-src_0_OUTDIR)/Makefile: \ 540 $(PATH_SUB_CURRENT)/freebsd/Makefile \541 $$(if $$(eq $$(VBoxNetFlt/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \542 | $$(dir $$@)540 $(PATH_SUB_CURRENT)/freebsd/Makefile \ 541 $$(if $$(eq $$(VBoxNetFlt/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 542 | $$(dir $$@) 543 543 $(QUIET)$(RM) -f -- $@ 544 544 $(QUIET)$(CP) -f $< $@ -
trunk/src/VBox/HostDrivers/VBoxPci/Makefile.kmk
r98125 r98414 49 49 VBoxPci_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC 50 50 VBoxPci_INCS = \ 51 .51 . 52 52 VBoxPci_SOURCES = \ 53 VBoxPci.c53 VBoxPci.c 54 54 VBoxPci_LIBS += \ 55 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)55 $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB) 56 56 endif 57 57 … … 63 63 VBoxPci-src_INST = bin/src/vboxpci/ 64 64 VBoxPci-src_SOURCES = \ 65 $(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)) \65 $(subst $(DQUOTE),,$(VBOX_VBOXPCI_SOURCES)) \ 66 66 $(VBoxPci-src_0_OUTDIR)/Makefile 67 67 VBoxPci-src_CLEAN = \ 68 68 $(VBoxPci-src_0_OUTDIR)/Makefile \ 69 $(PATH_TARGET)/VBoxPciSrc-src-1.dep \69 $(PATH_TARGET)/VBoxPciSrc-src-1.dep 70 70 71 71 # Generate the scripts needed for building the kernel module. 72 72 73 73 includedep $(PATH_TARGET)/VBoxPci-src-1.dep 74 $$(VBoxPci-src_0_OUTDIR)/Makefile: \75 $(PATH_SUB_CURRENT)/linux/Makefile \76 $$(if $$(eq $$(VBoxPci/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \77 | $$(dir $$@)74 $$(VBoxPci-src_0_OUTDIR)/Makefile: \ 75 $(PATH_SUB_CURRENT)/linux/Makefile \ 76 $$(if $$(eq $$(VBoxPci/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \ 77 | $$(dir $$@) 78 78 $(QUIET)$(RM) -f -- $@ 79 79 ifndef VBOX_WITH_HARDENING -
trunk/src/VBox/HostDrivers/VBoxUSB/win/Makefile.kmk
r98257 r98414 101 101 endif 102 102 VBoxUSBMon_SOURCES = \ 103 mon/VBoxUsbMon.cpp 104 mon/VBoxUsbFlt.cpp 103 mon/VBoxUsbMon.cpp \ 104 mon/VBoxUsbFlt.cpp \ 105 105 mon/VBoxUsbHook.cpp \ 106 106 cmn/VBoxUsbTool.cpp \ … … 115 115 $(usbd_1_TARGET) 116 116 if1of ($(KBUILD_TYPE), debug) 117 VBoxUSBMon_DEFS+= LOG_ENABLED VBOX_USB_WITH_VERBOSE_LOGGING117 VBoxUSBMon_DEFS += LOG_ENABLED VBOX_USB_WITH_VERBOSE_LOGGING 118 118 endif 119 119 … … 128 128 TEMPLATE_VBoxUsbR3_LIBS = $(TEMPLATE_VBoxR3Exe_LIBS) \ 129 129 $(PATH_STAGE_LIB)/VBoxDrvCfgExe$(VBOX_SUFF_LIB) \ 130 130 $(LIB_RUNTIME) 131 131 132 132 # … … 172 172 173 173 ifdef VBOX_SIGNING_MODE 174 install-infs_SOURCES += \175 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat \176 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat=>VBoxUSB-PreW10.cat \177 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys \178 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat \179 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat=>VBoxUSBMon-PreW10.cat \180 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys181 182 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys: $$(VBoxUSB_1_TARGET) | $$(dir $$@)174 install-infs_SOURCES += \ 175 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat \ 176 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat=>VBoxUSB-PreW10.cat \ 177 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys \ 178 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat \ 179 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat=>VBoxUSBMon-PreW10.cat \ 180 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys 181 182 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys: $$(VBoxUSB_1_TARGET) | $$(dir $$@) 183 183 $(INSTALL) -m 644 $< $(@D) 184 184 185 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat: \186 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.inf \187 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys185 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.cat: \ 186 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.inf \ 187 $(PATH_TARGET)/VBoxUSBCat.dir/VBoxUSB.sys 188 188 $(call MSG_TOOL,Inf2Cat,VBoxUSB-inf,$@,$<) 189 189 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 190 190 191 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys: $$(VBoxUSBMon_1_TARGET) | $$(dir $$@)191 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys: $$(VBoxUSBMon_1_TARGET) | $$(dir $$@) 192 192 $(INSTALL) -m 644 $< $(@D) 193 193 194 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat: \195 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.inf \196 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys194 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.cat: \ 195 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.inf \ 196 $(PATH_TARGET)/VBoxUSBMonCat.dir/VBoxUSBMon.sys 197 197 $(call MSG_TOOL,Inf2Cat,VBoxUSBMon-inf,$@,$<) 198 198 $(call VBOX_MAKE_CAT_FN, $(@D),$@)
Note:
See TracChangeset
for help on using the changeset viewer.