VirtualBox

Changeset 39474 in vbox


Ignore:
Timestamp:
Nov 30, 2011 12:46:12 PM (13 years ago)
Author:
vboxsync
Message:

Added a loadall.sh on linux as well (see darwin). This builds the driver as the current user and sudos to root for the reloading. Also moved the linux/freebsd specific makefile mess down into the respective directories.

Location:
trunk/src/VBox/HostDrivers
Files:
3 added
2 deleted
1 edited

Legend:

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

    r39358 r39474  
    4242  endif
    4343 endif
    44  ifeq ($(KBUILD_TARGET),darwin)
    45   include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk
     44 if1of ($(KBUILD_TARGET), darwin freebsd linux)
     45  include $(PATH_SUB_CURRENT)/$(KBUILD_TARGET)/Makefile.kmk
    4646 endif
    4747
     
    5252 endif
    5353
    54  if1of ($(KBUILD_TARGET),linux freebsd)
    55   #
    56   # Install the Makefile for module compilation on Linux and FreeBSD hosts
    57   #
    58   INSTALLS += HostDrivers-src
    59   HostDrivers-src_INST            = bin/src/
    60   HostDrivers-src_MODE            = a+r,u+w
    61   HostDrivers-src_SOURCES.linux   = linux/Makefile
    62   HostDrivers-src_SOURCES.freebsd = freebsd/Makefile
    63  endif
    64 
    65  if1of ($(KBUILD_TARGET),linux)
    66   INSTALLS += HostDrivers-scripts
    67   HostDrivers-scripts_INST    = bin/src/
    68   HostDrivers-scripts_MODE    = a+rx,u+w
    69   HostDrivers-scripts_SOURCES = linux/do_dkms \
    70                                 linux/build_in_tmp
    71 
    72   INSTALLS += HostDrivers-dkms-src
    73   HostDrivers-dkms-src_INST    = bin/src/
    74   HostDrivers-dkms-src_MODE    = a+r,u+w
    75   HostDrivers-dkms-src_SOURCES = $(HostDrivers-dkms-src_0_OUTDIR)/dkms.conf
    76   HostDrivers-dkms-src_CLEAN   = $(HostDrivers-dkms-src_0_OUTDIR)/dkms.conf
    77 
    78 $$(HostDrivers-dkms-src_0_OUTDIR)/dkms.conf: \
    79                 $(PATH_SUB_CURRENT)/linux/dkms.conf \
    80                 $(VBOX_VERSION_STAMP) \
    81                 | $$(dir $$@)
    82         $(call MSG_TOOL,Creating,,$@)
    83         $(QUIET)$(SED) \
    84                 -e "s;_VERSION_;${VBOX_VERSION_STRING};g" \
    85                 -e "s;_OMIT_VBOXNETFLT_;$(if $(VBOX_WITH_NETFLT),,#);g" \
    86                 -e "s;_OMIT_VBOXNETADP_;$(if $(VBOX_WITH_NETADP),,#);g" \
    87                 -e "s;_OMIT_VBOXPCI_;$(if $(VBOX_WITH_PCI_PASSTHROUGH),,#);g" \
    88                 --output $@ $<
    89 
    90  endif
    91 
    92  if1of ($(KBUILD_TARGET),freebsd)
    93   #
    94   # Install the export_modules script for tar'ing the module sources on FreeBSD hosts
    95   #
    96   INSTALLS += HostDrivers-sh
    97   HostDrivers-sh_INST    = bin/
    98   HostDrivers-sh_MODE    = a+rx,u+w
    99   HostDrivers-sh_SOURCES.freebsd = freebsd/export_modules
    100  endif
    10154endif # !defined(VBOX_ONLY_DOCS) && !defined(VBOX_ONLY_TESTSUITE)
    10255
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