diff mbox series

[ovs-dev,v2,22/24] acinclude: Enable builds up to Linux 5.8

Message ID 20200909192021.9545-23-gvrose8192@gmail.com
State Superseded
Headers show
Series Add support for Linux kernels up to 5.8.x | expand

Commit Message

Gregory Rose Sept. 9, 2020, 7:20 p.m. UTC
Allow building openvswitch against Linux kernels up to and including
version 5.8.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
---
 acinclude.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Gregory Rose Sept. 9, 2020, 9:50 p.m. UTC | #1
On 9/9/2020 12:20 PM, Greg Rose wrote:
> Allow building openvswitch against Linux kernels up to and including
> version 5.8.
> 
> Signed-off-by: Greg Rose <gvrose8192@gmail.com>
> ---
>   acinclude.m4 | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/acinclude.m4 b/acinclude.m4
> index 3d56510a0..c04e4e429 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -167,10 +167,10 @@ AC_DEFUN([OVS_CHECK_LINUX], [
>       AC_MSG_RESULT([$kversion])
>   
>       if test "$version" -ge 5; then
> -       if test "$version" = 5 && test "$patchlevel" -le 5; then
> +       if test "$version" = 5 && test "$patchlevel" -le 8; then
>             : # Linux 5.x
>          else
> -          AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 5.5.x is not supported (please refer to the FAQ for advice)])
> +          AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 5.9.x is not supported (please refer to the FAQ for advice)])

The warning message isn't right - should be 5.8.x.  Just noticed it in 
other testing.

I'll fix it up after more reviews...

- Greg

>          fi
>       elif test "$version" = 4; then
>          : # Linux 4.x
>
diff mbox series

Patch

diff --git a/acinclude.m4 b/acinclude.m4
index 3d56510a0..c04e4e429 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -167,10 +167,10 @@  AC_DEFUN([OVS_CHECK_LINUX], [
     AC_MSG_RESULT([$kversion])
 
     if test "$version" -ge 5; then
-       if test "$version" = 5 && test "$patchlevel" -le 5; then
+       if test "$version" = 5 && test "$patchlevel" -le 8; then
           : # Linux 5.x
        else
-          AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 5.5.x is not supported (please refer to the FAQ for advice)])
+          AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 5.9.x is not supported (please refer to the FAQ for advice)])
        fi
     elif test "$version" = 4; then
        : # Linux 4.x