VirtualBox

Ignore:
Timestamp:
Aug 28, 2008 11:36:46 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35520
Message:

#3076: edit linux/Makefile so VBOX_WITH_HARDENING is defined correctly.

File:
1 edited

Legend:

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

    r8155 r11752  
    2929
    3030if [ -z "$1" ]; then
    31     echo "Usage: $0 <filename.tar.gz>"
     31    echo "Usage: $0 <filename.tar.gz> [--without-hardening]"
    3232    echo "  Export VirtualBox kernel modules to <filename.tar.gz>"
    3333    exit 1
     34fi
     35
     36VBOX_WITH_HARDENING=1
     37if [ "$2" = "--without-hardening" ]; then
     38    VBOX_WITH_HARDENING=
    3439fi
    3540
     
    7277chmod 0755 $PATH_TMP/vboxdrv/build_in_tmp
    7378sed -e "s;_VERSION_;$VBOX_VERSION_STRING;g" < $PATH_VBOXDRV/linux/dkms.conf > $PATH_TMP/vboxdrv/dkms.conf
     79if [ -n "$VBOX_WITH_HARDENING" ]; then
     80    cat                                   $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile
     81else
     82    sed -e "s;-DVBOX_WITH_HARDENING;;g" < $PATH_VBOXDRV/linux/Makefile > $PATH_TMP/vboxdrv/Makefile
     83fi
    7484
    7585# Only temporary, omit from archive
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