VirtualBox

Ignore:
Timestamp:
May 25, 2007 1:34:08 PM (18 years ago)
Author:
vboxsync
Message:

get Module.symvers into vboxvfs for newer Linux kernels to prevent tainting messages

File:
1 edited

Legend:

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

    r2641 r2871  
    3434done
    3535
     36if [ "$1" = "--save-module-symvers" ]; then
     37  shift
     38  SAVE_MOD_SYMVERS="$1"
     39  shift
     40fi
     41
     42if [ "$1" = "--use-module-symvers" ]; then
     43  shift
     44  USE_MOD_SYMVERS="$1"
     45  shift
     46fi
     47
    3648# copy
    3749cp -a ${0%/*}/* $tmpdir/
     50cp $USE_MOD_SYMVERS $tmpdir/Module.symvers
    3851
    3952# make, cleanup if success
    4053cd "$tmpdir"
    4154if make "$@"; then
     55  if [ -n "$SAVE_MOD_SYMVERS" ]; then
     56    if [ -f Module.symvers ]; then
     57      cp -f Module.symvers $SAVE_MOD_SYMVERS
     58    else
     59      cat /dev/null > $SAVE_MOD_SYMVERS
     60    fi
     61  fi
    4262  rm -rf $tmpdir
    4363  exit 0
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