diff options
author | Erik Schilling <erik.schilling@linaro.org> | 2023-06-12 13:14:50 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-06-13 10:16:03 +0200 |
commit | ebfed6ceb260e2c70a8c63e007f1f883382fc62d (patch) | |
tree | d940487fb4402bee2eb51b07a66d4e4ef886363a | |
parent | bce8623776fb083561d9f85c01020810ff7273d0 (diff) | |
download | libgpiod-ebfed6ceb260e2c70a8c63e007f1f883382fc62d.tar.gz |
bindings: rust: document build without install
While the Makefile does this automatically, a user may want to do
something similar for other cargo commands.
Reported-by: Kent Gibson <warthog618@gmail.com>
Link: https://lore.kernel.org/r/ZIQJquwzNacp1Nuh@sol/
Signed-off-by: Erik Schilling <erik.schilling@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r-- | bindings/rust/libgpiod-sys/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bindings/rust/libgpiod-sys/README.md b/bindings/rust/libgpiod-sys/README.md index 90198d81..f9db4962 100644 --- a/bindings/rust/libgpiod-sys/README.md +++ b/bindings/rust/libgpiod-sys/README.md @@ -16,6 +16,15 @@ libs and headers by setting environment variables. The mechanism for that is documented in the [system_deps crate documentation](https://docs.rs/system-deps/6.1.0/system_deps/#overriding-build-flags). +If installing libgpiod is undesired, one can set the following environent +variables in order to build against the intermediate build results of a `make` +build of the C lib (paths are relative to the Cargo.toml): + + export SYSTEM_DEPS_LIBGPIOD_NO_PKG_CONFIG=1 + export SYSTEM_DEPS_LIBGPIOD_SEARCH_NATIVE="<PATH-TO-LIBGPIOD>/lib/.libs/" + export SYSTEM_DEPS_LIBGPIOD_LIB=gpiod + export SYSTEM_DEPS_LIBGPIOD_INCLUDE="<PATH-TO-LIBGPIOD>/include/" + ## License This project is licensed under either of |