Add libgpiod 1.x dependency
Several applications in this repository use the libgpiod API to access
GPIO hardware. The applications currently use the version 1.x API.
The latest version of libgpiod is 2.2.2. The API in version 2.x is
unfortunately incompatible with version 1.x and will require non-trivial
source code changes.
Long term, this repository will need to convert to libgpiod 2.x.
However, this will need to be planned with the rest of the OpenBMC
community.
For now, declare a dependency on version 1.x in the meson.build file.
Tested:
* Verified CI passed when libgpiod 1.x was available
* Verified CI failed when libgpiod 2.x was available
* Verified bitbake built successfully when libgpiod 1.x was available
* Tested phosphor-power-sequencer application on a system
* Verified application could power the system on and off using GPIOs
* Verified application could read GPIOs when a pgood failure occurs
Change-Id: Ie4b364d29529661ca49d5f7d05e132f96881cfca
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/meson.build b/meson.build
index c7d3c95..9fe350c 100644
--- a/meson.build
+++ b/meson.build
@@ -93,7 +93,11 @@
pthread = dependency('threads')
stdplus = dependency('stdplus')
boost = dependency('boost')
-libgpiodcxx = dependency('libgpiodcxx', default_options: ['bindings=cxx'])
+libgpiodcxx = dependency(
+ 'libgpiodcxx',
+ default_options: ['bindings=cxx'],
+ version: '<1.7.0',
+)
nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system')