Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linuxgpio: add support for libgpiod v1.4 #1792

Merged
merged 7 commits into from
Apr 28, 2024

Commits on Apr 26, 2024

  1. linuxgpio: add gpiod_line_set_direction_input helper for libgpiod v1.…

    …4 support (refs avrdudes#1782)
    
    This ancient libgpiod version is still shipped on Ubuntu 20.04 LTS.
    Add support for it by adding another helper.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    mhei committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    6a75ac7 View commit details
    Browse the repository at this point in the history
  2. linuxgpio: fix build with libgpiod < v2.0

    Commit 8390909 introduced a regression with
    libgpiod versions below 2.0.
    
    Fix it by introducing a tiny helper function which returns
    the GPIO number (offset).
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    mhei committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    9ba3a92 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2024

  1. Configuration menu
    Copy the full SHA
    7e18c0e View commit details
    Browse the repository at this point in the history
  2. Improve cmake status messages during libgpiod detection

    The standard cmake messages of pkg_check_modules might be confusing
    when being used as here, i.e. when searching for the highest compatible
    version.
    
    So suppress these standard messages and print manual ones instead.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    mhei committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    fcf8cd7 View commit details
    Browse the repository at this point in the history
  3. linuxgpio: fix linking with libgpiod < v1.6

    Due to a copy and paste error, the required define for
    using libgpido at all was not set and thus the library
    was not used at all.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    mhei committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    ca65e84 View commit details
    Browse the repository at this point in the history
  4. autotools: improve configure summary regarding libgpiod

    We cannot print the exact version we detected, but we
    can give a hint about the "version class" at least.
    
    Signed-off-by: Michael Heimpold <mhei@heimpold.de>
    mhei committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    b6c15d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2024

  1. Configuration menu
    Copy the full SHA
    dceb55d View commit details
    Browse the repository at this point in the history