VirtualBox

Ignore:
Timestamp:
Jul 29, 2020 11:24:55 AM (5 years ago)
Author:
vboxsync
Message:

SUPDrv: Apply the linux compile job reduction trick from VBoxGuest where 66+22 .c files are combined into two files, an os independent and a linux specific one respectively. This should reduce load in general, but only systems with a low core count will save install/rebuild time (combined-agnostic.c is probably too big). bugref:9798

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r84947 r85519  
    4040        SUPDrvTracer.o \
    4141        SUPLibAll.o \
     42        common/string/strformatrt.o
     43
     44ifdef VBOX_WITHOUT_COMBINED_SOURCES
     45VBOXMOD_OBJS += \
     46        combined-agnostic.o \
     47        combined-os-specific.o
     48else  # VBOX_WITHOUT_COMBINED_SOURCES
     49VBOXMOD_OBJS += \
    4250        r0drv/alloc-r0drv.o \
    4351        r0drv/initterm-r0drv.o \
     
    99107        common/string/strformat.o \
    100108        common/string/strformatnum.o \
    101         common/string/strformatrt.o \
    102109        common/string/strformattype.o \
    103110        common/string/strprintf.o \
     
    121128        generic/uuid-generic.o \
    122129        VBox/log-vbox.o
     130 ifeq ($(VBOX_KBUILD_TARGET_ARCH),amd64)
     131VBOXMOD_OBJS += common/alloc/heapsimple.o
     132 endif
     133endif # VBOX_WITHOUT_COMBINED_SOURCES
    123134ifeq ($(VBOX_KBUILD_TARGET_ARCH),x86)
    124135VBOXMOD_OBJS += \
     
    131142        math/gcc/umoddi3.o
    132143endif
    133 ifeq ($(VBOX_KBUILD_TARGET_ARCH),amd64)
    134 VBOXMOD_OBJS += common/alloc/heapsimple.o
    135 endif
    136144ifdef VBOX_WITH_NATIVE_DTRACE
    137145VBOXMOD_OBJS += SUPDrvDTrace.o
    138146endif
     147
    139148VBOXMOD_INCL  = \
    140149        $(VBOXDRV_DIR) \
     
    146155        /usr/include
    147156endif
     157
    148158VBOXMOD_DEFS = \
    149159        RT_OS_LINUX \
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