Changeset 104675 in vbox
- Timestamp:
- May 16, 2024 11:33:02 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r104643 r104675 559 559 VBOX_WITH_DBGF_FLOW_TRACING = 1 560 560 # Enables ARMv8 virtualization, see @bugref{10383} 561 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.arm64 )561 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), darwin.arm64 win.arm64) 562 562 VBOX_WITH_VIRT_ARMV8 = 1 563 563 endif … … 781 781 # On Linux we build this as a test case instead. 782 782 # On darwin we don't use a support driver. 783 if "$(KBUILD_TARGET)" != "linux" && "$(KBUILD_TARGET)" != "darwin" 783 if "$(KBUILD_TARGET)" != "linux" && "$(KBUILD_TARGET)" != "darwin" && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" != "win.arm64" 784 784 VBOX_WITH_VBOXDRV = 1 785 785 endif … … 1949 1949 VBOX_GCC_TOOL := MINGW32 1950 1950 TOOL_MINGW32_CFLAGS := $(UNDEFINED) # override -g 1951 else 1951 else ifeq ($(KBUILD_TARGET_ARCH),amd64) 1952 1952 VBOX_GCC_TOOL := MINGWW64 1953 else_ifeq ($(KBUILD_TARGET_ARCH),arm64) 1954 VBOX_GCC_TOOL := CLANGVCC143ARM64 1953 1955 endif 1954 1956 else ifeq ($(KBUILD_TARGET),os2) … … 1998 2000 ifndef VBOX_VCC_TOOL_STEM 1999 2001 ifdef VBOX_WITH_NEW_VCC 2000 VBOX_VCC_TOOL_STEM := VCC142 2002 ifeq ($(KBUILD_TARGET_ARCH),arm64) 2003 VBOX_VCC_TOOL_STEM := VCC143 2004 else 2005 VBOX_VCC_TOOL_STEM := VCC142 2006 endif 2001 2007 else 2002 2008 VBOX_VCC_TOOL_STEM := VCC100 2003 2009 endif 2004 else ifn1of ($(VBOX_VCC_TOOL_STEM), VCC100 VCC110 VCC120 VCC140 VCC141 VCC142 )2005 $(error VBox: VBOX_VCC_TOOL_STEM='$(VBOX_VCC_TOOL_STEM)' is not supported, only VCC100, VCC110, VCC120, VCC140, VCC141, VCC142 are)2010 else ifn1of ($(VBOX_VCC_TOOL_STEM), VCC100 VCC110 VCC120 VCC140 VCC141 VCC142 VCC143) 2011 $(error VBox: VBOX_VCC_TOOL_STEM='$(VBOX_VCC_TOOL_STEM)' is not supported, only VCC100, VCC110, VCC120, VCC140, VCC141, VCC142, VCC143 are) 2006 2012 endif 2007 2013 ifndef VBOX_VCC_TOOL … … 2018 2024 VBOX_NEWER_VCC_TOOL_STEM := VCC120 2019 2025 endif 2020 else ifn1of ($(VBOX_NEWER_VCC_TOOL_STEM), VCC120 VCC140 VCC141 VCC142 )2026 else ifn1of ($(VBOX_NEWER_VCC_TOOL_STEM), VCC120 VCC140 VCC141 VCC142 VCC143) 2021 2027 $(error VBox: VBOX_NEWER_VCC_TOOL_STEM='$(VBOX_NEWER_VCC_TOOL_STEM)' is not supported) 2022 2028 endif … … 3224 3230 # Note! Changes in GCC are not detected automatically (yet). 3225 3231 # 3226 if $(pos VBox,$(VBOX_GCC_TOOL)) > 0 3227 include $(KBUILD_TOOL_PATHS)/$(VBOX_GCC_TOOL).kmk 3228 else 3229 include $(KBUILD_PATH)/tools/$(VBOX_GCC_TOOL).kmk 3230 endif 3231 ifneq ($(VBOX_GCC_TOOL),$(VBOX_GCC32_TOOL)) 3232 if $(pos VBox,$(VBOX_GCC32_TOOL)) > 0 3233 include $(KBUILD_TOOL_PATHS)/$(VBOX_GCC32_TOOL).kmk 3232 ifneq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.arm64) 3233 if $(pos VBox,$(VBOX_GCC_TOOL)) > 0 3234 include $(KBUILD_TOOL_PATHS)/$(VBOX_GCC_TOOL).kmk 3234 3235 else 3235 include $(KBUILD_PATH)/tools/$(VBOX_GCC32_TOOL).kmk 3236 include $(KBUILD_PATH)/tools/$(VBOX_GCC_TOOL).kmk 3237 endif 3238 ifneq ($(VBOX_GCC_TOOL),$(VBOX_GCC32_TOOL)) 3239 if $(pos VBox,$(VBOX_GCC32_TOOL)) > 0 3240 include $(KBUILD_TOOL_PATHS)/$(VBOX_GCC32_TOOL).kmk 3241 else 3242 include $(KBUILD_PATH)/tools/$(VBOX_GCC32_TOOL).kmk 3243 endif 3236 3244 endif 3237 3245 endif … … 3436 3444 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_PATH_CC ?= $(which $(TOOL_$(VBOX_GCC_TOOL)_CC))' 3437 3445 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_PATH_CXX ?= $(which $(TOOL_$(VBOX_GCC_TOOL)_CXX))' 3446 ifneq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),win.arm64) 3438 3447 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)' 3448 endif 3439 3449 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-pointer-sign ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)' 3440 3450 $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-array_bounds ?= $(call VBOX_GCC_CHECK_CC,-Wno-array-bounds,)' … … 5257 5267 SDK_VBoxNtDll_LIBS.x86 ?= $(PATH_STAGE_LIB)/RuntimeR3NtDll-x86.lib 5258 5268 SDK_VBoxNtDll_LIBS.amd64 ?= $(PATH_STAGE_LIB)/RuntimeR3NtDll-amd64.lib 5269 SDK_VBoxNtDll_LIBS.arm64 ?= $(PATH_STAGE_LIB)/RuntimeR3NtDll-arm64.lib 5259 5270 5260 5271 # … … 5266 5277 SDK_VBoxWinNewDevLib_LIBS.x86 = $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/newdev.lib 5267 5278 SDK_VBoxWinNewDevLib_LIBS.amd64 = $(PATH_SDK_$(VBOX_WINPSDK)_LIB.amd64)/newdev.lib 5279 SDK_VBoxWinNewDevLib_LIBS.arm64 = $(PATH_SDK_$(VBOX_WINPSDK)_LIB.arm64)/newdev.lib 5268 5280 else 5269 5281 SDK_VBoxWinNewDevLib_LIBS.x86 = $(PATH_SDK_$(VBOX_WINDDK)_LIB.x86)/newdev.lib … … 6294 6306 TEMPLATE_VBoxR3Exe_TOOL.win.x86 = $(VBOX_VCC_TOOL_STEM)X86 6295 6307 TEMPLATE_VBoxR3Exe_TOOL.win.amd64 = $(VBOX_VCC_TOOL_STEM)AMD64 6308 TEMPLATE_VBoxR3Exe_TOOL.win.arm64 = $(VBOX_VCC_TOOL_STEM)ARM64 6296 6309 TEMPLATE_VBoxR3Exe_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000) 6297 6310 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" … … 6358 6371 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6359 6372 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/oldnames.lib 6373 TEMPLATE_VBoxR3Exe_LIBS.arm64 = \ 6374 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6375 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6376 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6377 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/oldnames.lib 6360 6378 ifeq ($(KBUILD_TYPE),asan) 6361 6379 TEMPLATE_VBoxR3Exe_LIBS.x86 += \ … … 6690 6708 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6691 6709 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/oldnames.lib 6710 TEMPLATE_VBoxR3StaticBase_LIBS.arm64 = \ 6711 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libvcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6712 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6713 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6714 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/oldnames.lib 6692 6715 endif 6693 6716 ifeq ($(KBUILD_TYPE),asan) … … 6712 6735 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6713 6736 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/oldnames.lib 6737 TEMPLATE_VBoxR3StaticBase_LIBS.arm64 = \ 6738 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6739 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6740 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/oldnames.lib 6714 6741 endif 6715 6742 endif … … 7245 7272 TEMPLATE_VBoxMainExe_TOOL.win.x86 = $(VBOX_VCC_TOOL_STEM)X86 7246 7273 TEMPLATE_VBoxMainExe_TOOL.win.amd64 = $(VBOX_VCC_TOOL_STEM)AMD64 7274 TEMPLATE_VBoxMainExe_TOOL.win.arm64 = $(VBOX_VCC_TOOL_STEM)ARM64 7247 7275 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 7248 7276 TEMPLATE_VBoxMainExe_SDKS = ReorderCompilerIncs WINSDK10-UCRT$(VBOX_VCC_CRT_TYPE_UPPER) $(VBOX_WINPSDK) $(VBOX_WINDDK) … … 7315 7343 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 7316 7344 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/oldnames.lib 7345 TEMPLATE_VBoxMainExe_LIBS.arm64 = \ 7346 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 7347 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 7348 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 7349 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/oldnames.lib 7317 7350 ifeq ($(KBUILD_TYPE),asan) 7318 7351 TEMPLATE_VBoxMainExe_LIBS.x86 += \ … … 8791 8824 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 8792 8825 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 8826 TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.arm64 = \ 8827 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.arm64)_LIB)/oldnames.lib \ 8828 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 8829 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.arm64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 8793 8830 endif # !VBOX_WITH_NOCRT_STATIC 8794 8831 # Hack end
Note:
See TracChangeset
for help on using the changeset viewer.