diff --git a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb index 874453fbd6..febf625a6b 100644 --- a/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb +++ b/meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb @@ -52,6 +52,13 @@ RRECOMMENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'python3', '${PN}-py 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