Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 1 | SUMMARY = "A small tool to read/write memory" |
Brad Bishop | 00ab237 | 2019-10-14 11:06:18 -0400 | [diff] [blame] | 2 | DESCRIPTION = "rwmem is a small tool for reading and writing device registers. \ |
| 3 | rwmem supports two modes: mmap mode and i2c mode. \ |
| 4 | \ |
| 5 | In mmap mode rwmem accesses a file by memory mapping it. \ |
| 6 | Using /dev/mem as the memory mapped file makes rwmem access memory and \ |
| 7 | can thus be used to access devices which have memory mapped registers. \ |
| 8 | \ |
| 9 | In i2c mode rwmem accesses an i2c peripheral by sending i2c messages to it." |
| 10 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 11 | LICENSE = "GPL-2.0-or-later" |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 13 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 14 | DEPENDS += "fmt libinih" |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 15 | |
| 16 | PV .= "+git${SRCPV}" |
| 17 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 18 | SRCREV = "8416326777b2aada0706539b8f9f6acefa476b16" |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 19 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 20 | SRC_URI = "git://github.com/tomba/rwmem.git;protocol=https;name=rwmem;branch=master \ |
| 21 | file://0001-include-missing-cstdint.patch" |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 22 | |
| 23 | S = "${WORKDIR}/git" |
| 24 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 25 | inherit meson pkgconfig python3native |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 26 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 27 | PACKAGECONFIG ?= "python static" |
| 28 | PACKAGECONFIG[python] = "-Dpyrwmem=enabled,-Dpyrwmem=disabled,cmake-native python3 python3-pybind11" |
| 29 | PACKAGECONFIG[static] = "-Dstatic-libc=true,-Dstatic-libc=false," |
| 30 | |
| 31 | do_install:append() { |
| 32 | install -D -m 0644 ${B}/librwmem/librwmem.a ${D}${libdir}/librwmem.a |
Brad Bishop | 36a3e3e | 2019-10-02 13:29:27 -0400 | [diff] [blame] | 33 | } |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 34 | |
| 35 | FILES:${PN} += "${libdir}/python3.11/site-packages/pyrwmem" |