mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

Add a recipe for libgpiod v2 python bindings. This is a release candidate but once the proper v2.0 is released, it will be made public on pypi and the recipe modified accordingly. As libgpiod python bindings now use setuptools and not make, we can separate the recipe from the rest of the library. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
430 B
430 B
#!/bin/sh
cd $(dirname "$(readlink -f "$0")")
python3-gpiod uses gpio-sim - a configfs-based testing module. We need to
make sure configfs is mounted before running any tests.
modprobe configfs mountpoint /sys/kernel/config > /dev/null || mount -t configfs configfs /sys/kernel/config
python3 -m gpiod-test -v > ./python3-gpiod.out 2>&1 if [ $? -ne 0 ]; then echo "FAIL: python3-gpiod" else echo "PASS: python3-gpiod" fi