VirtualBox

Changeset 65874 in vbox for trunk/configure


Ignore:
Timestamp:
Feb 24, 2017 10:40:50 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113650
Message:

configure: don't compile the host/guest kernel modules as part of the normal build process if we detect Linux 4.9 or later

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r65663 r65874  
    19211921  else
    19221922    if test_execute; then
    1923       cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`"
    1924     fi
    1925   fi
    1926 }
    1927 
     1923      cat > $ODIR.tmp_src.c << EOF
     1924#include <linux/version.h>
     1925int printf(const char *format, ...);
     1926int main(void)
     1927{
     1928  return LINUX_VERSION_CODE > KERNEL_VERSION(4,8,0) ? 1 : 0;
     1929}
     1930EOF
     1931      echo "compiling the following source file:" >> $LOG
     1932      cat $ODIR.tmp_src.c >> $LOG
     1933      echo "using the following command line:" >> $LOG
     1934      echo "$CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include " \
     1935          "-I$LINUX/include/generated/uapi" >> $LOG
     1936      $CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include \
     1937          -I$LINUX/include/generated/uapi >> $LOG 2>&1
     1938      if [ $? -eq 0 ]; then
     1939        $ODIR.tmp_out
     1940        if [ $? -ne 0 ]; then
     1941          cnf_append "VBOX_WITH_VBOXDRV" ""
     1942          cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
     1943          echo "Detected Linux >= 4.8 -- disabling compiling of Linux kernel modules."
     1944        else
     1945          cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`"
     1946        fi
     1947      fi
     1948    fi
     1949  fi
     1950}
    19281951
    19291952#
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