diff options
| -rw-r--r-- | meta-oe/recipes-support/libgpiod/libgpiod_1.6.3.bb | 7 |
1 files changed, 7 insertions, 0 deletions
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 | |||
| 52 | PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" | 52 | PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'tests', '', d)}" |
| 53 | 53 | ||
| 54 | do_install_ptest() { | 54 | do_install_ptest() { |
| 55 | if [ "${PREFERRED_PROVIDER_virtual/kernel}" = "linux-yocto" ] && \ | ||
| 56 | ${@bb.utils.contains('KERNEL_FEATURES', 'features/gpio/mockup.scc', 'false', 'true',d)}; then | ||
| 57 | bbwarn "libgpiod test-suites need the gpio-mockup | ||
| 58 | module and will not work without it. Consider adding | ||
| 59 | 'features/gpio/mockup.scc' to KERNEL_FEATURES" | ||
| 60 | fi | ||
| 61 | |||
| 55 | install -d ${D}${PTEST_PATH}/tests | 62 | install -d ${D}${PTEST_PATH}/tests |
| 56 | 63 | ||
| 57 | # These are the core C library tests | 64 | # These are the core C library tests |
