package/rwmem: new package

rwmem is small tool to read & write device registers. Some of the
features include:

- support mmaped and i2c devices
- addressing with 8/16/32/64 bit addresses
- accessing 8/16/32/64 bit memory locations
- little and big endian addressess and accesses
- bitfields
- address ranges
- register description database

Python bindings are disabled for now.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Tomi Valkeinen 2021-08-06 15:48:54 +03:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent dd1621b067
commit 51a282bcb8
4 changed files with 27 additions and 0 deletions

View File

@ -134,6 +134,7 @@ menu "Debugging, profiling and benchmark"
source "package/ramsmp/Config.in"
source "package/ramspeed/Config.in"
source "package/rt-tests/Config.in"
source "package/rwmem/Config.in"
source "package/sentry-native/Config.in"
source "package/spidev_test/Config.in"
source "package/strace/Config.in"

10
package/rwmem/Config.in Normal file
View File

@ -0,0 +1,10 @@
config BR2_PACKAGE_RWMEM
bool "rwmem"
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
depends on BR2_INSTALL_LIBSTDCPP
select BR2_PACKAGE_FMT
select BR2_PACKAGE_INIH
help
Simple program to read/write from/to any location in memory.
https://github.com/tomba/rwmem

2
package/rwmem/rwmem.hash Normal file
View File

@ -0,0 +1,2 @@
sha256 55d28f029c0cd5c21d3e1c89371e2905d5217f571ef5389ed0fce163804d1c4a rwmem-c8291705c82bb0686be9adf6a427a2b72114719a.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE

14
package/rwmem/rwmem.mk Normal file
View File

@ -0,0 +1,14 @@
################################################################################
#
# rwmem
#
################################################################################
RWMEM_VERSION = c8291705c82bb0686be9adf6a427a2b72114719a
RWMEM_SITE = $(call github,tomba,rwmem,$(RWMEM_VERSION))
RWMEM_LICENSE = GPL-2.0
RWMEM_LICENSE_FILES = LICENSE
RWMEM_CONF_OPTS = -Dpyrwmem=disabled
RWMEM_DEPENDENCIES = host-pkgconf fmt inih
$(eval $(meson-package))