VirtualBox

Changeset 15688 in vbox


Ignore:
Timestamp:
Dec 19, 2008 1:03:17 PM (16 years ago)
Author:
vboxsync
Message:

export_modules fix

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/linux/export_modules

    r15683 r15688  
    4242PATH_OUT=$PATH_TMP
    4343FILE_OUT="`cd \`dirname $1\`; pwd`/`basename $1`"
    44 PATH_ROOT="`cd \`dirname $0\`/../../../../..; pwd`"
     44PATH_ROOT="`cd \`dirname $0\`/../../../..; pwd`"
     45PATH_LINUX="$PATH_ROOT/src/VBox/HostDrivers/linux"
    4546PATH_VBOXDRV="$PATH_ROOT/src/VBox/HostDrivers/Support"
     47PATH_VBOXNET="$PATH_ROOT/src/VBox/HostDrivers/VBoxNetFlt"
    4648
    4749VBOX_VERSION_MAJOR=`sed -e "s/^ *VBOX_VERSION_MAJOR *= \+\([0-9]\+\)/\1/;t;d" $PATH_ROOT/Config.kmk`
     
    5153
    5254. $PATH_VBOXDRV/linux/files_vboxdrv
     55. $PATH_VBOXNET/linux/files_vboxnetflt
    5356
    5457# Temporary path for creating the modules, will be removed later
     
    7477    install -D -m 0755 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxdrv/`echo $f|cut -d'>' -f2`"
    7578done
    76 sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/build_in_tmp > $PATH_TMP/vboxdrv/build_in_tmp
     79sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_LINUX/build_in_tmp > $PATH_TMP/vboxdrv/build_in_tmp
    7780chmod 0755 $PATH_TMP/vboxdrv/build_in_tmp
    7881sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/dkms.conf > $PATH_TMP/vboxdrv/dkms.conf
     
    8285    sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile
    8386fi
     87
     88# vboxnetflt (VirtualBox netfilter kernel module)
     89mkdir $PATH_TMP/vboxnetflt || exit 1
     90for f in $VBOX_VBOXNETFLT_SOURCES; do
     91    install -D -m 0644 `echo $f|cut -d'=' -f1` "$PATH_TMP/vboxnetflt/`echo $f|cut -d'>' -f2`"
     92done
     93sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_LINUX/build_in_tmp > $PATH_TMP/vboxnetflt/build_in_tmp
     94chmod 0755 $PATH_TMP/vboxnetflt/build_in_tmp
     95sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXNET/linux/dkms.conf > $PATH_TMP/vboxnetflt/dkms.conf
     96if [ -n "$VBOX_WITH_HARDENING" ]; then
     97    cat                                   $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile
     98else
     99    sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXNET/linux/Makefile > $PATH_TMP/vboxnetflt/Makefile
     100fi
     101
     102install -D -m 0644 $PATH_LINUX/Makefile $PATH_TMP/Makefile
    84103
    85104# Only temporary, omit from archive
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