treewide: make linux v5.10 a hard requirement for libgpiod
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 26 Oct 2020 10:12:16 +0000 (11:12 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 26 Oct 2020 10:19:59 +0000 (11:19 +0100)
The library now uses v2 of the GPIO uAPI. The new user interface is
scheduled for release as part of linux v5.10. Linux v5.10-rc1 is now
tagged so make v5.10 headers a requirement for the build and update
all tests to check for the correct version.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/tests/gpiod-cxx-test.cpp
bindings/python/tests/gpiod_py_test.py
configure.ac
tests/gpiod-test.c
tests/mockup/gpio-mockup.c

index fbff8acd26e7a0584632bac1e87c9ef20282f424..373ba10241e302422f9dad8115cb526e88085eb4 100644 (file)
@@ -54,6 +54,6 @@ public:
        kernel_checker& operator=(kernel_checker&& other) = delete;
 };
 
-kernel_checker require_kernel(5, 5, 0);
+kernel_checker require_kernel(5, 10, 0);
 
 } /* namespace */
index 67ed66d534b327f3b802b6385949ba53fcaa0ad7..cb15fdcb947cf1d1cb819c211b6c4bf5bbebb31b 100755 (executable)
@@ -964,6 +964,6 @@ class EventFileDescriptor(MockupTestCase):
 #
 
 if __name__ == '__main__':
-    check_kernel(5, 5, 0)
+    check_kernel(5, 10, 0)
     mockup = gpiomockup.Mockup()
     unittest.main()
index 0301e1225403ad78723f88ca8736087258853d5c..57c99a861526fdacda3a07002d1a9302607406a9 100644 (file)
@@ -98,11 +98,11 @@ AC_CHECK_HEADERS([linux/version.h], [], [HEADER_NOT_FOUND_LIB([linux/version.h])
 
 AC_COMPILE_IFELSE([AC_LANG_SOURCE(
 #include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
 #error
 #endif
 )],
-[], [AC_MSG_ERROR(["libgpiod needs linux headers version >= v5.5.0"])])
+[], [AC_MSG_ERROR(["libgpiod needs linux headers version >= v5.10.0"])])
 
 AC_ARG_ENABLE([tools],
        [AS_HELP_STRING([--enable-tools],[enable libgpiod command-line tools [default=no]])],
index 0411623ebffc0345ed4ab3bdaba52abecf3933b3..343e836a8e5e26ca3fa30326b0779cf13f9a3539 100644 (file)
@@ -16,7 +16,7 @@
 #include "gpiod-test.h"
 
 #define MIN_KERNEL_MAJOR       5
-#define MIN_KERNEL_MINOR       5
+#define MIN_KERNEL_MINOR       10
 #define MIN_KERNEL_RELEASE     0
 #define MIN_KERNEL_VERSION     KERNEL_VERSION(MIN_KERNEL_MAJOR, \
                                               MIN_KERNEL_MINOR, \
index fa27bd74413e17469721e4158e89923c0c22eb43..5e8581989322be869456af6e4fdac5200ca5a88b 100644 (file)
@@ -23,7 +23,7 @@
  * The gpio-mockup features (including the debugfs interface) we're using
  * in this library have first been released in the linux kernel version below.
  */
-#define MIN_KERNEL_VERSION     KERNEL_VERSION(5, 1, 0)
+#define MIN_KERNEL_VERSION     KERNEL_VERSION(5, 10, 0)
 
 struct gpio_mockup_chip {
        char *name;