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

This reverts commit 977c5f5619.

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.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Signed-off-by: Bartosz Golaszewski
2021-06-09 21:30:30 +02:00
committed by Khem Raj
parent 18960fe1c1
commit 46eb101cf7
@@ -54,13 +54,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