image/ramdisk: Add kernel tests

id:418214
This commit is contained in:
Alexandre Bard 2023-08-16 16:21:56 +02:00
parent 9a4ce1d870
commit c31ccbcbbf
2 changed files with 27 additions and 0 deletions

View File

@ -15,4 +15,5 @@ COREOS_IMAGE_GENERATE_SWU = "0"
IMAGE_INSTALL:append = " \
networkmanager-nmcli \
systemd-conf \
nwl-tests-kernel \
"

View File

@ -0,0 +1,26 @@
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
inherit allarch
SRC_URI = "git://git@bitbucket.gad.local:7999/nm-nsp/nwl-test.git;protocol=ssh;branch=main"
PV = "1.0+git${SRCPV}"
SRCREV = "7d0d962b7ed7bf5cde845d5c81d5eade5f01444d"
S = "${WORKDIR}/git"
PACKAGES += "${PN}-kernel"
RDEPENDS:${PN}-kernel = "${PN} bash usbutils"
FILES:${PN} = "${datadir}/*"
FILES:${PN}-kernel = "${bindir}/nwl-tests-kernel"
do_install () {
install -d ${D}${bindir}
install -m 0755 ${S}/kernel-tests/kernel-tests.sh ${D}${bindir}/nwl-tests-kernel
install -d ${D}${datadir}/nwl-tests
install -m 0644 ${S}/hardware-specifications/* ${D}${datadir}/nwl-tests/
}