VirtualBox

Ignore:
Timestamp:
Oct 3, 2009 5:55:49 PM (15 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/Support
Files:
2 added
2 edited

Legend:

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

    r22077 r23526  
    5252 endif
    5353 INSTALLS.linux   += vboxdrv-mod vboxdrv-sh
     54 INSTALLS.freebsd += vboxdrv-mod vboxdrv-sh
    5455
    5556 #
     
    6162 # Populate FILES_VBOXDRV_NOBIN and FILES_VBOXDRV_BIN
    6263 #
    63  include $(PATH_SUB_CURRENT)/linux/files_vboxdrv
     64 ifeq ($(KBUILD_TARGET),linux)
     65  include $(PATH_SUB_CURRENT)/linux/files_vboxdrv
     66 endif
     67 ifeq ($(KBUILD_TARGET),freebsd)
     68  include $(PATH_SUB_CURRENT)/freebsd/files_vboxdrv
     69 endif
    6470endif # !VBOX_ONLY_DOCS
    6571
     
    409415        SUPDrv.c
    410416## @todo the SUPDrv-freebsd.def is most probably gonna break it and require build system hacking...
     417
     418#
     419# Targets for installing the freebsd sources.
     420#
     421vboxdrv-mod_INST    = bin/src/vboxdrv/
     422vboxdrv-mod_MODE    = a+r,u+w
     423vboxdrv-mod_SOURCES = $(subst ",,$(FILES_VBOXDRV_NOBIN)) #"
     424vboxdrv-mod_SOURCES += \
     425        $(PATH_vboxdrv-mod)/Makefile
     426vboxdrv-mod_CLEAN   = \
     427        $(PATH_vboxdrv-mod)/Makefile
    411428endif # freebsd
    412429
     430$$(PATH_vboxdrv-mod)/Makefile: \
     431                $(PATH_SUB_CURRENT)/freebsd/Makefile \
     432                $$(if $$(eq $$(Support/freebsd/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
     433                | $$(dir $$@)
     434        $(call MSG_TOOL,Creating,,$@)
     435 ifndef VBOX_WITH_HARDENING
     436        $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     437 else
     438        $(QUIET)$(CP) -f $< $@
     439 endif
    413440
    414441#
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r22615 r23526  
    123123#   define strchr  libkern_strchr
    124124#   define strrchr libkern_strrchr
    125 #   define ffs     libkern_ffs
    126125#   define ffsl    libkern_ffsl
    127126#   define fls     libkern_fls
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