Changeset 35920 in vbox for trunk/src/VBox
- Timestamp:
- Feb 9, 2011 5:14:11 PM (14 years ago)
- Location:
- trunk/src/VBox/HostDrivers
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Makefile.kmk
r35380 r35920 40 40 ifeq ($(KBUILD_TARGET),darwin) 41 41 include $(PATH_SUB_CURRENT)/darwin/Makefile.kmk 42 endif 43 44 if1of ($(KBUILD_TARGET), linux) 45 ifdef VBOX_WITH_PCI_PASSTHROUGH 46 include $(PATH_SUB_CURRENT)/VBoxPci/Makefile.kmk 47 endif 42 48 endif 43 49 -
trunk/src/VBox/HostDrivers/linux/Makefile
r32478 r35920 27 27 obj-m += vboxnetadp/ 28 28 endif 29 29 ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxpci/Makefile),) 30 obj-m += vboxpci/ 31 endif 30 32 else # ! KBUILD_EXTMOD 31 33 … … 57 59 echo; \ 58 60 fi 61 @if [ -d vboxpci ]; then \ 62 if [ -f vboxdrv/Module.symvers ]; then \ 63 cp vboxdrv/Module.symvers vboxpci; \ 64 fi; \ 65 echo "*** Building 'vboxpci' module ***"; \ 66 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxpci; \ 67 cp vboxpci/vboxpci.ko .; \ 68 echo; \ 69 fi 59 70 60 71 … … 67 78 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxnetadp install; \ 68 79 fi 80 @if [ -d vboxpci ]; then \ 81 $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C vboxpci install; \ 82 fi 69 83 70 84 clean: … … 76 90 $(MAKE) -C vboxnetadp clean; \ 77 91 fi 78 rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko 92 @if [ -d vboxpci ]; then \ 93 $(MAKE) -C vboxpci clean; \ 94 fi 95 rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko vboxpci.ko 79 96 80 97 unload: 81 @for module in vboxnetadp vboxnetflt vboxdrv ; do \98 @for module in vboxnetadp vboxnetflt vboxdrv vboxpci; do \ 82 99 if grep "^$$module " /proc/modules >/dev/null; then \ 83 100 echo "Removing previously installed $$module module"; \ … … 87 104 88 105 load: unload 89 @for module in vboxdrv vboxnetflt vboxnetadp ; do \106 @for module in vboxdrv vboxnetflt vboxnetadp vboxpci; do \ 90 107 if test -f $$module.ko; then \ 91 108 echo "Installing $$module module"; \ -
trunk/src/VBox/HostDrivers/linux/dkms.conf
r32183 r35920 30 30 _OMIT_VBOXNETADP_BUILT_MODULE_LOCATION[2]="vboxnetadp" 31 31 _OMIT_VBOXNETADP_DEST_MODULE_LOCATION[2]="/kernel/misc" 32 33 _OMIT_VBOXPCI_BUILT_MODULE_NAME[1]="vboxpci" 34 _OMIT_VBOXPCI_BUILT_MODULE_LOCATION[1]="vboxpci" 35 _OMIT_VBOXPCI_DEST_MODULE_LOCATION[1]="/kernel/misc" -
trunk/src/VBox/HostDrivers/linux/export_modules
r29681 r35920 34 34 PATH_VBOXNET="$PATH_ROOT/src/VBox/HostDrivers/VBoxNetFlt" 35 35 PATH_VBOXADP="$PATH_ROOT/src/VBox/HostDrivers/VBoxNetAdp" 36 PATH_VBOXPCI="$PATH_ROOT/src/VBox/HostDrivers/VBoxPci" 36 37 37 38 VBOX_VERSION_MAJOR=`sed -e "s/^ *VBOX_VERSION_MAJOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk` … … 39 40 VBOX_VERSION_BUILD=`sed -e "s/^ *VBOX_VERSION_BUILD *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk` 40 41 VBOX_VERSION_STRING=$VBOX_VERSION_MAJOR.$VBOX_VERSION_MINOR.$VBOX_VERSION_BUILD 41 VBOX_SVN_REV=`sed -e 's/^ *VBOX_SVN_REV_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR=`sed -e 's/^ *VBOX_VENDOR *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR_SHORT=`sed -e 's/^ *VBOX_VENDOR_SHORT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_PRODUCT=`sed -e 's/^ *VBOX_PRODUCT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_C_YEAR=`date +%Y` 42 VBOX_SVN_REV=`sed -e 's/^ *VBOX_SVN_REV_FALLBACK *:= \+\$(patsubst *%:,, *\$Rev: *\([0-9]\+\) *\$ *) */\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR=`sed -e 's/^ *VBOX_VENDOR *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_VENDOR_SHORT=`sed -e 's/^ *VBOX_VENDOR_SHORT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_PRODUCT=`sed -e 's/^ *VBOX_PRODUCT *= \+\(.\+\)/\1/;t;d' $PATH_ROOT/Config.kmk` VBOX_C_YEAR=`date +%Y` 42 43 43 44 . $PATH_VBOXDRV/linux/files_vboxdrv 44 45 . $PATH_VBOXNET/linux/files_vboxnetflt 45 46 . $PATH_VBOXADP/linux/files_vboxnetadp 47 . $PATH_VBOXPCI/linux/files_vboxpci 46 48 47 49 # Temporary path for creating the modules, will be removed later … … 124 126 fi 125 127 128 # vboxpci (VirtualBox host PCI access kernel module) 129 mkdir $PATH_TMP/vboxpci || exit 1 130 for f in $VBOX_VBOXPCI_SOURCES; do 131 install -D -m 0644 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxpci/`echo $f|cut -d'>' -f2`" 132 done 133 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_LINUX/build_in_tmp > $PATH_TMP/vboxpci/build_in_tmp 134 chmod 0755 $PATH_TMP/vboxpci/build_in_tmp 135 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXPCI/linux/dkms.conf > $PATH_TMP/vboxpci/dkms.conf 136 if [ -n "$VBOX_WITH_HARDENING" ]; then 137 cat $PATH_VBOXPCI/linux/Makefile > $PATH_TMP/vboxpci/Makefile 138 else 139 sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXPCI/linux/Makefile > $PATH_TMP/vboxpci/Makefile 140 fi 141 126 142 install -D -m 0644 $PATH_LINUX/Makefile $PATH_TMP/Makefile 127 143 … … 136 152 # Remove the temporary directory 137 153 rm -r $PATH_TMP 138
Note:
See TracChangeset
for help on using the changeset viewer.