VirtualBox

Changeset 16960 in vbox


Ignore:
Timestamp:
Feb 19, 2009 10:13:33 PM (16 years ago)
Author:
vboxsync
Message:

#2957: VBoxNetAdp: generic and darwin parts. Not operational yet.

Location:
trunk
Files:
7 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r16959 r16960  
    7474 INST_VBOXDRV_TIGER   = $(INST_DIST)VBoxDrvTiger.kext/
    7575 INST_VBOXNETFLT      = $(INST_DIST)VBoxNetFlt.kext/
    76  INST_VBOXNETTAP      = $(INST_DIST)VBoxNetTap.kext/
     76 INST_VBOXNETADP      = $(INST_DIST)VBoxNetAdp.kext/
    7777 INST_VBOXUSB         = $(INST_DIST)VBoxUSB.kext/
    7878 INST_VBOXUSB_TIGER   = $(INST_DIST)VBoxUSBTiger.kext/
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r16867 r16960  
    353353                 "                            [-floppy disabled|empty|<uuid>|\n"
    354354                 "                                     <filename>|host:<drive>]\n"
    355 #ifdef RT_OS_LINUX
     355#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    356356                 "                            [-nic<1-N> none|null|nat|hostif|intnet|hostonly]\n"
    357 #else /* !RT_OS_LINUX */
     357#else /* !RT_OS_LINUX && !RT_OS_DARWIN */
    358358                 "                            [-nic<1-N> none|null|nat|hostif|intnet]\n"
    359 #endif /* !RT_OS_LINUX */
     359#endif /* !RT_OS_LINUX && !RT_OS_DARWIN  */
    360360                 "                            [-nictype<1-N> Am79C970A|Am79C973"
    361361#ifdef VBOX_WITH_E1000
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r16867 r16960  
    13891389                    CHECK_ERROR_RET(nic, AttachToInternalNetwork(), 1);
    13901390                }
    1391 #ifdef RT_OS_LINUX
     1391#if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN)
    13921392                else if (strcmp(nics[n], "hostonly") == 0)
    13931393                {
     
    13951395                    CHECK_ERROR_RET(nic, AttachToHostOnlyNetwork(), 1);
    13961396                }
    1397 #endif /* RT_OS_LINUX */
     1397#endif /* defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) */
    13981398                else
    13991399                {
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r16848 r16960  
    3838  endif
    3939 endif
    40 
    41  if1of ($(KBUILD_TARGET),solaris)
     40 if1of ($(KBUILD_TARGET), darwin solaris)
    4241  ifdef VBOX_WITH_NETADP
    4342   include $(PATH_SUB_CURRENT)/VBoxNetAdp/Makefile.kmk
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk

    r16848 r16960  
    2323include $(KBUILD_PATH)/subheader.kmk
    2424
    25 if1of ($(KBUILD_TARGET), solaris)
     25
     26if1of ($(KBUILD_TARGET), solaris darwin)
    2627#
    2728# vboxnetadp(.o) - The lower case driver.
     
    3132SYSMODS += vboxnetadp
    3233vboxnetadp_TEMPLATE         = VBOXR0DRV
     34vboxnetadp_INST = $(INST_VBOXNETADP)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/)
    3335vboxnetadp_NAME.solaris     = vboxnet
    34 vboxnetadp_DEFS             = IN_RT_R0
    35 vboxnetadp_DEFS.solaris    += VBOX_SVN_REV=$(VBOX_SVN_REV)
     36vboxnetadp_DEFS             = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC
    3637vboxnetadp_DEPS.solaris    += $(VBOX_SVN_REV_KMK)
    3738vboxnetadp_LDFLAGS.solaris += -N misc/gld
    38 vboxnetflt_INCS            := \
     39vboxnetadp_LDFLAGS.darwin   = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded
     40vboxnetadp_INCS            := \
    3941        $(PATH_SUB_CURRENT)
    4042vboxnetadp_LIBS            += \
     43        $(PATH_LIB)/SUPR0IdcClient$(VBOX_SUFF_LIB)
     44vboxnetadp_LIBS.solaris    += \
    4145        $(PATH_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)
    4246vboxnetadp_SOURCES.solaris = solaris/VBoxNetAdp-solaris.c
     47vboxnetadp_SOURCES.darwin  = darwin/VBoxNetAdp-darwin.cpp
     48vboxnetadp_SOURCES         = VBoxNetAdp.c
    4349 endif
    4450endif
     51
     52# Darwin extras.
     53ifeq ($(KBUILD_TARGET),darwin)
     54INSTALLS += VBoxNetAdp.kext
     55VBoxNetAdp.kext_INST     = $(INST_VBOXNETADP)Contents/
     56VBoxNetAdp.kext_SOURCES  = \
     57        $(PATH_VBoxNetAdp.kext)/Info.plist
     58VBoxNetAdp.kext_CLEAN    = \
     59        $(PATH_VBoxNetAdp.kext)/Info.plist
     60
     61$$(PATH_VBoxNetAdp.kext)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)
     62        $(call MSG_GENERATE,VBoxNetAdp,$@,$<)
     63        $(xQUIET)$(RM) -f $@
     64        $(xQUIET)$(SED) \
     65                -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \
     66                -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \
     67                -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
     68                -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
     69                --output $@ \
     70                $<
     71
     72INSTALLS.darwin += Scripts-darwin-adp
     73Scripts-darwin-adp_INST = $(INST_DIST)
     74Scripts-darwin-adp_SOURCES = \
     75        darwin/loadnetadp.sh
     76endif # darwin
    4577
    4678include $(KBUILD_PATH)/subfooter.kmk
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r16867 r16960  
    16391639                rc = CFGMR3InsertString(pCfg, "Trunk", "vboxnet0");             RC_CHECK();
    16401640                rc = CFGMR3InsertString(pCfg, "Network", "HostInterfaceNetworking-vboxnet0"); RC_CHECK();
    1641 #ifdef RT_OS_WINDOWS
     1641#if defined(RT_OS_WINDOWS) || defined(RT_OS_DARWIN)
    16421642                /* TODO: set the proper Trunk and Network values, currently the driver uses the first adapter instance */
    16431643                rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetAdp); RC_CHECK();
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