VirtualBox

Changeset 56263 in vbox


Ignore:
Timestamp:
Jun 5, 2015 3:22:11 PM (9 years ago)
Author:
vboxsync
Message:

NetAdp: Properly moved VBoxNetAdp6 driver to VBoxNetAdp/win (#7849)

Location:
trunk
Files:
1 deleted
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r56262 r56263  
    665665 endif
    666666 # Use VBoxNetAdp for host only networking.
    667  if1of ($(KBUILD_TARGET), darwin freebsd linux solaris) ## @todo this should be set and used on windows too.
     667 if1of ($(KBUILD_TARGET), darwin freebsd linux solaris win)
    668668  VBOX_WITH_NETADP = 1
    669669 endif
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r56262 r56263  
    3636  endif
    3737 endif
    38  if1of ($(KBUILD_TARGET), darwin solaris linux freebsd)
     38 if1of ($(KBUILD_TARGET), darwin solaris win linux freebsd)
    3939  ifdef VBOX_WITH_NETADP
    4040   include $(PATH_SUB_CURRENT)/VBoxNetAdp/Makefile.kmk
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk

    r56262 r56263  
    9292endif # darwin
    9393
     94ifeq ($(KBUILD_TARGET),win)
     95 #
     96 # VBoxNetAdp6.sys - The VirtualBox Adapter miniport driver.
     97 #
     98 SYSMODS.win += VBoxNetAdp6
     99 VBoxNetAdp6_TEMPLATE = VBOXR0DRV
     100 if defined(VBOX_SIGNING_MODE)
     101  VBoxNetAdp6_INSTTYPE.win = none
     102  VBoxNetAdp6_DEBUG_INSTTYPE.win = both
     103 endif
     104 VBoxNetAdp6_DEFS = IN_RT_R0 IN_SUP_STATIC
     105 VBoxNetAdp6_INCS := $(PATH_SUB_CURRENT)
     106 VBoxNetAdp6_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK)INCS
     107 VBoxNetAdp6_SOURCES = \
     108        win/VBoxNetAdp-win.cpp \
     109        win/VBoxNetAdp-win.rc
     110 VBoxNetAdp6_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0
     111 VBoxNetAdp6_DEFS += NDIS60_MINIPORT=1 NDIS60=1
     112 VBoxNetAdp6_LDFLAGS.win.x86 = -Entry:DriverEntry@8
     113 VBoxNetAdp6_LDFLAGS.win.amd64 = -Entry:DriverEntry
     114 VBoxNetAdp6_LIBS.win = \
     115        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \
     116        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \
     117        $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \
     118        $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
     119 VBoxNetAdp6_LIBS = \
     120        $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
     121
     122
     123 INSTALLS.win += VBoxNetAdp6-inf
     124 VBoxNetAdp6-inf_INST = $(INST_BIN)
     125 VBoxNetAdp6-inf_MODE = a+r,u+w
     126 VBoxNetAdp6-inf_SOURCES = \
     127        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
     128 VBoxNetAdp6-inf_CLEAN = $(VBoxNetAdp6-inf_SOURCES)
     129 VBoxNetAdp6-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdp6Cat.dir
     130
     131$(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
     132        $(call MSG_GENERATE,VBoxNetAdp6-inf,$@,$<)
     133        $(call VBOX_EDIT_INF_FN,$<,$@)
     134
     135 ifdef VBOX_SIGNING_MODE
     136VBoxNetAdp6-inf_SOURCES += \
     137        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
     138        $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat
     139
     140$(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@)
     141        $(INSTALL) -m 644 $< $(@D)
     142
     143$(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \
     144                $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
     145                $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
     146        $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<)
     147        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
     148
     149 endif #  ifdef VBOX_SIGNING_MODE
     150
     151endif #ifeq ($(KBUILD_TARGET), win)
     152
    94153ifeq ($(KBUILD_TARGET),linux)
    95154 #
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk

    r56262 r56263  
    157157 VBoxNetLwf_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK)INCS
    158158 VBoxNetLwf_SOURCES.win = \
    159         win/ndis6/VBoxNetLwf-win.cpp
    160 #       win/drv/VBoxNetLwfRt-win.cpp \
    161 #       win/drv/VBoxNetLwf-win.rc
     159        win/drv/VBoxNetLwf-win.cpp
    162160 # with WINDDKWLH the WIN9X_COMPAT_SPINLOCK is needed to avoid inline declaration of KeInitializeSpinLock
    163161 # otherwise the linker would complain about dumplicate _KeInitializeSpinLock@4 definition
     
    192190 VBoxNetLwf-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetLwfCat.dir
    193191
    194 $(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf: $(PATH_SUB_CURRENT)/win/ndis6/VBoxNetLwf.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
     192$(PATH_TARGET)/VBoxNetLwfCat.dir/VBoxNetLwf.inf: $(PATH_SUB_CURRENT)/win/drv/VBoxNetLwf.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    195193        $(call MSG_GENERATE,VBoxNetLwf-inf,$@,$<)
    196194        $(call VBOX_EDIT_INF_FN,$<,$@)
     
    445443                $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.sys \
    446444                $(PATH_TARGET)/VBoxNetAdpCat.dir/VBoxNetAdp.inf
    447         $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<)
    448         $(call VBOX_MAKE_CAT_FN, $(@D),$@)
    449 
    450  endif #  ifdef VBOX_SIGNING_MODE
    451 
    452  #
    453  # VBoxNetAdp6.sys - The VirtualBox Adapter miniport driver.
    454  #
    455  SYSMODS.win += VBoxNetAdp6
    456  VBoxNetAdp6_TEMPLATE = VBOXR0DRV
    457  #VBoxNetAdp6_INST = $(INST_VBOXNETADP)
    458  if defined(VBOX_SIGNING_MODE)
    459   VBoxNetAdp6_INSTTYPE.win = none
    460   VBoxNetAdp6_DEBUG_INSTTYPE.win = both
    461  endif
    462  VBoxNetAdp6_DEFS = IN_RT_R0 IN_SUP_STATIC
    463  VBoxNetAdp6_INCS := $(PATH_SUB_CURRENT)
    464  VBoxNetAdp6_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_WLH) $(VBOX_WINPSDK)INCS
    465  VBoxNetAdp6_SOURCES = \
    466         win/ndis6/VBoxNetAdp-win.cpp \
    467         win/ndis6/VBoxNetAdp-win.rc
    468  VBoxNetAdp6_DEFS += NDIS_MINIPORT_DRIVER NDIS_WDM=1 BINARY_COMPATIBLE=0
    469  VBoxNetAdp6_DEFS += NDIS60_MINIPORT=1 NDIS60=1
    470  VBoxNetAdp6_LDFLAGS.win.x86 = -Entry:DriverEntry@8
    471  VBoxNetAdp6_LDFLAGS.win.amd64 = -Entry:DriverEntry
    472  VBoxNetAdp6_LIBS.win = \
    473         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ntoskrnl.lib \
    474         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/hal.lib \
    475         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/ndis.lib \
    476         $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
    477  VBoxNetAdp6_LIBS = \
    478         $(PATH_STAGE_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
    479 
    480 
    481  INSTALLS.win += VBoxNetAdp6-inf
    482  VBoxNetAdp6-inf_INST = $(INST_BIN)
    483  VBoxNetAdp6-inf_MODE = a+r,u+w
    484  VBoxNetAdp6-inf_SOURCES = \
    485         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
    486  VBoxNetAdp6-inf_CLEAN = $(VBoxNetAdp6-inf_SOURCES)
    487  VBoxNetAdp6-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetAdp6Cat.dir
    488 
    489 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf: $(PATH_SUB_CURRENT)/win/ndis6/VBoxNetAdp6.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    490         $(call MSG_GENERATE,VBoxNetAdp6-inf,$@,$<)
    491         $(call VBOX_EDIT_INF_FN,$<,$@)
    492 
    493  ifdef VBOX_SIGNING_MODE
    494 VBoxNetAdp6-inf_SOURCES += \
    495         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
    496         $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat
    497 
    498 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys: $$(VBoxNetAdp6_1_TARGET) | $$(dir $$@)
    499         $(INSTALL) -m 644 $< $(@D)
    500 
    501 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.cat: \
    502                 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.sys \
    503                 $(PATH_TARGET)/VBoxNetAdp6Cat.dir/VBoxNetAdp6.inf
    504445        $(call MSG_TOOL,Inf2Cat,VBoxNetFlt-inf,$@,$<)
    505446        $(call VBOX_MAKE_CAT_FN, $(@D),$@)
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp

    r56262 r56263  
    8888
    8989#include "VBoxNetLwf-win.h"
    90 #include "VBoxNetCmn-win.h"
     90#include "VBox/VBoxNetCmn-win.h"
    9191
    9292/* Forward declarations */
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