Skip to contentSkip to conversation

Revert "libgpiod: ptest: warn if the gpio-mockup kernel module is not selected"

PATCH New Bartosz Golaszewski 1 participant 1 message Jun 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "libgpiod: ptest: warn if the gpio-mockup kernel module is not selected"

From: "Signed-off-by: Bartosz Golaszewski" <[email protected]>

This reverts commit 977c5f56198f075376f753b0b4178ecb35ad02ec.

This recipe doesn't see the final value of KERNEL_FEATURES that the linux-yocto recipe uses - that's why this warning was always triggered if the gpio-mockup feature was not defined globally in this variable. The linux-yocto recipe pulls in gpio-mockup automatically if ptest is in DISTRO_FEATURES so we don't really needs thich check.

---
 meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 7 -------
 1 file changed, 7 deletions(-)
meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb +0 -7
index 48a1e23ef..bb586b681 100644
@@ -53,13 +53,6 @@ RRECOMMENDS_${PN}-ptest += "kernel-module-gpio-mockup"
 PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}"
 
 do_install_ptest() {
-    if [ "${PREFERRED_PROVIDER_virtual/kernel}" = "linux-yocto" ] && \
-       ${@bb.utils.contains('KERNEL_FEATURES', 'features/gpio/mockup.scc', 'false', 'true',d)}; then
-        bbwarn "libgpiod test-suites need the gpio-mockup
-module and will not work without it. Consider adding
-'features/gpio/mockup.scc' to KERNEL_FEATURES"
-    fi
-
     install -d ${D}${PTEST_PATH}/tests
 
     # These are the core C library tests
Signature · 1 line
2.30.1