From patchwork Fri Aug 6 12:48:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1514343 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=N/dhIWSQ; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gh4zr1wT3z9s24 for ; Fri, 6 Aug 2021 22:49:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0C40A83BC1; Fri, 6 Aug 2021 12:49:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YRNFHAQPxyqH; Fri, 6 Aug 2021 12:49:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 5F7B683B83; Fri, 6 Aug 2021 12:49:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 65FCF1BF37F for ; Fri, 6 Aug 2021 12:49:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 62A6F608FE for ; Fri, 6 Aug 2021 12:49:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=ideasonboard.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2tBinXEYq2-i for ; Fri, 6 Aug 2021 12:49:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2955C6086D for ; Fri, 6 Aug 2021 12:49:06 +0000 (UTC) Received: from deskari.lan (91-158-153-130.elisa-laajakaista.fi [91.158.153.130]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 05ADF4FB; Fri, 6 Aug 2021 14:49:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1628254142; bh=1MujidM/blZs8UF/MYR6Jou/0ryDN6Zj3RAeZd6GH0g=; h=From:To:Cc:Subject:Date:From; b=N/dhIWSQXC3S3t6EoB4ZGBP56olCQE1S5Cs4U/71atHEyZ0gzB36828XjpuiV3Lm9 uctJFvxZnKX7PptAQkVXQx/BLauPzXHi7u9jkB8j82hinp4tXdlykkMeZpy5rja0d9 0RXInbI29lycj1l1HS3EnqD/ibSPXctJEPX7yL3g= From: Tomi Valkeinen To: buildroot@buildroot.org Date: Fri, 6 Aug 2021 15:48:54 +0300 Message-Id: <20210806124854.1832099-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/rwmem: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 Signed-off-by: Tomi Valkeinen --- package/Config.in | 1 + package/rwmem/Config.in | 10 ++++++++++ package/rwmem/rwmem.hash | 2 ++ package/rwmem/rwmem.mk | 14 ++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 package/rwmem/Config.in create mode 100644 package/rwmem/rwmem.hash create mode 100644 package/rwmem/rwmem.mk diff --git a/package/Config.in b/package/Config.in index 046c04e994..6e97346eb1 100644 --- a/package/Config.in +++ b/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" diff --git a/package/rwmem/Config.in b/package/rwmem/Config.in new file mode 100644 index 0000000000..0fd9142e92 --- /dev/null +++ b/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 diff --git a/package/rwmem/rwmem.hash b/package/rwmem/rwmem.hash new file mode 100644 index 0000000000..9becbc5b21 --- /dev/null +++ b/package/rwmem/rwmem.hash @@ -0,0 +1,2 @@ +sha256 55d28f029c0cd5c21d3e1c89371e2905d5217f571ef5389ed0fce163804d1c4a rwmem-c8291705c82bb0686be9adf6a427a2b72114719a.tar.gz +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE diff --git a/package/rwmem/rwmem.mk b/package/rwmem/rwmem.mk new file mode 100644 index 0000000000..24c4e92efc --- /dev/null +++ b/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))