Changeset 15688 in vbox
- Timestamp:
- Dec 19, 2008 1:03:17 PM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/linux/export_modules
r15683 r15688 42 42 PATH_OUT=$PATH_TMP 43 43 FILE_OUT="`cd \`dirname $1\`; pwd`/`basename $1`" 44 PATH_ROOT="`cd \`dirname $0\`/../../../../..; pwd`" 44 PATH_ROOT="`cd \`dirname $0\`/../../../..; pwd`" 45 PATH_LINUX="$PATH_ROOT/src/VBox/HostDrivers/linux" 45 46 PATH_VBOXDRV="$PATH_ROOT/src/VBox/HostDrivers/Support" 47 PATH_VBOXNET="$PATH_ROOT/src/VBox/HostDrivers/VBoxNetFlt" 46 48 47 49 VBOX_VERSION_MAJOR=`sed -e "s/^ *VBOX_VERSION_MAJOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk` … … 51 53 52 54 . $PATH_VBOXDRV/linux/files_vboxdrv 55 . $PATH_VBOXNET/linux/files_vboxnetflt 53 56 54 57 # Temporary path for creating the modules, will be removed later … … 74 77 install -D -m 0755 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxdrv/`echo $f|cut -d'>' -f2`" 75 78 done 76 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_ VBOXDRV/linux/build_in_tmp > $PATH_TMP/vboxdrv/build_in_tmp79 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_LINUX/build_in_tmp > $PATH_TMP/vboxdrv/build_in_tmp 77 80 chmod 0755 $PATH_TMP/vboxdrv/build_in_tmp 78 81 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/dkms.conf > $PATH_TMP/vboxdrv/dkms.conf … … 82 85 sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile 83 86 fi 87 88 # vboxnetflt (VirtualBox netfilter kernel module) 89 mkdir $PATH_TMP/vboxnetflt || exit 1 90 for f in $VBOX_VBOXNETFLT_SOURCES; do 91 install -D -m 0644 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxnetflt/`echo $f|cut -d'>' -f2`" 92 done 93 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_LINUX/build_in_tmp > $PATH_TMP/vboxnetflt/build_in_tmp 94 chmod 0755 $PATH_TMP/vboxnetflt/build_in_tmp 95 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXNET/linux/dkms.conf > $PATH_TMP/vboxnetflt/dkms.conf 96 if [ -n "$VBOX_WITH_HARDENING" ]; then 97 cat $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile 98 else 99 sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile 100 fi 101 102 install -D -m 0644 $PATH_LINUX/Makefile $PATH_TMP/Makefile 84 103 85 104 # Only temporary, omit from archive
Note:
See TracChangeset
for help on using the changeset viewer.