Browse Source

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>
Tomi Valkeinen 4 years ago
parent
commit
51a282bcb8
4 changed files with 27 additions and 0 deletions
  1. 1 0
      package/Config.in
  2. 10 0
      package/rwmem/Config.in
  3. 2 0
      package/rwmem/rwmem.hash
  4. 14 0
      package/rwmem/rwmem.mk

+ 1 - 0
package/Config.in

@@ -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 - 0
package/rwmem/Config.in

@@ -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 - 0
package/rwmem/rwmem.hash

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

+ 14 - 0
package/rwmem/rwmem.mk

@@ -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))