nwl-tests: update recipe for new file structure

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
This commit is contained in:
Lucien Mueller 2023-09-20 15:55:52 +02:00
parent 8eec0f932c
commit 0e30a45837
2 changed files with 5 additions and 9 deletions

View File

@ -34,7 +34,7 @@ IMAGE_INSTALL:append = " \
\ \
networkmanager-nmcli \ networkmanager-nmcli \
systemd-conf \ systemd-conf \
nwl-tests-kernel \ nwl-tests \
\ \
${@bb.utils.contains("MACHINE_FEATURES", "wifi", "${WIFI_PACKAGES}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "wifi", "${WIFI_PACKAGES}", "", d)} \
" "

View File

@ -7,20 +7,16 @@ SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/nwl-test.git;protocol=ssh;b
PV = "1.0+git${SRCPV}" PV = "1.0+git${SRCPV}"
SRCREV = "8a3c5de105eb290342ed67e7cbeecb0879da1384" SRCREV = "b20cf128663270b095f51d538b650d0536822069"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PACKAGES += "${PN}-kernel" RDEPENDS:${PN} = "bats"
RDEPENDS:${PN}-kernel = "${PN} bats"
FILES:${PN} = "${datadir}/*" FILES:${PN} = "${datadir}/*"
FILES:${PN}-kernel = "${bindir}/nwl-tests-kernel" FILES:${PN} += "${bindir}/*"
do_install () { do_install () {
install -d ${D}${bindir} make install PREFIX=${D}${prefix}
install -m 0755 ${S}/kernel-tests/kernel-tests.bats ${D}${bindir}/nwl-tests-kernel
install -d ${D}${datadir}/nwl-tests
install -m 0644 ${S}/hardware-specifications/* ${D}${datadir}/nwl-tests/
} }