Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Test SPI devices" |
| 2 | DESCRIPTION = "SPI testing utility using the spidev driver" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 5 | PROVIDES = "virtual/spidev-test" |
| 6 | |
| 7 | inherit bash-completion kernelsrc kernel-arch |
| 8 | |
| 9 | do_populate_lic[depends] += "virtual/kernel:do_patch" |
| 10 | |
| 11 | EXTRA_OEMAKE = "-C ${S}/tools/spi O=${B} CROSS=${TARGET_PREFIX} CC="${CC}" LD="${LD}" AR=${AR} ARCH=${ARCH}" |
| 12 | |
| 13 | do_configure[depends] += "virtual/kernel:do_shared_workdir" |
| 14 | |
| 15 | do_compile() { |
| 16 | oe_runmake |
| 17 | } |
| 18 | |
| 19 | do_install() { |
| 20 | oe_runmake DESTDIR=${D} install |
| 21 | } |
| 22 | |
| 23 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 24 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 25 | python do_package:prepend() { |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 26 | d.setVar('PKGV', d.getVar("KERNEL_VERSION").split("-")[0]) |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | B = "${WORKDIR}/${BPN}-${PV}" |