diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-12-10 13:32:43 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-12-10 13:43:54 -0800 |
| commit | ae88d2ff59eb851d7badbe5ff8eb11ed7040aeb9 (patch) | |
| tree | 7e3729f956c9999b75572b4a5ecb2a74bddaa688 /meta-filesystems/conf/layer.conf | |
| parent | 06eacb769a9915b6eff2d5bf1957ef088ee74c1c (diff) | |
| download | meta-openembedded-ae88d2ff59eb851d7badbe5ff8eb11ed7040aeb9.tar.gz | |
gpiod-sysfs-proxy: new recipe
Many users are reluctant to use libgpiod instead of the deprecated
/sys/class/gpio interface. The gpiod-sysfs-proxy project aims at making
the transition easier by implementing a compatibility layer in
user-space using FUSE and python3-gpiod. This way we can eat the cookie
by disabling the sysfs ABI and have the users have it too by sticking to
their existing scripts.
The project itself is a very simple setuptools-based python package but
the recipe is quite complex due to comprehensive distro integration.
By default we use /run/gpio as mountpoint. For full backward
compatibility with the kernel interface, the user must explicitly add
the 'sys-class-mount' switch to PACKAGECONFIG. We do this because,
depending on whether CONFIG_GPIO_SYSFS Kconfig option is enabled,
/sys/class/gpio will either be non-empty or not exist at all. In the
latter case, we need to somehow create the /sys/class/gpio and, since
user-space is not allowed to mkdir() inside sysfs, we use overlayfs for
that. As this is rather non-standard, we want the user to be aware of
this.
We support both systemd and sys V init managers.
We also provide a ptest package which uses an external
gpio-sysfs-compat-tests script.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems/conf/layer.conf')
| -rw-r--r-- | meta-filesystems/conf/layer.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-filesystems/conf/layer.conf b/meta-filesystems/conf/layer.conf index 8a0c831e2b..5323913d58 100644 --- a/meta-filesystems/conf/layer.conf +++ b/meta-filesystems/conf/layer.conf | |||
| @@ -16,3 +16,7 @@ LAYERVERSION_filesystems-layer = "1" | |||
| 16 | LAYERDEPENDS_filesystems-layer = "core openembedded-layer networking-layer" | 16 | LAYERDEPENDS_filesystems-layer = "core openembedded-layer networking-layer" |
| 17 | 17 | ||
| 18 | LAYERSERIES_COMPAT_filesystems-layer = "styhead walnascar" | 18 | LAYERSERIES_COMPAT_filesystems-layer = "styhead walnascar" |
| 19 | |||
| 20 | BBFILES_DYNAMIC += " \ | ||
| 21 | meta-python:${LAYERDIR}/dynamic-layers/meta-python/recipes-*/*/*.bb \ | ||
| 22 | " | ||
