VirtualBox

Ignore:
Timestamp:
Oct 3, 2009 5:55:49 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53169
Message:

HostDrivers/FreeBSD: Use the same method to build the kernel drivers as Linux.

To build the kernel drivers go into out/freebsd.{amd64,x86}/{release,debug}/bin/src
after the build and execute make. make load will load the kernel drivers.
The old way is only used for syntax checking and the resulting modules may not even load anymore.

Location:
trunk/src/VBox/HostDrivers/VBoxNetFlt
Files:
2 added
2 edited

Legend:

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

    r23452 r23526  
    401401$(PATH_OUT)/opt_netgraph.h:
    402402        echo > $(PATH_OUT)/opt_netgraph.h
     403
     404 #
     405 # Install source files for compliation on FreeBSD.
     406 # files_vboxnetflt defines VBOX_VBOXNETFLT_SOURCES.
     407 #
     408 include $(PATH_SUB_CURRENT)/freebsd/files_vboxnetflt
     409 INSTALLS += VBoxNetFlt-src
     410 VBoxNetFlt-src_INST    = bin/src/vboxnetflt/
     411 VBoxNetFlt-src_MODE    = a+r,u+w
     412 VBoxNetFlt-src_SOURCES = $(subst ",,$(VBOX_VBOXNETFLT_SOURCES)) #"
     413 VBoxNetFlt-src_SOURCES+= \
     414        $(PATH_VBoxNetFlt-src)/Makefile
     415 VBoxNetFlt-src_CLEAN   = \
     416        $(PATH_VBoxNetFlt-src)/Makefile \
     417
     418 $$(PATH_VBoxNetFlt-src)/Makefile: \
     419                $(PATH_SUB_CURRENT)/freebsd/Makefile \
     420                $$(if $$(eq $$(VBoxNetFlt/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
     421                | $$(dir $$@)
     422 ifndef VBOX_WITH_HARDENING
     423        $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     424 else
     425        $(QUIET)$(CP) -f $< $@
     426 endif
    403427endif # freebsd
    404428
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c

    r22902 r23526  
    146146            if (RT_FAILURE(rc))
    147147            {
    148                 Log(("RTR0Init failed %d\n", rc));
     148                printf("RTR0Init failed %d\n", rc);
    149149                return RTErrConvertToErrno(rc);
    150150            }
     
    154154            if (RT_FAILURE(rc))
    155155            {
    156                 Log(("vboxNetFltInitGlobalsAndIdc failed %d\n", rc));
     156                printf("vboxNetFltInitGlobalsAndIdc failed %d\n", rc);
    157157                return RTErrConvertToErrno(rc);
    158158            }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette