Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
From 8c7126b7b5dee0ed5433cf9265ccc79095d53939 Mon Sep 17 00:00:00 2001
|
||||
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
|
||||
Date: Mon, 8 Jul 2024 11:48:27 +0200
|
||||
Subject: [PATCH] bindings: cxx: tests: set direction when reconfiguring lines
|
||||
|
||||
Linux kernel commit b44039638741 ("gpiolib: cdev: Ignore reconfiguration
|
||||
without direction") made the direction setting mandatory for line config
|
||||
passed to the kernel when reconfiguring requested lines. Fix the C++ test
|
||||
case which doesn't do it and now fails due to the rest of the settings
|
||||
being ignored.
|
||||
|
||||
Reviewed-by: Kent Gibson <warthog618@gmail.com>
|
||||
Link: https://lore.kernel.org/r/20240708094827.84986-1-brgl@bgdev.pl
|
||||
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
|
||||
|
||||
Upstream-Status: Backport
|
||||
[https://web.git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=3e224d885b1de54fe5510b9c5e7296260a1a4507]
|
||||
|
||||
Signed-off-by: Libo Chen <libo.chen.cn@windriver.com>
|
||||
---
|
||||
bindings/cxx/tests/tests-line-request.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/bindings/cxx/tests/tests-line-request.cpp b/bindings/cxx/tests/tests-line-request.cpp
|
||||
index 9632ae0..6e29532 100644
|
||||
--- a/bindings/cxx/tests/tests-line-request.cpp
|
||||
+++ b/bindings/cxx/tests/tests-line-request.cpp
|
||||
@@ -208,6 +208,7 @@ TEST_CASE("values can be read", "[line-request]")
|
||||
.add_line_settings(
|
||||
offs,
|
||||
::gpiod::line_settings()
|
||||
+ .set_direction(direction::INPUT)
|
||||
.set_active_low(true))
|
||||
);
|
||||
|
||||
--
|
||||
2.44.1
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
testbins="gpiod-test gpio-tools-test.bash gpiod-cxx-test"
|
||||
|
||||
ptestdir=$(dirname "$(readlink -f "$0")")
|
||||
cd $ptestdir/tests
|
||||
|
||||
# libgpiod v2 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
|
||||
|
||||
for testbin in $testbins; do
|
||||
if test -e ./$testbin; then
|
||||
./$testbin > ./$testbin.out 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "FAIL: $testbin"
|
||||
else
|
||||
echo "PASS: $testbin"
|
||||
fi
|
||||
else
|
||||
echo "SKIP: $testbin"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user