blob: 2e8c5cbb8de4db0c5e8c5ff9f1d2b42964a7abbb [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Test SPI devices"
2DESCRIPTION = "SPI testing utility using the spidev driver"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003LICENSE = "GPL-2.0-only"
Andrew Geissler69721092021-07-23 12:57:00 -04004LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
Andrew Geissler82c905d2020-04-13 13:39:40 -05005PROVIDES = "virtual/spidev-test"
6
7inherit bash-completion kernelsrc kernel-arch
8
9do_populate_lic[depends] += "virtual/kernel:do_patch"
10
11EXTRA_OEMAKE = "-C ${S}/tools/spi O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}"
12
13do_configure[depends] += "virtual/kernel:do_shared_workdir"
14
15do_compile() {
16 oe_runmake
17}
18
19do_install() {
20 oe_runmake DESTDIR=${D} install
21}
22
23PACKAGE_ARCH = "${MACHINE_ARCH}"
24
Patrick Williams213cb262021-08-07 19:21:33 -050025python do_package:prepend() {
Patrick Williams864cc432023-02-09 14:54:44 -060026 d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0])
Andrew Geissler82c905d2020-04-13 13:39:40 -050027}
28
29B = "${WORKDIR}/${BPN}-${PV}"