Changeset 98125 in vbox for trunk/Config.kmk
- Timestamp:
- Jan 19, 2023 1:39:29 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r98103 r98125 5531 5531 # -wd4100: 'identifier' : unreferenced formal parameter [level 4] --- TODO: Enable this one! 5532 5532 # 5533 TEMPLATE_VB OXR0DRV= VBox SUPDRV Ring 05534 TEMPLATE_VB OXR0DRV_ASTOOL := $(VBOX_ASTOOL)5535 TEMPLATE_VB OXR0DRV_ASFLAGS = $(VBOX_ASFLAGS)5536 TEMPLATE_VB OXR0DRV_DEFS = IN_RING0 IN_RT_R0 $(ARCH_BITS_DEFS)5537 TEMPLATE_VB OXR0DRV_USES += dtrace5533 TEMPLATE_VBoxR0Drv = VBox SUPDRV Ring 0 5534 TEMPLATE_VBoxR0Drv_ASTOOL := $(VBOX_ASTOOL) 5535 TEMPLATE_VBoxR0Drv_ASFLAGS = $(VBOX_ASFLAGS) 5536 TEMPLATE_VBoxR0Drv_DEFS = IN_RING0 IN_RT_R0 $(ARCH_BITS_DEFS) 5537 TEMPLATE_VBoxR0Drv_USES += dtrace 5538 5538 ifdef VBOX_WITH_DTRACE_R0DRV 5539 TEMPLATE_VB OXR0DRV_DTRACETOOL = VBoxTpG5540 TEMPLATE_VB OXR0DRV_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV5539 TEMPLATE_VBoxR0Drv_DTRACETOOL = VBoxTpG 5540 TEMPLATE_VBoxR0Drv_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV 5541 5541 ifdef VBOX_WITH_NATIVE_DTRACE 5542 TEMPLATE_VB OXR0DRV_DEFS += VBOX_WITH_NATIVE_DTRACE5542 TEMPLATE_VBoxR0Drv_DEFS += VBOX_WITH_NATIVE_DTRACE 5543 5543 endif 5544 5544 else 5545 TEMPLATE_VB OXR0DRV_DTRACETOOL = VBoxTpG-Disabled5545 TEMPLATE_VBoxR0Drv_DTRACETOOL = VBoxTpG-Disabled 5546 5546 endif 5547 5547 5548 5548 ifeq ($(KBUILD_TARGET),win) 5549 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_VCC_TOOL)5549 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_VCC_TOOL) 5550 5550 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" # for stddef.h ## @todo 8489: check if still needed 5551 TEMPLATE_VB OXR0DRV_SDKS = WINSDK10-UCRT-INCS5552 endif 5553 TEMPLATE_VB OXR0DRV_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000)5554 TEMPLATE_VB OXR0DRV_DEFS += _KERNEL_MODE=1 # Needed with W10 to access things like KeQueryInterruptTime5555 TEMPLATE_VB OXR0DRV_DEFS.x86 = _X86_5556 TEMPLATE_VB OXR0DRV_DEFS.x86 += NO_INTERLOCKED_INTRINSICS # Avoids intrisic VC/WDK trouble5557 TEMPLATE_VB OXR0DRV_DEFS.x86 += WIN9X_COMPAT_SPINLOCK # Avoid multiply defined _KeInitializeSpinLock@45558 TEMPLATE_VB OXR0DRV_DEFS.amd64 = _AMD64_5559 TEMPLATE_VB OXR0DRV_DEFS.amd64 += WIN9X_COMPAT_SPINLOCK # For Windows 8+ WDKs where it is no longer inlined but imported from ntoskrnl.5560 TEMPLATE_VB OXR0DRV_DEFS.amd64 += NT_INLINE_IRQL NT_INLINE_GET_CURRENT_IRQL # Prevent W10 WDK from importing KeLowerIrql and KeGetCurrentIrql.5561 TEMPLATE_VB OXR0DRV_DEFS.win = IPRT_NT_MAP_TO_ZW5562 TEMPLATE_VB OXR0DRV_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -Gz -GS- -Zc:wchar_t- $(VBOX_VCC_FP) -Gs4096 $(VBOX_VCC_OPT) \5551 TEMPLATE_VBoxR0Drv_SDKS = WINSDK10-UCRT-INCS 5552 endif 5553 TEMPLATE_VBoxR0Drv_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000) 5554 TEMPLATE_VBoxR0Drv_DEFS += _KERNEL_MODE=1 # Needed with W10 to access things like KeQueryInterruptTime 5555 TEMPLATE_VBoxR0Drv_DEFS.x86 = _X86_ 5556 TEMPLATE_VBoxR0Drv_DEFS.x86 += NO_INTERLOCKED_INTRINSICS # Avoids intrisic VC/WDK trouble 5557 TEMPLATE_VBoxR0Drv_DEFS.x86 += WIN9X_COMPAT_SPINLOCK # Avoid multiply defined _KeInitializeSpinLock@4 5558 TEMPLATE_VBoxR0Drv_DEFS.amd64 = _AMD64_ 5559 TEMPLATE_VBoxR0Drv_DEFS.amd64 += WIN9X_COMPAT_SPINLOCK # For Windows 8+ WDKs where it is no longer inlined but imported from ntoskrnl. 5560 TEMPLATE_VBoxR0Drv_DEFS.amd64 += NT_INLINE_IRQL NT_INLINE_GET_CURRENT_IRQL # Prevent W10 WDK from importing KeLowerIrql and KeGetCurrentIrql. 5561 TEMPLATE_VBoxR0Drv_DEFS.win = IPRT_NT_MAP_TO_ZW 5562 TEMPLATE_VBoxR0Drv_CXXFLAGS = -Zi -Zl -GR- -EHs- -GF -Gz -GS- -Zc:wchar_t- $(VBOX_VCC_FP) -Gs4096 $(VBOX_VCC_OPT) \ 5563 5563 -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR) 5564 5564 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" 5565 TEMPLATE_VB OXR0DRV_CXXFLAGS += -Gw5565 TEMPLATE_VBoxR0Drv_CXXFLAGS += -Gw 5566 5566 endif 5567 5567 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # Don't waste space on x86/amd64-on-arm emulation optimizations. 5568 TEMPLATE_VB OXR0DRV_CXXFLAGS += /volatileMetadata-5568 TEMPLATE_VBoxR0Drv_CXXFLAGS += /volatileMetadata- 5569 5569 endif 5570 5570 ifdef VBOX_WITH_MSC_ANALYZE_THIS 5571 TEMPLATE_VB OXR0DRV_CXXFLAGS += /analyze5572 endif 5573 TEMPLATE_VB OXR0DRV_CFLAGS = $(TEMPLATE_VBOXR0DRV_CXXFLAGS)5574 TEMPLATE_VB OXR0DRV_LDFLAGS = -Ignore:4197 \5571 TEMPLATE_VBoxR0Drv_CXXFLAGS += /analyze 5572 endif 5573 TEMPLATE_VBoxR0Drv_CFLAGS = $(TEMPLATE_VBoxR0Drv_CXXFLAGS) 5574 TEMPLATE_VBoxR0Drv_LDFLAGS = -Ignore:4197 \ 5575 5575 -Driver -Subsystem:NATIVE -Incremental:NO -Align:4096 -MapInfo:Exports -NoD -Release -Debug -Opt:Ref -Opt:Icf \ 5576 5576 $(VBOX_VCC_LD_GUARD_CF) \ … … 5578 5578 -Stub:$(PATH_ROOT)/src/VBox/HostDrivers/Support/win/winstub.com 5579 5579 ifdef VBOX_WITH_DTRACE_R0DRV 5580 TEMPLATE_VB OXR0DRV_LDFLAGS += -Merge:VTGPrLc.Data=VTGPrLc.Begin -Merge:VTGPrLc.End=VTGPrLc.Begin -Merge:VTGPrLc.Begin=VTGObj5580 TEMPLATE_VBoxR0Drv_LDFLAGS += -Merge:VTGPrLc.Data=VTGPrLc.Begin -Merge:VTGPrLc.End=VTGPrLc.Begin -Merge:VTGPrLc.Begin=VTGObj 5581 5581 endif 5582 5582 ifdef VBOX_SIGNING_MODE 5583 TEMPLATE_VB OXR0DRV_LDFLAGS += -IntegrityCheck5583 TEMPLATE_VBoxR0Drv_LDFLAGS += -IntegrityCheck 5584 5584 endif 5585 5585 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # Don't waste space on x86/amd64-on-arm emulation optimizations. 5586 TEMPLATE_VB OXR0DRV_LDFLAGS += -EmitVolatileMetadata:NO5587 endif 5588 TEMPLATE_VB OXR0DRV_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA)5589 TEMPLATE_VB OXR0DRV_ORDERDEPS = $(VBOX_SIGN_DRIVER_ORDERDEPS)5590 TEMPLATE_VB OXR0DRV_POST_CMDS = $(VBOX_SIGN_DRIVER_CMDS)5586 TEMPLATE_VBoxR0Drv_LDFLAGS += -EmitVolatileMetadata:NO 5587 endif 5588 TEMPLATE_VBoxR0Drv_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA) 5589 TEMPLATE_VBoxR0Drv_ORDERDEPS = $(VBOX_SIGN_DRIVER_ORDERDEPS) 5590 TEMPLATE_VBoxR0Drv_POST_CMDS = $(VBOX_SIGN_DRIVER_CMDS) 5591 5591 endif 5592 5592 5593 5593 ifeq ($(KBUILD_TARGET),linux) 5594 TEMPLATE_VB OXR0DRV_TOOL = $(NO_SUCH_VARIABLE)5594 TEMPLATE_VBoxR0Drv_TOOL = $(NO_SUCH_VARIABLE) 5595 5595 5596 5596 ifndef KERN_DIR … … 5679 5679 ifeq ($(KBUILD_TARGET),os2) 5680 5680 ifndef VBOX_USE_WATCOM_FOR_OS2 5681 TEMPLATE_VB OXR0DRV_TOOL = GXX3OMF5682 TEMPLATE_VB OXR0DRV_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti5683 TEMPLATE_VB OXR0DRV_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions5684 TEMPLATE_VB OXR0DRV_LIBS = $(VBOX_GCC_LIBGCC)5681 TEMPLATE_VBoxR0Drv_TOOL = GXX3OMF 5682 TEMPLATE_VBoxR0Drv_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti 5683 TEMPLATE_VBoxR0Drv_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions 5684 TEMPLATE_VBoxR0Drv_LIBS = $(VBOX_GCC_LIBGCC) 5685 5685 # wlink thinks physdevice doesn't need fixups and should have a stack - stupid! 5686 TEMPLATE_VB OXR0DRV_LDFLAGS = -Zlinker Option -Zlinker internalrelocs, -Zlinker togglerelocs5686 TEMPLATE_VBoxR0Drv_LDFLAGS = -Zlinker Option -Zlinker internalrelocs, -Zlinker togglerelocs 5687 5687 else 5688 TEMPLATE_VB OXR0DRV_TOOL = OPENWATCOM5689 TEMPLATE_VB OXR0DRV_CTOOL = OPENWATCOM5690 TEMPLATE_VB OXR0DRV_CXXTOOL = OPENWATCOM5691 TEMPLATE_VB OXR0DRV_LDTOOL = OPENWATCOM-WL5692 TEMPLATE_VB OXR0DRV_ARTOOL = OPENWATCOM5693 TEMPLATE_VB OXR0DRV_ASTOOL = NASM5694 TEMPLATE_VB OXR0DRV_ASFLAGS = -fobj -DASM_FORMAT_OMF -D__NASM__ -w+orphan-labels #-g -F borland5695 TEMPLATE_VB OXR0DRV_DEFS.os2 = #_OS2EMX_H5696 TEMPLATE_VB OXR0DRV_INCS = \5688 TEMPLATE_VBoxR0Drv_TOOL = OPENWATCOM 5689 TEMPLATE_VBoxR0Drv_CTOOL = OPENWATCOM 5690 TEMPLATE_VBoxR0Drv_CXXTOOL = OPENWATCOM 5691 TEMPLATE_VBoxR0Drv_LDTOOL = OPENWATCOM-WL 5692 TEMPLATE_VBoxR0Drv_ARTOOL = OPENWATCOM 5693 TEMPLATE_VBoxR0Drv_ASTOOL = NASM 5694 TEMPLATE_VBoxR0Drv_ASFLAGS = -fobj -DASM_FORMAT_OMF -D__NASM__ -w+orphan-labels #-g -F borland 5695 TEMPLATE_VBoxR0Drv_DEFS.os2 = #_OS2EMX_H 5696 TEMPLATE_VBoxR0Drv_INCS = \ 5697 5697 $(PATH_TOOL_OPENWATCOM)/h \ 5698 5698 $(PATH_TOOL_OPENWATCOM)/h/os2 \ 5699 5699 $(PATH_ROOT)/include \ 5700 5700 $(PATH_KLIBC_TRUNK)/libc/include # for os2ddk 5701 TEMPLATE_VB OXR0DRV_CFLAGS = -s -ze -w4 -hd -d1+ -nt=TEXT32 -nc=CODE -4 -of+5702 TEMPLATE_VB OXR0DRV_CXXFLAGS = -s -ze -w4 -hd -d2t -nt=TEXT32 -nc=CODE -4 -of+5703 TEMPLATE_VB OXR0DRV_LDFLAGS = \5701 TEMPLATE_VBoxR0Drv_CFLAGS = -s -ze -w4 -hd -d1+ -nt=TEXT32 -nc=CODE -4 -of+ 5702 TEMPLATE_VBoxR0Drv_CXXFLAGS = -s -ze -w4 -hd -d2t -nt=TEXT32 -nc=CODE -4 -of+ 5703 TEMPLATE_VBoxR0Drv_LDFLAGS = \ 5704 5704 form os2 lx physdevice \ 5705 5705 option NODefaultlibs, internalrelocs, togglerelocs \ … … 5710 5710 5711 5711 ifeq ($(KBUILD_TARGET),darwin) 5712 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_GCC_TOOL)5713 TEMPLATE_VB OXR0DRV_SDKS += $(VBOX_DARWIN_DEF_SDK_SDKS)5714 TEMPLATE_VB OXR0DRV_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT5712 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_GCC_TOOL) 5713 TEMPLATE_VBoxR0Drv_SDKS += $(VBOX_DARWIN_DEF_SDK_SDKS) 5714 TEMPLATE_VBoxR0Drv_DEFS += $(VBOX_DARWIN_DEF_SDK_DEFS) KERNEL KERNEL_PRIVATE DRIVER_PRIVATE APPLE NeXT 5715 5715 if1of ($(VBOX_GCC_TOOL), GXX4MACHO GXX42MACHO) 5716 TEMPLATE_VB OXR0DRV_INCS += \5716 TEMPLATE_VBoxR0Drv_INCS += \ 5717 5717 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/PrivateHeaders \ 5718 5718 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/Headers 5719 5719 ## @todo try use VBOX_GCC_PEDANTIC_CXX 5720 TEMPLATE_VB OXR0DRV_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \5720 TEMPLATE_VBoxR0Drv_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) \ 5721 5721 -g $(VBOX_GCC_pipe) $(VBOX_GCC_WARN) -Wno-long-long $(VBOX_GCC_fdiagnostics-show-option) \ 5722 5722 -fno-common -nostdinc -fno-builtin -finline $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \ … … 5724 5724 -fapple-kext -fno-rtti -fcheck-new -force_cpusubtype_ALL \ 5725 5725 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks 5726 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-25727 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = -m32 -static5728 TEMPLATE_VB OXR0DRV_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \5726 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2 5727 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = -m32 -static 5728 TEMPLATE_VBoxR0Drv_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) \ 5729 5729 -g $(VBOX_GCC_pipe) $(VBOX_GCC_WARN) -Wno-long-long -fno-common -nostdinc -fno-builtin -finline \ 5730 5730 -fno-keep-inline-functions -fno-exceptions $(VBOX_GCC_fvisibility-hidden) -msoft-float \ … … 5732 5732 -Werror-implicit-function-declaration -force_cpusubtype_ALL \ 5733 5733 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fasm-blocks 5734 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-25735 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -static5736 TEMPLATE_VB OXR0DRV_LDFLAGS = $(filter-out $(VBOX_DARWIN_NO_COMPACT_LINKEDIT),$(VBOX_DARWIN_DEF_SDK_LDFLAGS)) \5734 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 -mkernel -mno-red-zone -gdwarf-2 5735 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -static 5736 TEMPLATE_VBoxR0Drv_LDFLAGS = $(filter-out $(VBOX_DARWIN_NO_COMPACT_LINKEDIT),$(VBOX_DARWIN_DEF_SDK_LDFLAGS)) \ 5737 5737 -nostdlib -Wl,-kext,-new_linker -Wl,-Y,1455 -keep_private_extern 5738 TEMPLATE_VB OXR0DRV_LDFLAGS.amd64 = -m645739 TEMPLATE_VB OXR0DRV_LDFLAGS.x86 = -m325740 TEMPLATE_VB OXR0DRV_LIBS = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC)5738 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = -m64 5739 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m32 5740 TEMPLATE_VBoxR0Drv_LIBS = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC) 5741 5741 else 5742 5742 # Note xcode uses -fstrict-aliasing, we currently don't dare... We also add -mno-red-zone. 5743 TEMPLATE_VB OXR0DRV_INCS += \5743 TEMPLATE_VBoxR0Drv_INCS += \ 5744 5744 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/PrivateHeaders \ 5745 5745 $(VBOX_PATH_MACOSX_SDK)/System/Library/Frameworks/Kernel.framework/Headers 5746 5746 ## @todo try use VBOX_GCC_PEDANTIC_CXX 5747 5747 # -Wno-c++11-extensions -Wno-c99-extensions -Wno-extra-semi -Wno-zero-length-array 5748 TEMPLATE_VB OXR0DRV_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -mkernel \5748 TEMPLATE_VBoxR0Drv_CXXFLAGS = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) -mkernel \ 5749 5749 -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) -Wno-long-long $(VBOX_GCC_fdiagnostics-show-option) \ 5750 5750 -Wno-c++11-extensions -Wno-c99-extensions -Wno-extra-semi -Wno-zero-length-array \ … … 5758 5758 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fasm-blocks -fno-strict-aliasing -stdlib=libc++ 5759 5759 # if1of ($(VBOX_GCC_TOOL), CLANGXXMACHO) ## @todo check if we can safely use $(VBOX_GCC_std) @bugref{9790}, good for noexcept. 5760 #TEMPLATE_VB OXR0DRV_CXXFLAGS += $(VBOX_GCC_std)5760 #TEMPLATE_VBoxR0Drv_CXXFLAGS += $(VBOX_GCC_std) 5761 5761 # endif 5762 5762 # also used by xcode 6.2: \ … … 5770 5770 # -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion \ 5771 5771 # -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion 5772 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = -m64 -msoft-float -mno-red-zone5773 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = -m32 -msoft-float5774 TEMPLATE_VB OXR0DRV_CXXFLAGS.arm64 = -m64 -fno-sanitize=vptr -target arm64e-apple-macos11.05775 TEMPLATE_VB OXR0DRV_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -mkernel \5772 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = -m64 -msoft-float -mno-red-zone 5773 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = -m32 -msoft-float 5774 TEMPLATE_VBoxR0Drv_CXXFLAGS.arm64 = -m64 -fno-sanitize=vptr -target arm64e-apple-macos11.0 5775 TEMPLATE_VBoxR0Drv_CFLAGS = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -mkernel \ 5776 5776 -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) -Wno-long-long $(VBOX_GCC_fdiagnostics-show-option) \ 5777 5777 -fno-common -nostdinc -fno-builtin $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \ … … 5780 5780 -Werror=non-modular-include-in-framework-module $(VBOX_GCC_Wno-c11-extensions) \ 5781 5781 $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fasm-blocks -fno-strict-aliasing 5782 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 -msoft-float -mno-red-zone5783 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -msoft-float5784 TEMPLATE_VB OXR0DRV_CFLAGS.arm64 = -m64 -fno-sanitize=vptr -target arm64e-apple-macos11.05782 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 -msoft-float -mno-red-zone 5783 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -msoft-float 5784 TEMPLATE_VBoxR0Drv_CFLAGS.arm64 = -m64 -fno-sanitize=vptr -target arm64e-apple-macos11.0 5785 5785 if 1 5786 TEMPLATE_VB OXR0DRV_CFLAGS += $(VBOX_GCC_WERR)5787 TEMPLATE_VB OXR0DRV_CXXFLAGS += $(VBOX_GCC_WERR)5788 endif 5789 TEMPLATE_VB OXR0DRV_LDFLAGS = $(filter-out $(VBOX_DARWIN_NO_COMPACT_LINKEDIT),$(VBOX_DARWIN_DEF_SDK_LDFLAGS)) \5786 TEMPLATE_VBoxR0Drv_CFLAGS += $(VBOX_GCC_WERR) 5787 TEMPLATE_VBoxR0Drv_CXXFLAGS += $(VBOX_GCC_WERR) 5788 endif 5789 TEMPLATE_VBoxR0Drv_LDFLAGS = $(filter-out $(VBOX_DARWIN_NO_COMPACT_LINKEDIT),$(VBOX_DARWIN_DEF_SDK_LDFLAGS)) \ 5790 5790 -nostdlib -stdlib=libc++ -Wl,-kext -Wl,-keep_private_externs 5791 TEMPLATE_VB OXR0DRV_LDFLAGS.amd64 = -m645792 TEMPLATE_VB OXR0DRV_LDFLAGS.arm64 = -m645793 TEMPLATE_VB OXR0DRV_LDFLAGS.x86 = -m325794 TEMPLATE_VB OXR0DRV_LIBS = kmodc++ kmod cc_kext5791 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = -m64 5792 TEMPLATE_VBoxR0Drv_LDFLAGS.arm64 = -m64 5793 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m32 5794 TEMPLATE_VBoxR0Drv_LIBS = kmodc++ kmod cc_kext 5795 5795 endif 5796 5796 endif … … 5800 5800 VBOX_SOLARIS_SYS_INCS ?= /usr/platform/i86pc/include /usr/include 5801 5801 5802 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_GCC_TOOL)5803 TEMPLATE_VB OXR0DRV_DEFS += _MACHDEP _KERNEL _STRICT_STDC5802 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_GCC_TOOL) 5803 TEMPLATE_VBoxR0Drv_DEFS += _MACHDEP _KERNEL _STRICT_STDC 5804 5804 if $(VBOX_GCC_VERSION_CC) < 30400 5805 TEMPLATE_VB OXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE5806 endif 5807 TEMPLATE_VB OXR0DRV_INCS = $(VBOX_SOLARIS_SYS_INCS)5808 TEMPLATE_VB OXR0DRV_LDFLAGS = -r -dy5809 TEMPLATE_VB OXR0DRV_LDFLAGS.amd64 = $(if $(eq $(KBUILD_HOST),solaris),-64,-m elf_x86_64)5805 TEMPLATE_VBoxR0Drv_DEFS += RT_WITHOUT_PRAGMA_ONCE 5806 endif 5807 TEMPLATE_VBoxR0Drv_INCS = $(VBOX_SOLARIS_SYS_INCS) 5808 TEMPLATE_VBoxR0Drv_LDFLAGS = -r -dy 5809 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = $(if $(eq $(KBUILD_HOST),solaris),-64,-m elf_x86_64) 5810 5810 # Exclude -Wall because of solaris headers' pragma ident warnings that gcc refuses to supress. 5811 TEMPLATE_VB OXR0DRV_CFLAGS = -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \5811 TEMPLATE_VBoxR0Drv_CFLAGS = -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 5812 5812 -Wmissing-prototypes -Wstrict-prototypes $(VBOX_GCC_fdiagnostics-show-option) \ 5813 5813 -Wshadow -Wuninitialized -Wunused-function -Wunused-label -Wunused-value -Wunused-variable \ 5814 5814 -Wformat -Wimplicit-int -Wimplicit-function-declaration -Werror-implicit-function-declaration -Wparentheses \ 5815 5815 -O2 -fno-omit-frame-pointer -ffreestanding -nodefaultlibs -fno-strict-aliasing -fno-common -std=c99 5816 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow5817 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_msave-args) \5816 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 5817 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow $(VBOX_GCC_msave-args) \ 5818 5818 -mno-red-zone -mcmodel=kernel $(if-expr defined(VBOX_GCC_USING_SOLARIS_AS),-Wa$(COMMA)-xmodel=kernel,) \ 5819 5819 -fno-reorder-blocks -fno-asynchronous-unwind-tables -funit-at-a-time 5820 TEMPLATE_VB OXR0DRV_CXXFLAGS = -Wpointer-arith \5820 TEMPLATE_VBoxR0Drv_CXXFLAGS = -Wpointer-arith \ 5821 5821 -Wshadow -Wuninitialized -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wformat \ 5822 5822 -O2 -nodefaultlibs -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -fno-exceptions -fno-rtti 5823 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)5824 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64)5825 TEMPLATE_VB OXR0DRV_POST_CMDS = $(VBOX_SIGN_DRIVER_CMDS)5823 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = $(TEMPLATE_VBoxR0Drv_CFLAGS.x86) 5824 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = $(TEMPLATE_VBoxR0Drv_CFLAGS.amd64) 5825 TEMPLATE_VBoxR0Drv_POST_CMDS = $(VBOX_SIGN_DRIVER_CMDS) 5826 5826 endif # Solaris 5827 5827 … … 5857 5857 VBOX_FREEBSD_SYS_INCS ?= /usr/include 5858 5858 5859 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_GCC_TOOL)5860 TEMPLATE_VB OXR0DRV_LDTOOL = FREEBSDKMODLD5861 TEMPLATE_VB OXR0DRV_DEFS += _KERNEL KLD_MODULE5859 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_GCC_TOOL) 5860 TEMPLATE_VBoxR0Drv_LDTOOL = FREEBSDKMODLD 5861 TEMPLATE_VBoxR0Drv_DEFS += _KERNEL KLD_MODULE 5862 5862 if $(VBOX_GCC_VERSION_CC) < 30400 5863 TEMPLATE_VB OXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE5864 endif 5865 TEMPLATE_VB OXR0DRV_INCS = \5863 TEMPLATE_VBoxR0Drv_DEFS += RT_WITHOUT_PRAGMA_ONCE 5864 endif 5865 TEMPLATE_VBoxR0Drv_INCS = \ 5866 5866 $(VBOX_FREEBSD_SRC) \ 5867 5867 $(VBOX_FREEBSD_SRC)/contrib/altq \ … … 5870 5870 $(VBOX_FREEBSD_SYS_INCS) 5871 5871 # omitting: -Wcast-qual, -Wredundant-decls 5872 TEMPLATE_VB OXR0DRV_CFLAGS = \5872 TEMPLATE_VBoxR0Drv_CFLAGS = \ 5873 5873 $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) $(VBOX_GCC_fdiagnostics-show-option) \ 5874 5874 -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes \ … … 5877 5877 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 5878 5878 -nostdinc -std=c99 5879 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -mno-align-long-strings -mno-mmx -mno-3dnow -mno-sse -mno-sse25880 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 \5879 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -mno-align-long-strings -mno-mmx -mno-3dnow -mno-sse -mno-sse2 5880 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 \ 5881 5881 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -Wundef 5882 TEMPLATE_VB OXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \5882 TEMPLATE_VBoxR0Drv_CXXFLAGS = -fno-exceptions -fno-rtti \ 5883 5883 $(VBOX_GCC_WARN) -Wpointer-arith -Winline \ 5884 5884 -O2 -fno-strict-aliasing -fno-common \ 5885 5885 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 5886 5886 -nostdinc 5887 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)5888 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64)5889 TEMPLATE_VB OXR0DRV_SYSSUFF = .ko5890 TEMPLATE_VB OXR0DRV_LDFLAGS = -d --warn-common5891 TEMPLATE_VB OXR0DRV_LDFLAGS.x86 = -m elf_i386_fbsd5892 TEMPLATE_VB OXR0DRV_LDFLAGS.amd64 = -m elf_x86_64_fbsd5887 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = $(TEMPLATE_VBoxR0Drv_CFLAGS.x86) 5888 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = $(TEMPLATE_VBoxR0Drv_CFLAGS.amd64) 5889 TEMPLATE_VBoxR0Drv_SYSSUFF = .ko 5890 TEMPLATE_VBoxR0Drv_LDFLAGS = -d --warn-common 5891 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m elf_i386_fbsd 5892 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = -m elf_x86_64_fbsd 5893 5893 5894 5894 TOOL_FREEBSDKMODLD = FreeBSD kernel module linker. … … 5943 5943 VBOX_NETBSD_TARGET_SRC=$(VBOX_NETBSD_SRC)/sys/arch/$(VBOX_NETBSD_TARGET_ARCH) 5944 5944 5945 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_GCC_TOOL)5946 TEMPLATE_VB OXR0DRV_DEFS += _KERNEL _MODULE5945 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_GCC_TOOL) 5946 TEMPLATE_VBoxR0Drv_DEFS += _KERNEL _MODULE 5947 5947 if $(VBOX_GCC_VERSION_CC) < 30400 5948 TEMPLATE_VB OXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE5949 endif 5950 TEMPLATE_VB OXR0DRV_INCS = \5948 TEMPLATE_VBoxR0Drv_DEFS += RT_WITHOUT_PRAGMA_ONCE 5949 endif 5950 TEMPLATE_VBoxR0Drv_INCS = \ 5951 5951 $(VBOX_NETBSD_SRC)/sys \ 5952 5952 $(VBOX_NETBSD_SRC)/common/include \ 5953 5953 $(PATH_OBJ)/netbsd/include 5954 5954 5955 TEMPLATE_VB OXR0DRV_CFLAGS = \5955 TEMPLATE_VBoxR0Drv_CFLAGS = \ 5956 5956 $(VBOX_GCC_WARN) -Wpointer-arith -Winline $(VBOX_GCC_Wno-pointer-sign) \ 5957 5957 $(VBOX_GCC_fdiagnostics-show-option) \ … … 5961 5961 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 5962 5962 -nostdinc -std=c99 -msoft-float 5963 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -mno-mmx -mno-sse -mno-avx \5963 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -mno-mmx -mno-sse -mno-avx \ 5964 5964 -mno-fp-ret-in-387 5965 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 --param inline-unit-growth=100 \5965 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 --param inline-unit-growth=100 \ 5966 5966 --param large-function-growth=1000 -fno-omit-frame-pointer \ 5967 5967 -mcmodel=kernel -mno-red-zone -mno-sse -mno-mmx -mno-avx \ 5968 5968 -fno-asynchronous-unwind-tables -mno-fp-ret-in-387 5969 TEMPLATE_VB OXR0DRV_CXXFLAGS = -fno-exceptions -fno-rtti \5969 TEMPLATE_VBoxR0Drv_CXXFLAGS = -fno-exceptions -fno-rtti \ 5970 5970 $(VBOX_GCC_WARN) -Wpointer-arith -Winline \ 5971 5971 -O2 -fno-strict-aliasing -fno-common -finline-limit=8000 \ 5972 5972 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) \ 5973 5973 -nostdinc -msoft-float 5974 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86)5975 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64)5976 TEMPLATE_VB OXR0DRV_SYSSUFF = .kmod5977 TEMPLATE_VB OXR0DRV_LDFLAGS = -d --warn-common5978 TEMPLATE_VB OXR0DRV_LDFLAGS.x86 = -m elf_i3865979 TEMPLATE_VB OXR0DRV_LDFLAGS.amd64 = -m elf_x86_645974 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = $(TEMPLATE_VBoxR0Drv_CFLAGS.x86) 5975 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = $(TEMPLATE_VBoxR0Drv_CFLAGS.amd64) 5976 TEMPLATE_VBoxR0Drv_SYSSUFF = .kmod 5977 TEMPLATE_VBoxR0Drv_LDFLAGS = -d --warn-common 5978 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m elf_i386 5979 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = -m elf_x86_64 5980 5980 5981 5981 # symlink kernel includes 5982 TEMPLATE_VB OXR0DRV_ORDERDEPS += \5982 TEMPLATE_VBoxR0Drv_ORDERDEPS += \ 5983 5983 $(PATH_OBJ)/netbsd/include/$(VBOX_NETBSD_TARGET_ARCH) \ 5984 5984 $(PATH_OBJ)/netbsd/include/x86 \ … … 6003 6003 VBOX_HAIKU_SYS_INCS ?= /boot/develop/headers/os/kernel /boot/develop/headers/os/drivers 6004 6004 6005 TEMPLATE_VB OXR0DRV_TOOL = $(VBOX_GCC_TOOL)6006 TEMPLATE_VB OXR0DRV_LDTOOL = $(VBOX_GCC_TOOL)6007 TEMPLATE_VB OXR0DRV_DEFS = _KERNEL_MODE=1 _STRICT_STDC IN_RING0 IN_RT_R06005 TEMPLATE_VBoxR0Drv_TOOL = $(VBOX_GCC_TOOL) 6006 TEMPLATE_VBoxR0Drv_LDTOOL = $(VBOX_GCC_TOOL) 6007 TEMPLATE_VBoxR0Drv_DEFS = _KERNEL_MODE=1 _STRICT_STDC IN_RING0 IN_RT_R0 6008 6008 if $(VBOX_GCC_VERSION_CC) < 30400 6009 TEMPLATE_VB OXR0DRV_DEFS += RT_WITHOUT_PRAGMA_ONCE6010 endif 6011 TEMPLATE_VB OXR0DRV_INCS = $(VBOX_HAIKU_SYS_INCS)6009 TEMPLATE_VBoxR0Drv_DEFS += RT_WITHOUT_PRAGMA_ONCE 6010 endif 6011 TEMPLATE_VBoxR0Drv_INCS = $(VBOX_HAIKU_SYS_INCS) 6012 6012 #TODO: sort this out 6013 TEMPLATE_VB OXR0DRV_LDFLAGS = -shared $(VBOX_GCC_NO_UNDEFINED_R0) -dc -dy -lroot -rpath-link /boot/system/develop/lib/x86 --no-add-needed /boot/system/develop/lib/_KERNEL_ --no-add-needed /boot/system/develop/lib/haiku_version_glue.o6014 TEMPLATE_VB OXR0DRV_CFLAGS = -fno-PIC \6013 TEMPLATE_VBoxR0Drv_LDFLAGS = -shared $(VBOX_GCC_NO_UNDEFINED_R0) -dc -dy -lroot -rpath-link /boot/system/develop/lib/x86 --no-add-needed /boot/system/develop/lib/_KERNEL_ --no-add-needed /boot/system/develop/lib/haiku_version_glue.o 6014 TEMPLATE_VBoxR0Drv_CFLAGS = -fno-PIC \ 6015 6015 $(VBOX_GCC_WARN) -Wstrict-prototypes $(VBOX_GCC_Wno-pointer-sign) -Wno-sign-compare \ 6016 6016 $(VBOX_GCC_fno-stack-protector) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration 6017 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -mno-sse -mno-mmx -mno-sse2 -mno-3dnow6018 TEMPLATE_VB OXR0DRV_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow6019 TEMPLATE_VB OXR0DRV_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \6017 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 6018 TEMPLATE_VBoxR0Drv_CFLAGS.x86 = -m32 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 6019 TEMPLATE_VBoxR0Drv_CFLAGS.amd64 = -m64 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow \ 6020 6020 -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time \ 6021 6021 -Wno-sign-compare 6022 TEMPLATE_VB OXR0DRV_CXXFLAGS = -fno-PIC -Wpointer-arith \6022 TEMPLATE_VBoxR0Drv_CXXFLAGS = -fno-PIC -Wpointer-arith \ 6023 6023 -Wshadow -Wuninitialized -Wunused-function -Wunused-label -Wunused-value -Wunused-variable \ 6024 6024 -Wformat \ 6025 6025 -O2 -nodefaultlibs -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -fno-exceptions -fno-rtti 6026 TEMPLATE_VB OXR0DRV_CXXFLAGS.x86 = $(TEMPLATE_VBOXR0DRV_CFLAGS.x86) -fno-exceptions -fno-rtti6027 TEMPLATE_VB OXR0DRV_CXXFLAGS.amd64 = $(TEMPLATE_VBOXR0DRV_CFLAGS.amd64) -fno-exceptions -fno-rtti6026 TEMPLATE_VBoxR0Drv_CXXFLAGS.x86 = $(TEMPLATE_VBoxR0Drv_CFLAGS.x86) -fno-exceptions -fno-rtti 6027 TEMPLATE_VBoxR0Drv_CXXFLAGS.amd64 = $(TEMPLATE_VBoxR0Drv_CFLAGS.amd64) -fno-exceptions -fno-rtti 6028 6028 endif # Haiku 6029 6029 6030 6030 ifdef VBOX_WITH_VBOXDRV 6031 ifndef TEMPLATE_VB OXR0DRV_TOOL6031 ifndef TEMPLATE_VBoxR0Drv_TOOL 6032 6032 $(warning Warning: VBox Build: Target $(KBUILD_HOST) is not officially supported!) 6033 6033 endif … … 6037 6037 # This doesn't work if supdrv is natively loading VMMR0.r0 et al, but 6038 6038 # fortunately it isn't really necessary. 6039 TEMPLATE_VB OXR0DRV_CFLAGS += -include $(PATH_ROOT)/include/VBox/SUPDrvMangling.h6040 TEMPLATE_VB OXR0DRV_CXXFLAGS += -include $(PATH_ROOT)/include/VBox/SUPDrvMangling.h6041 TEMPLATE_VB OXR0DRV_ASDEFS += RT_MANGLER_PREFIX=VBoxHost_6039 TEMPLATE_VBoxR0Drv_CFLAGS += -include $(PATH_ROOT)/include/VBox/SUPDrvMangling.h 6040 TEMPLATE_VBoxR0Drv_CXXFLAGS += -include $(PATH_ROOT)/include/VBox/SUPDrvMangling.h 6041 TEMPLATE_VBoxR0Drv_ASDEFS += RT_MANGLER_PREFIX=VBoxHost_ 6042 6042 endif 6043 6043 6044 6044 ifeq ($(KBUILD_TARGET),darwin) 6045 6045 # 6046 # A variant of VB OXR0DRVthat uses the 10.10 SDK.6046 # A variant of VBoxR0Drv that uses the 10.10 SDK. 6047 6047 # 6048 6048 TEMPLATE_VBoxR0DrvOSX10.10 = VBoxR0Drv variant using the 10.10 SDK 6049 TEMPLATE_VBoxR0DrvOSX10.10_EXTENDS = VB OXR0DRV6049 TEMPLATE_VBoxR0DrvOSX10.10_EXTENDS = VBoxR0Drv 6050 6050 TEMPLATE_VBoxR0DrvOSX10.10_SDKS = MACOSX1010 6051 TEMPLATE_VBoxR0DrvOSX10.10_INCS = $(filter-out $(VBOX_PATH_MACOSX_SDK)/%,$(TEMPLATE_VB OXR0DRV_INCS)) \6051 TEMPLATE_VBoxR0DrvOSX10.10_INCS = $(filter-out $(VBOX_PATH_MACOSX_SDK)/%,$(TEMPLATE_VBoxR0Drv_INCS)) \ 6052 6052 $(PATH_SDK_MACOSX1010)/System/Library/Frameworks/Kernel.framework/PrivateHeaders \ 6053 6053 $(PATH_SDK_MACOSX1010)/System/Library/Frameworks/Kernel.framework/Headers 6054 TEMPLATE_VBoxR0DrvOSX10.10_DEFS = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_VB OXR0DRV_DEFS))6054 TEMPLATE_VBoxR0DrvOSX10.10_DEFS = $(filter-out $(VBOX_DARWIN_DEF_SDK_DEFS),$(TEMPLATE_VBoxR0Drv_DEFS)) 6055 6055 6056 6056 endif … … 6060 6060 # 6061 6061 TEMPLATE_VBoxR0DrvLib = VBox Ring 0 Driver Library 6062 TEMPLATE_VBoxR0DrvLib_EXTENDS = VB OXR0DRV6062 TEMPLATE_VBoxR0DrvLib_EXTENDS = VBoxR0Drv 6063 6063 TEMPLATE_VBoxR0DrvLib_INSTTYPE = stage 6064 6064 TEMPLATE_VBoxR0DrvLib_INSTTYPE.linux = stage … … 7970 7970 endif 7971 7971 ifdef VBOX_WITH_MSC_ANALYZE_THIS 7972 TEMPLATE_VB OXR0DRV_CXXFLAGS += /analyze7972 TEMPLATE_VBoxR0Drv_CXXFLAGS += /analyze 7973 7973 endif 7974 7974 … … 8961 8961 # 8962 8962 TEMPLATE_VBOXGUESTR0 = VBox Guest Driver 8963 TEMPLATE_VBOXGUESTR0_EXTENDS = VB OXR0DRV8963 TEMPLATE_VBOXGUESTR0_EXTENDS = VBoxR0Drv 8964 8964 TEMPLATE_VBOXGUESTR0_INST = $(INST_ADDITIONS) 8965 8965 TEMPLATE_VBOXGUESTR0_SDKS.win.x86 = ReorderCompilerIncs $(VBOX_WINDDK_GST) $(VBOX_WINPSDK_GST_INCS) VBOX_WIN_INT64 8966 8966 TEMPLATE_VBOXGUESTR0_SDKS.win.amd64 = ReorderCompilerIncs $(VBOX_WINDDK_GST) $(VBOX_WINPSDK_GST_INCS) 8967 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VB OXR0DRV_DEFS) IN_GUEST IN_GUEST_R08967 TEMPLATE_VBOXGUESTR0_DEFS = $(TEMPLATE_VBoxR0Drv_DEFS) IN_GUEST IN_GUEST_R0 8968 8968 TEMPLATE_VBOXGUESTR0_DEFS.linux = RT_NO_EXPORT_SYMBOL 8969 8969 ifeq ($(KBUILD_TARGET),solaris) … … 8971 8971 endif 8972 8972 ifn1of ($(KBUILD_TARGET), darwin os2 win) 8973 TEMPLATE_VBOXGUESTR0_CFLAGS = $(patsubst %/VBox/SUPDrvMangling.h,%/VBox/VBoxGuestMangling.h,$(TEMPLATE_VB OXR0DRV_CFLAGS))8974 TEMPLATE_VBOXGUESTR0_CXXFLAGS = $(patsubst %/VBox/SUPDrvMangling.h,%/VBox/VBoxGuestMangling.h,$(TEMPLATE_VB OXR0DRV_CXXFLAGS))8975 TEMPLATE_VBOXGUESTR0_ASDEFS = $(patsubst RT_MANGLER_PREFIX=%,RT_MANGLER_PREFIX=VBoxGuest_,$(TEMPLATE_VB OXR0DRV_ASDEFS))8973 TEMPLATE_VBOXGUESTR0_CFLAGS = $(patsubst %/VBox/SUPDrvMangling.h,%/VBox/VBoxGuestMangling.h,$(TEMPLATE_VBoxR0Drv_CFLAGS)) 8974 TEMPLATE_VBOXGUESTR0_CXXFLAGS = $(patsubst %/VBox/SUPDrvMangling.h,%/VBox/VBoxGuestMangling.h,$(TEMPLATE_VBoxR0Drv_CXXFLAGS)) 8975 TEMPLATE_VBOXGUESTR0_ASDEFS = $(patsubst RT_MANGLER_PREFIX=%,RT_MANGLER_PREFIX=VBoxGuest_,$(TEMPLATE_VBoxR0Drv_ASDEFS)) 8976 8976 endif 8977 8977 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" # Do not use SSE so the binaries might works on NT4 and earlier. 8978 TEMPLATE_VBOXGUESTR0_CFLAGS.win.x86 = $(TEMPLATE_VB OXR0DRV_CFLAGS.win.x86) /arch:IA328979 TEMPLATE_VBOXGUESTR0_CXXFLAGS.win.x86 = $(TEMPLATE_VB OXR0DRV_CXXFLAGS.win.x86) /arch:IA328978 TEMPLATE_VBOXGUESTR0_CFLAGS.win.x86 = $(TEMPLATE_VBoxR0Drv_CFLAGS.win.x86) /arch:IA32 8979 TEMPLATE_VBOXGUESTR0_CXXFLAGS.win.x86 = $(TEMPLATE_VBoxR0Drv_CXXFLAGS.win.x86) /arch:IA32 8980 8980 endif 8981 8981
Note:
See TracChangeset
for help on using the changeset viewer.