VirtualBox

Changeset 91768 in vbox


Ignore:
Timestamp:
Oct 15, 2021 7:24:23 PM (3 years ago)
Author:
vboxsync
Message:

Config.kmk,++: Define VBOX_LIB_SUPR0 for SUPR0.lib/.a on platforms where it's needed and skip all the if'ing. bugref:10124

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r91729 r91768  
    19971997 VBOX_LIB_XPCOM_X86     = $(PATH_STAGE_BIN)/VBoxXPCOM-x86.dylib
    19981998 LIB_DDU         = $(PATH_STAGE_BIN)/VBoxDDU.dylib
     1999 VBOX_LIB_SUPR0 :=
    19992000endif
    20002001if1of ($(KBUILD_TARGET), freebsd haiku linux netbsd openbsd solaris)
     
    20102011 VBOX_LIB_XPCOM_X86   = $(PATH_STAGE_BIN)/VBoxXPCOM-x86.so
    20112012 LIB_DDU         = $(PATH_STAGE_BIN)/VBoxDDU.so
     2013 VBOX_LIB_SUPR0 :=
    20122014endif
    20132015ifeq ($(KBUILD_TARGET),os2)
     
    20242026 LIB_DDU         = $(PATH_STAGE_BIN)/VBoxDDU.dll
    20252027 VBOX_OBJ_SYS0   = $(PATH_OBJ)/RuntimeR0/os2/sys0.obj
     2028 VBOX_LIB_SUPR0  = $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    20262029endif
    20272030ifeq ($(KBUILD_TARGET),win)
     
    20372040 VBOX_LIB_XPCOM_X86 =
    20382041 LIB_DDU         = $(PATH_STAGE_LIB)/VBoxDDU.lib
     2042 VBOX_LIB_SUPR0  = $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    20392043endif
    20402044if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), win.amd64 linux.amd64)
     
    69696973 if1of ($(VBOX_LDR_FMT), pe lx)
    69706974  TEMPLATE_VBoxR0ExtPack_LIBS = \
    6971         $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
    6972         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    6973  endif
     6975        $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
     6976 endif
     6977 TEMPLATE_VBoxR0ExtPack_LIBS += \
     6978        $(VBOX_LIB_SUPR0)
    69746979
    69756980 TEMPLATE_VBoxRcExtPack = For the raw-mode context extension pack modules.
  • trunk/src/VBox/Devices/Makefile.kmk

    r91416 r91768  
    13911391 if1of ($(VBOX_LDR_FMT), pe lx)
    13921392 VBoxDDR0_LIBS           = \
    1393         $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
    1394         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    1395  endif
     1393        $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
     1394 endif
     1395 VBoxDDR0_LIBS          += \
     1396        $(VBOX_LIB_SUPR0)
    13961397
    13971398 $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
  • trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk

    r85507 r91768  
    268268        $(VBOXDT_PATH_UTS)/common/dtrace/dtrace.c
    269269 VBoxDTraceR0_LIBS = \
    270         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    271  ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
    272   VBoxDTraceR0_LIBS += \
    273         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    274  endif
     270        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     271        $(VBOX_LIB_SUPR0)
    275272 $(call VBOX_SET_VER_INFO_R0,VBoxDTraceR0,VBoxDTrace Core (ring-0))
    276273
  • trunk/src/VBox/Runtime/testcase/Makefile.kmk

    r86360 r91768  
    475475tstLdrObjR0_LIBS = \
    476476        $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
    477         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    478 ifeq ($(VBOX_LDR_FMT),pe)
     477        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     478        $(VBOX_LIB_SUPR0)
     479if1of ($(VBOX_LDR_FMT),pe lx)
    479480 tstLdrObjR0_LIBS += \
    480         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
    481         $(TARGET_tstLdr-4Imp)
    482 endif
    483 ifeq ($(VBOX_LDR_FMT),lx)
    484  tstLdrObjR0_LIBS += \
    485         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) \
    486481        $(TARGET_tstLdr-4Imp)
    487482endif
     
    773768tstRTR0DbgKrnlInfo_SYSSUFF = .r0
    774769tstRTR0DbgKrnlInfo_SOURCES = tstRTR0DbgKrnlInfo.cpp
    775 tstRTR0DbgKrnlInfo_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    776 if1of ($(VBOX_LDR_FMT), pe lx)
    777  tstRTR0DbgKrnlInfo_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    778 endif
     770tstRTR0DbgKrnlInfo_LIBS = \
     771        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     772        $(VBOX_LIB_SUPR0)
    779773if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    780774 tstRTR0DbgKrnlInfoDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     
    799793tstRTR0MemUserKernel_SYSSUFF = .r0
    800794tstRTR0MemUserKernel_SOURCES = tstRTR0MemUserKernel.cpp
    801 tstRTR0MemUserKernel_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    802 if1of ($(VBOX_LDR_FMT), pe lx)
    803  tstRTR0MemUserKernel_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    804 endif
     795tstRTR0MemUserKernel_LIBS = \
     796        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     797        $(VBOX_LIB_SUPR0)
    805798if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    806799 tstRTR0MemUserKernelDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     
    824817tstRTR0SemMutex_SYSSUFF = .r0
    825818tstRTR0SemMutex_SOURCES = tstRTR0SemMutex.cpp
    826 tstRTR0SemMutex_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    827 if1of ($(VBOX_LDR_FMT), pe lx)
    828  tstRTR0SemMutex_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    829 endif
     819tstRTR0SemMutex_LIBS = \
     820        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     821        $(VBOX_LIB_SUPR0)
    830822if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    831823 tstRTR0SemMutexDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     
    849841tstRTR0Thread_SYSSUFF = .r0
    850842tstRTR0Thread_SOURCES = tstRTR0Thread.cpp
    851 tstRTR0Thread_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    852 if1of ($(VBOX_LDR_FMT), pe lx)
    853  tstRTR0Thread_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    854 endif
     843tstRTR0Thread_LIBS = \
     844        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     845        $(VBOX_LIB_SUPR0)
    855846if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    856847 tstRTR0ThreadDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     
    874865tstRTR0Timer_SYSSUFF = .r0
    875866tstRTR0Timer_SOURCES = tstRTR0Timer.cpp
    876 tstRTR0Timer_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    877 if1of ($(VBOX_LDR_FMT), pe lx)
    878  tstRTR0Timer_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    879 endif
     867tstRTR0Timer_LIBS = \
     868        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     869        $(VBOX_LIB_SUPR0)
    880870if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    881871 tstRTR0TimerDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
     
    899889tstRTR0ThreadPreemption_SYSSUFF = .r0
    900890tstRTR0ThreadPreemption_SOURCES = tstRTR0ThreadPreemption.cpp
    901 tstRTR0ThreadPreemption_LIBS = $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    902 if1of ($(VBOX_LDR_FMT), pe lx)
    903  tstRTR0ThreadPreemption_LIBS += $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    904 endif
     891tstRTR0ThreadPreemption_LIBS = \
     892        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     893        $(VBOX_LIB_SUPR0)
    905894if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
    906895 tstRTR0ThreadPreemptionDriverHardened_TEMPLATE = VBoxR3HardenedTstExe
  • trunk/src/VBox/VMM/Makefile.kmk

    r91751 r91768  
    574574        $(PATH_STAGE_LIB)/ServicesR0$(VBOX_SUFF_LIB) \
    575575        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
    576         $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB)
    577  ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),)
    578 VMMR0_LIBS += \
    579         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    580  endif
     576        $(PATH_STAGE_LIB)/DisasmR0$(VBOX_SUFF_LIB) \
     577        $(VBOX_LIB_SUPR0)
    581578 ifdef VBOX_WITH_NATIVE_NEM
    582579VMMR0_SOURCES.win.amd64 += \
  • trunk/src/VBox/ValidationKit/Config.kmk

    r89060 r91768  
    136136TEMPLATE_VBoxValidationKitR0_DEFS = IN_RT_R0
    137137TEMPLATE_VBoxValidationKitR0_LIBS = \
    138         $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB)
    139 if1of ($(KBUILD_TARGET),os2 win)
    140  TEMPLATE_VBoxValidationKitR0_LIBS += \
    141         $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
    142 endif
     138        $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \
     139        $(VBOX_LIB_SUPR0)
    143140
    144141#
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette