VirtualBox

Changeset 106920 in vbox for trunk/src/VBox/VMM/Makefile.kmk


Ignore:
Timestamp:
Nov 11, 2024 1:09:38 AM (2 months ago)
Author:
vboxsync
Message:

/Config.kmk,Devices/Makefile.kmk,VMM/*: Introducing VBOX_WITH_MINIMAL_R0 for win.arm64 and similar build configurations not really needing much from VMMR0.r0/VBoxSup.sys. jiraref:VBP-1449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r106894 r106920  
    808808 $(VMMR0Imp_0_OUTDIR)/VMMR0.def: $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def | $$(dir $$@)
    809809        $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
    810  ifeq ($(VBOX_LDR_FMT),lx)
    811         $(SED) \
    812                 -e '/not-os2/d' \
    813                 -e '/not-amd64/d' \
    814                 -e 's/^[ \t][ \t]*\([a-zA-Z]\)/    _\1/' \
    815                 -e 's/[ \t]DATA[ \t]*/ /'  \
    816                 --output $@ $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def
    817         $(APPEND) "$@" ""
    818         $(APPEND) "$@" "    ___ehInit"
    819  else
    820810        $(SED) \
    821811                -e '/not-win/d' \
    822812                -e '/not-$(KBUILD_TARGET_ARCH)/d' \
    823813                --output $@ $(VMMR0Imp_DEFPATH)/VMMR0/VMMR0.def
    824  endif
    825814endif # R0: pe + lx
    826815
     
    875864 VMMR0_ASFLAGS.x86   := -Werror
    876865
    877  VMMR0_SDKS      = VBoxSoftFloatR0
     866 VMMR0_SDKS.amd64 = VBoxSoftFloatR0
    878867
    879868 VMMR0_INCS      = \
     
    883872 VMMR0_SOURCES   = \
    884873        VBoxVMM.d \
    885         VMMR0/CPUMR0.cpp \
    886         VMMR0/CPUMR0A.asm \
    887         VMMR0/DBGFR0.cpp \
    888         VMMR0/DBGFR0Bp.cpp \
    889         $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMR0/DBGFR0Tracer.cpp,) \
    890         VMMR0/GIMR0.cpp \
    891         VMMR0/GIMR0Hv.cpp \
    892         VMMR0/GMMR0.cpp \
    893874        VMMR0/GVMMR0.cpp \
    894         VMMR0/EMR0.cpp \
    895         VMMR0/HMR0.cpp \
    896         VMMR0/HMR0A.asm \
    897         VMMR0/HMR0UtilA.asm \
    898         VMMR0/HMVMXR0.cpp \
    899         VMMR0/HMSVMR0.cpp \
    900         VMMR0/IEMR0.cpp \
    901         VMMR0/IOMR0.cpp \
    902         VMMR0/IOMR0IoPort.cpp \
    903         VMMR0/IOMR0Mmio.cpp \
    904         VMMR0/PDMR0Device.cpp \
    905         VMMR0/PDMR0DevHlp.cpp \
    906         $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMR0/PDMR0DevHlpTracing.cpp,) \
    907         VMMR0/PDMR0Driver.cpp \
    908         VMMR0/PDMR0Queue.cpp \
    909         VMMR0/PGMR0.cpp \
    910         VMMR0/PGMR0Pool.cpp \
    911         VMMR0/PGMR0SharedPage.cpp \
    912         VMMR0/TMR0.cpp \
    913875        VMMR0/VMMR0.cpp \
    914         VMMRZ/CPUMRZ.cpp \
    915         VMMRZ/CPUMRZA.asm \
    916         VMMRZ/VMMRZ.cpp \
    917         VMMAll/APICAll.cpp \
    918         VMMAll/CPUMAllCpuId.cpp \
    919         VMMAll/CPUMAllRegs.cpp \
    920         VMMAll/CPUMAllMsrs.cpp \
    921         VMMAll/DBGFAll.cpp \
    922         VMMAll/DBGFAllBp.cpp \
    923         $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMAll/DBGFAllTracer.cpp,) \
    924         VMMAll/EMAll.cpp \
    925         VMMAll/GCMAll.cpp \
    926         VMMAll/GIMAll.cpp \
    927         VMMAll/GIMAllHv.cpp \
    928         VMMAll/GIMAllKvm.cpp \
    929         VMMAll/HMAll.cpp \
    930         VMMAll/HMSVMAll.cpp \
    931         VMMAll/HMVMXAll.cpp \
    932         VMMAll/IEMAll.cpp \
    933         VMMAll/IEMAllIntprTables1.cpp \
    934         VMMAll/IEMAllIntprTables2.cpp \
    935         VMMAll/IEMAllIntprTables3.cpp \
    936         VMMAll/IEMAllIntprTables4.cpp \
    937         $(if-expr !defined(IEM_WITHOUT_ASSEMBLY),VMMAll/IEMAllAImpl.asm,) \
    938         VMMAll/IEMAllAImplC.cpp \
    939         VMMAll/IEMAllCImpl.cpp \
    940         VMMAll/IEMAllCImplSvmInstr.cpp \
    941         VMMAll/IEMAllCImplVmxInstr.cpp \
    942         VMMAll/IEMAllDbg.cpp \
    943         VMMAll/IOMAll.cpp \
    944         VMMAll/IOMAllMmioNew.cpp \
    945         VMMAll/MMAll.cpp \
    946         VMMAll/NEMAll.cpp \
    947         VMMAll/PDMAll.cpp \
    948         VMMAll/PDMAllCritSect.cpp \
    949         VMMAll/PDMAllCritSectRw.cpp \
    950         VMMAll/PDMAllCritSectBoth.cpp \
    951         $(if-expr defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL), VMMAll/PDMAllIommu.cpp,) \
    952         VMMAll/PDMAllQueue.cpp \
    953         VMMAll/PDMAllTask.cpp \
    954         VMMAll/PGMAll.cpp \
    955         VMMAll/PGMAllHandler.cpp \
    956         VMMAll/PGMAllPhys.cpp \
    957         VMMAll/PGMAllPool.cpp \
    958         VMMAll/SELMAll.cpp \
    959         VMMAll/TMAll.cpp \
    960         VMMAll/TMAllCpu.cpp \
    961         VMMAll/TMAllReal.cpp \
    962         VMMAll/TMAllVirtual.cpp \
    963         VMMAll/TRPMAll.cpp \
    964         VMMAll/VMAll.cpp \
    965876        VMMAll/VMMAll.cpp \
    966         VMMAll/VMMAllA.asm
    967  if1of ($(VBOX_LDR_FMT), pe lx)
    968   VMMR0_SOURCES += $(VMMR0Imp_0_OUTDIR)/VMMR0.def
    969  endif
    970  ifdef VBOX_WITH_TRIPLE_FAULT_HACK
    971   VMMR0_SOURCES += \
    972         VMMR0/VMMR0TripleFaultHack.cpp \
    973         VMMR0/VMMR0TripleFaultHackA.asm
    974  endif
    975  ifdef VBOX_WITH_NETSHAPER
    976   VMMR0_SOURCES += \
    977         VMMAll/PDMAllNetShaper.cpp
    978  endif
     877        VMMRZ/VMMRZ.cpp
     878
    979879 VMMR0_SOURCES.amd64 = \
    980880        VMMR0/VMMR0JmpA-amd64.asm
    981881 VMMR0_SOURCES.x86 = \
    982882        VMMR0/VMMR0JmpA-x86.asm
     883
     884 VMMR0_SOURCES.win = \
     885        $(VMMR0Imp_0_OUTDIR)/VMMR0.def
     886
     887 ifndef VBOX_WITH_MINIMAL_R0
     888  VMMR0_SOURCES += \
     889        VMMR0/CPUMR0.cpp \
     890        VMMR0/DBGFR0.cpp \
     891        VMMR0/DBGFR0Bp.cpp \
     892        $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMR0/DBGFR0Tracer.cpp,) \
     893        VMMR0/GIMR0.cpp \
     894        VMMR0/GIMR0Hv.cpp \
     895        VMMR0/GMMR0.cpp \
     896        VMMR0/EMR0.cpp \
     897        VMMR0/HMR0.cpp \
     898        VMMR0/HMVMXR0.cpp \
     899        VMMR0/HMSVMR0.cpp \
     900        VMMR0/IEMR0.cpp \
     901        VMMR0/IOMR0.cpp \
     902        VMMR0/IOMR0IoPort.cpp \
     903        VMMR0/IOMR0Mmio.cpp \
     904        VMMR0/PDMR0Device.cpp \
     905        VMMR0/PDMR0DevHlp.cpp \
     906        $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMR0/PDMR0DevHlpTracing.cpp,) \
     907        VMMR0/PDMR0Driver.cpp \
     908        VMMR0/PDMR0Queue.cpp \
     909        VMMR0/PGMR0.cpp \
     910        VMMR0/PGMR0Pool.cpp \
     911        VMMR0/PGMR0SharedPage.cpp \
     912        VMMR0/TMR0.cpp \
     913        VMMRZ/CPUMRZ.cpp \
     914        VMMAll/APICAll.cpp \
     915        VMMAll/CPUMAllCpuId.cpp \
     916        VMMAll/CPUMAllRegs.cpp \
     917        VMMAll/CPUMAllMsrs.cpp \
     918        VMMAll/DBGFAll.cpp \
     919        VMMAll/DBGFAllBp.cpp \
     920        $(if-expr defined(VBOX_WITH_DBGF_TRACING), VMMAll/DBGFAllTracer.cpp,) \
     921        VMMAll/EMAll.cpp \
     922        VMMAll/GCMAll.cpp \
     923        VMMAll/GIMAll.cpp \
     924        VMMAll/GIMAllHv.cpp \
     925        VMMAll/GIMAllKvm.cpp \
     926        VMMAll/HMAll.cpp \
     927        VMMAll/HMSVMAll.cpp \
     928        VMMAll/HMVMXAll.cpp \
     929        VMMAll/IEMAll.cpp \
     930        VMMAll/IEMAllIntprTables1.cpp \
     931        VMMAll/IEMAllIntprTables2.cpp \
     932        VMMAll/IEMAllIntprTables3.cpp \
     933        VMMAll/IEMAllIntprTables4.cpp \
     934        VMMAll/IEMAllAImplC.cpp \
     935        VMMAll/IEMAllCImpl.cpp \
     936        VMMAll/IEMAllCImplSvmInstr.cpp \
     937        VMMAll/IEMAllCImplVmxInstr.cpp \
     938        VMMAll/IEMAllDbg.cpp \
     939        VMMAll/IOMAll.cpp \
     940        VMMAll/IOMAllMmioNew.cpp \
     941        VMMAll/MMAll.cpp \
     942        VMMAll/NEMAll.cpp \
     943        VMMAll/PDMAll.cpp \
     944        VMMAll/PDMAllCritSect.cpp \
     945        VMMAll/PDMAllCritSectRw.cpp \
     946        VMMAll/PDMAllCritSectBoth.cpp \
     947        $(if-expr defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL), VMMAll/PDMAllIommu.cpp,) \
     948        VMMAll/PDMAllQueue.cpp \
     949        VMMAll/PDMAllTask.cpp \
     950        VMMAll/PGMAll.cpp \
     951        VMMAll/PGMAllHandler.cpp \
     952        VMMAll/PGMAllPhys.cpp \
     953        VMMAll/PGMAllPool.cpp \
     954        VMMAll/SELMAll.cpp \
     955        VMMAll/TMAll.cpp \
     956        VMMAll/TMAllCpu.cpp \
     957        VMMAll/TMAllReal.cpp \
     958        VMMAll/TMAllVirtual.cpp \
     959        VMMAll/TRPMAll.cpp \
     960        VMMAll/VMAll.cpp
     961
     962  VMMR0_SOURCES.amd64 += \
     963        VMMR0/CPUMR0A.asm \
     964        VMMRZ/CPUMRZA.asm \
     965        VMMR0/HMR0A.asm \
     966        VMMR0/HMR0UtilA.asm \
     967        $(if-expr !defined(IEM_WITHOUT_ASSEMBLY),VMMAll/IEMAllAImpl.asm,) \
     968        VMMAll/VMMAllA.asm
     969
     970  ifdef VBOX_WITH_TRIPLE_FAULT_HACK
     971   VMMR0_SOURCES.amd64 += \
     972        VMMR0/VMMR0TripleFaultHack.cpp \
     973        VMMR0/VMMR0TripleFaultHackA.asm
     974  endif
     975  ifdef VBOX_WITH_NETSHAPER
     976   VMMR0_SOURCES += \
     977        VMMAll/PDMAllNetShaper.cpp
     978  endif
     979 endif # !VBOX_WITH_MINIMAL_R0
    983980
    984981 VMMR0_LIBS = \
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