VirtualBox

Ignore:
Timestamp:
Oct 3, 2009 5:55:49 PM (15 years ago)
Author:
vboxsync
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.

File:
1 edited

Legend:

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

    r23082 r23526  
    153153endif # linux
    154154
     155ifeq ($(KBUILD_TARGET),freebsd)
     156 #
     157 # Install source files for compliation on FreeBSD.
     158 # files_vboxnetadp defines VBOX_VBOXNETADP_SOURCES.
     159 #
     160 include $(PATH_SUB_CURRENT)/freebsd/files_vboxnetadp
     161 INSTALLS += VBoxNetAdp-src
     162 VBoxNetAdp-src_INST    = bin/src/vboxnetadp/
     163 VBoxNetAdp-src_MODE    = a+r,u+w
     164 VBoxNetAdp-src_SOURCES = $(subst ",,$(VBOX_VBOXNETADP_SOURCES)) #"
     165 VBoxNetAdp-src_SOURCES+= \
     166        $(PATH_VBoxNetAdp-src)/Makefile
     167 VBoxNetAdp-src_CLEAN   = \
     168        $(PATH_VBoxNetAdp-src)/Makefile \
     169
     170$$(PATH_VBoxNetAdp-src)/Makefile: \
     171                $(PATH_SUB_CURRENT)/freebsd/Makefile \
     172                $$(if $$(eq $$(VBoxNetAdp/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
     173                | $$(dir $$@)
     174ifndef VBOX_WITH_HARDENING
     175        $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     176else
     177        $(QUIET)$(CP) -f $< $@
     178endif
     179
     180endif # freebsd
     181
    155182include $(KBUILD_PATH)/subfooter.kmk
    156183
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