VirtualBox

Changeset 104667 in vbox


Ignore:
Timestamp:
May 16, 2024 10:11:41 AM (7 months ago)
Author:
vboxsync
Message:

HostDrivers: Only build windows drivers if VBOX_WITH_VBOXDRV is set, bugref:10392 [scm fixes]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk

    r104659 r104667  
    109109 #
    110110 ifdef VBOX_WITH_VBOXDRV
    111  SYSMODS.win += VBoxNetAdp6
    112  VBoxNetAdp6_TEMPLATE = VBoxR0Drv
    113  if defined(VBOX_SIGNING_MODE)
    114   VBoxNetAdp6_INSTTYPE.win = none
    115   VBoxNetAdp6_DEBUG_INSTTYPE.win = both
    116  endif
    117  VBoxNetAdp6_DEFS = IN_RT_R0 IN_SUP_STATIC
    118  VBoxNetAdp6_INCS := $(PATH_SUB_CURRENT)
    119  VBoxNetAdp6_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS)
    120  VBoxNetAdp6_SOURCES = \
    121         win/VBoxNetAdp-win.cpp \
    122         win/VBoxNetAdp-win.rc
    123  VBoxNetAdp6_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0
    124  VBoxNetAdp6_DEFS += NDIS60_MINIPORT=1 NDIS60=1
    125  VBoxNetAdp6_LDFLAGS.win.x86 = -Entry:DriverEntry@8
    126  VBoxNetAdp6_LDFLAGS.win.amd64 = -Entry:DriverEntry
    127  VBoxNetAdp6_LIBS.win = \
    128         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \
    129         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \
    130         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \
    131         $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
    132  VBoxNetAdp6_LIBS = \
    133         $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
    134 
    135 
    136  INSTALLS.win += VBoxNetAdp6-inf
    137  VBoxNetAdp6-inf_TEMPLATE = VBoxR0DrvInfCat
    138  VBoxNetAdp6-inf_SOURCES = \
    139         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
    140  VBoxNetAdp6-inf_CLEAN = $(VBoxNetAdp6-inf_SOURCES)
    141  VBoxNetAdp6-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdp6Cat.dir
    142 
    143  $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
     111  SYSMODS.win += VBoxNetAdp6
     112  VBoxNetAdp6_TEMPLATE = VBoxR0Drv
     113  if defined(VBOX_SIGNING_MODE)
     114   VBoxNetAdp6_INSTTYPE.win = none
     115   VBoxNetAdp6_DEBUG_INSTTYPE.win = both
     116  endif
     117  VBoxNetAdp6_DEFS = IN_RT_R0 IN_SUP_STATIC
     118  VBoxNetAdp6_INCS := $(PATH_SUB_CURRENT)
     119  VBoxNetAdp6_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK_INCS)
     120  VBoxNetAdp6_SOURCES = \
     121        win/VBoxNetAdp-win.cpp \
     122        win/VBoxNetAdp-win.rc
     123  VBoxNetAdp6_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0
     124  VBoxNetAdp6_DEFS += NDIS60_MINIPORT=1 NDIS60=1
     125  VBoxNetAdp6_LDFLAGS.win.x86 = -Entry:DriverEntry@8
     126  VBoxNetAdp6_LDFLAGS.win.amd64 = -Entry:DriverEntry
     127  VBoxNetAdp6_LIBS.win = \
     128        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \
     129        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \
     130        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \
     131        $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
     132  VBoxNetAdp6_LIBS = \
     133        $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
     134
     135
     136  INSTALLS.win += VBoxNetAdp6-inf
     137  VBoxNetAdp6-inf_TEMPLATE = VBoxR0DrvInfCat
     138  VBoxNetAdp6-inf_SOURCES = \
     139        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
     140  VBoxNetAdp6-inf_CLEAN = $(VBoxNetAdp6-inf_SOURCES)
     141  VBoxNetAdp6-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdp6Cat.dir
     142
     143  $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    144144        $(call MSG_GENERATE,VBoxNetAdp6-inf,$@,$<)
    145145        $(call VBOX_EDIT_INF_FN,$<,$@)
    146146
    147  ifdef VBOX_SIGNING_MODE
    148   VBoxNetAdp6-inf_SOURCES += \
    149         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
    150         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat \
    151         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat=>VBoxNetAdp6-PreW10.cat
    152 
    153   $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@)
     147  ifdef VBOX_SIGNING_MODE
     148   VBoxNetAdp6-inf_SOURCES += \
     149        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
     150        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat \
     151        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat=>VBoxNetAdp6-PreW10.cat
     152
     153   $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@)
    154154        $(INSTALL) -m 644 $< $(@D)
    155155
    156   $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \
    157                 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
    158                 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
     156   $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \
     157                $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
     158                $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
    159159        $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<)
    160160        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
     
    229229include $(FILE_KBUILD_SUB_FOOTER)
    230230
     231a
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