blob: 5d81fdb4ddc01940f0252cbc105f5cf890734e95 [file] [log] [blame]
Brad Bishop36a3e3e2019-10-02 13:29:27 -04001SUMMARY = "A small tool to read/write memory"
Brad Bishop00ab2372019-10-14 11:06:18 -04002DESCRIPTION = "rwmem is a small tool for reading and writing device registers. \
3rwmem supports two modes: mmap mode and i2c mode. \
4\
5In mmap mode rwmem accesses a file by memory mapping it. \
6Using /dev/mem as the memory mapped file makes rwmem access memory and \
7can thus be used to access devices which have memory mapped registers. \
8\
9In i2c mode rwmem accesses an i2c peripheral by sending i2c messages to it."
10
Brad Bishop36a3e3e2019-10-02 13:29:27 -040011LICENSE = "GPLv2+"
12LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
13
14DEPENDS += "python3 python3-pybind11"
15
16PV .= "+git${SRCPV}"
17
18SRCREV_rwmem = "cc296c5366a35a4c4271cfa3cc9831f6f34bfd9d"
19SRCREV_inih = "4b10c654051a86556dfdb634c891b6c3224c4109"
20
21SRCREV_FORMAT = "rwmem_inih"
22
23SRC_URI = " \
24 git://github.com/tomba/rwmem.git;protocol=https;name=rwmem \
25 git://github.com/benhoyt/inih.git;protocol=https;name=inih;nobranch=1;destsuffix=git/ext/inih \
26"
27
28S = "${WORKDIR}/git"
29
30inherit cmake pkgconfig
31
32do_install() {
33 install -D -m 0755 ${B}/bin/rwmem ${D}${bindir}/rwmem
34 install -D -m 0644 ${B}/lib/librwmem.a ${D}${libdir}/librwmem.a
35}