Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 1 | require libgpiod.inc |
| 2 | |
| 3 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & CC-BY-SA-4.0" |
| 4 | LIC_FILES_CHKSUM = " \ |
| 5 | file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 6 | file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \ |
| 7 | file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \ |
| 8 | " |
| 9 | |
| 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:" |
| 11 | |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 12 | SRC_URI += "file://0001-ptest-modify-delays-in-toggle-tests.patch" |
| 13 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "b5367d28d045b36007a4ffd42cceda4c358737ef4f2ce22b0c1d05ec57a38392" |
| 15 | |
| 16 | # Enable all project features for ptest |
| 17 | PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit" |
| 18 | PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit" |
| 19 | |
| 20 | PACKAGES =+ "${PN}-ptest-dev" |
| 21 | FILES:${PN}-tools += "${bindir}/gpionotify" |
| 22 | FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*" |
| 23 | FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h" |
| 24 | |
| 25 | RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim" |
| 26 | |
| 27 | do_install_ptest:append() { |
| 28 | install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h |
| 29 | } |