VirtualBox

Changeset 70497 in vbox for trunk


Ignore:
Timestamp:
Jan 9, 2018 5:06:01 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120112
Message:

configure: do not do kernel module test builds with --disable-kmods.
bugref:9088: Linux hosts: configure --disable-kmods requires kernel headers
As part of changes to make our kernel module test builds work with kernels
4.9 and later, kernel module test builds were moved from the main build
to test cases. The Make variables used to enable and disable them were also
changed, but configure --disable-kmods was not changed to reflect this.
This change fixes that and removes script from configure to disable test
builds with kernels 4.9 and later.
Thank you Ulrich Gemkow and Sérgio Basto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r69500 r70497  
    17671767  else
    17681768    if test_execute; then
    1769       cat > $ODIR.tmp_src.c << EOF
    1770 #include <linux/version.h>
    1771 int printf(const char *format, ...);
    1772 int main(void)
    1773 {
    1774   return LINUX_VERSION_CODE >= KERNEL_VERSION(4,9,0) ? 1 : 0;
    1775 }
    1776 EOF
    1777       echo "compiling the following source file:" >> $LOG
    1778       cat $ODIR.tmp_src.c >> $LOG
    1779       echo "using the following command line:" >> $LOG
    1780       echo "$CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include " \
    1781           "-I$LINUX/include/generated/uapi" >> $LOG
    1782       $CC -O -Wall -o $ODIR.tmp_out $ODIR.tmp_src.c -nostdinc -I$LINUX/include \
    1783           -I$LINUX/include/generated/uapi >> $LOG 2>&1
    1784       if [ $? -eq 0 ]; then
    1785         $ODIR.tmp_out
    1786         if [ $? -ne 0 ]; then
    1787           cnf_append "VBOX_WITH_VBOXDRV" ""
    1788           cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
    1789           echo "Detected Linux >= 4.8 -- disabling compiling of Linux kernel modules."
    1790         else
    1791           cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`"
    1792         fi
    1793       fi
     1769      cnf_append "VBOX_LINUX_SRC" "`cd $LINUX ; pwd`"
    17941770    fi
    17951771  fi
     
    28232799  else
    28242800    cnf_append "VBOX_LINUX_SRC" ""
    2825     cnf_append "VBOX_WITH_VBOXDRV" ""
    2826     cnf_append "VBOX_WITH_ADDITION_DRIVERS" ""
     2801    cnf_append "VBOX_WITHOUT_LINUX_TEST_BUILDS" "1"
    28272802  fi
    28282803  if [ $ONLY_ADDITIONS -eq 0 ]; then
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