* [Buildroot] [PATCH v1 1/1] package: Add iotools package
@ 2024-09-25 20:55 Andy Shevchenko
2024-09-26 4:48 ` Baruch Siach via buildroot
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2024-09-25 20:55 UTC (permalink / raw)
To: buildroot; +Cc: Andy Shevchenko, Andy Yan, Andy Yan
The iotools package provides a set of simple command line tools which
allow access to hardware device registers. Supported register interfaces
include PCI, IO, memory mapped IO, SMBus, CPUID, and MSR. Also included
are some utilities which allow for simple arithmetic, logical, and other
operations.
If you ever have to debug hardware, you could probably use these tools.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/iotools/Config.in | 14 ++++++++++++++
package/iotools/iotools.hash | 3 +++
package/iotools/iotools.mk | 21 +++++++++++++++++++++
5 files changed, 40 insertions(+)
create mode 100644 package/iotools/Config.in
create mode 100644 package/iotools/iotools.hash
create mode 100644 package/iotools/iotools.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index c3b1d66b016b..158313be9335 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -230,6 +230,7 @@ F: package/sysdig/
N: Andy Shevchenko <andy.shevchenko@gmail.com>
F: package/fb-test-app/
+F: package/iotools/
N: Anisse Astier <anisse@astier.eu>
F: package/go/
diff --git a/package/Config.in b/package/Config.in
index 5f88d1af4a73..fb90b5e273d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -535,6 +535,7 @@ endmenu
source "package/i7z/Config.in"
source "package/input-event-daemon/Config.in"
source "package/intel-microcode/Config.in"
+ source "package/iotools/Config.in"
source "package/ipmitool/Config.in"
source "package/ipmiutil/Config.in"
source "package/irda-utils/Config.in"
diff --git a/package/iotools/Config.in b/package/iotools/Config.in
new file mode 100644
index 000000000000..ffa1a3666738
--- /dev/null
+++ b/package/iotools/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_IOTOOLS
+ bool "iotools"
+ help
+ Tools for poking all types of IO, supported are:
+ - CMOS NVRAM (via /dev/nvram)
+ - CPU ID (x86)
+ - IO port (x86, PowerPC)
+ - MMIO
+ - MSR (x86)
+ - PCI configuration space
+ - SCOM (PowerPC)
+ - SMBus
+
+ https://github.com/andy-shev/iotools
diff --git a/package/iotools/iotools.hash b/package/iotools/iotools.hash
new file mode 100644
index 000000000000..11d7ffb73e39
--- /dev/null
+++ b/package/iotools/iotools.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 13b8b87c7d1f22b8d8f50c499af09f9414a0879d69c22393f1051ed4bf28f378 iotools-v1.7.tar.gz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
diff --git a/package/iotools/iotools.mk b/package/iotools/iotools.mk
new file mode 100644
index 000000000000..6490b0cde912
--- /dev/null
+++ b/package/iotools/iotools.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# iotools
+#
+################################################################################
+
+IOTOOLS_VERSION = v1.7
+IOTOOLS_SITE = $(call github,andy-shev,iotools,$(IOTOOLS_VERSION))
+IOTOOLS_LICENSE = GPL-2.0+
+IOTOOLS_LICENSE_FILES = COPYING
+
+define IOTOOLS_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CROSS_COMPILE=$(TARGET_CROSS) all
+endef
+
+define IOTOOLS_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -t $(TARGET_DIR)/usr/bin -D $(@D)/iotools
+ $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotools
+endef
+
+$(eval $(generic-package))
--
2.43.0.rc1.1336.g36b5255a03ac
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] package: Add iotools package
2024-09-25 20:55 [Buildroot] [PATCH v1 1/1] package: Add iotools package Andy Shevchenko
@ 2024-09-26 4:48 ` Baruch Siach via buildroot
2024-09-27 13:23 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Baruch Siach via buildroot @ 2024-09-26 4:48 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Andy Yan, Andy Yan, buildroot
Hi Andy,
On Wed, Sep 25 2024, Andy Shevchenko wrote:
> +define IOTOOLS_INSTALL_TARGET_CMDS
> + $(INSTALL) -m 0755 -t $(TARGET_DIR)/usr/bin -D $(@D)/iotools
> + $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotools
Buildroot target-finalize strips all target binaries (lookup $(STRIPCMD)
in top Makefile). Doesn't that work for you?
baruch
> +endef
> +
> +$(eval $(generic-package))
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] package: Add iotools package
2024-09-26 4:48 ` Baruch Siach via buildroot
@ 2024-09-27 13:23 ` Andy Shevchenko
2024-09-27 18:07 ` Andy Shevchenko
0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2024-09-27 13:23 UTC (permalink / raw)
To: Baruch Siach, Arnout Vandecappelle; +Cc: buildroot, Andy Yan, Andy Yan
+Cc: Arnout (see below why)
On Thu, Sep 26, 2024 at 07:48:23AM +0300, Baruch Siach via buildroot wrote:
> On Wed, Sep 25 2024, Andy Shevchenko wrote:
...
> > + $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotools
>
> Buildroot target-finalize strips all target binaries (lookup $(STRIPCMD)
> in top Makefile). Doesn't that work for you?
Lemme check this.
Arnout, I think that the package from [1] intersects with this one, and
the latter has better feature list along with clear licensing. I think
that concentrating on it is better than spreading resources on two, one
of which is a small part of the other (feature wise).
[1]: https://lore.kernel.org/r/20240924110345.34659-1-andyshrk@163.com
--
With Best Regards,
Andy Shevchenko
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH v1 1/1] package: Add iotools package
2024-09-27 13:23 ` Andy Shevchenko
@ 2024-09-27 18:07 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2024-09-27 18:07 UTC (permalink / raw)
To: Baruch Siach, Arnout Vandecappelle; +Cc: Andy Yan, Andy Yan, buildroot
On Fri, Sep 27, 2024 at 04:23:13PM +0300, Andy Shevchenko wrote:
> On Thu, Sep 26, 2024 at 07:48:23AM +0300, Baruch Siach via buildroot wrote:
> > On Wed, Sep 25 2024, Andy Shevchenko wrote:
...
> > > + $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotools
> >
> > Buildroot target-finalize strips all target binaries (lookup $(STRIPCMD)
> > in top Makefile). Doesn't that work for you?
>
> Lemme check this.
Okay, seems working for me. I will update this in v2.
Thank you for the review!
--
With Best Regards,
Andy Shevchenko
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-27 18:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 20:55 [Buildroot] [PATCH v1 1/1] package: Add iotools package Andy Shevchenko
2024-09-26 4:48 ` Baruch Siach via buildroot
2024-09-27 13:23 ` Andy Shevchenko
2024-09-27 18:07 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox