package: Add iotools package
PATCH 1/1 package: Add iotools package
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.
--- 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
DEVELOPERS +1 -0
@@ -230,6 +230,7 @@ F: package/sysdig/ N: Andy Shevchenko <[email protected]> F: package/fb-test-app/ +F: package/iotools/ N: Anisse Astier <[email protected]> F: package/go/
package/Config.in +1 -0
@@ -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"
package/iotools/Config.in new file +14 -0
@@ -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
package/iotools/iotools.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 13b8b87c7d1f22b8d8f50c499af09f9414a0879d69c22393f1051ed4bf28f378 iotools-v1.7.tar.gz +sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
package/iotools/iotools.mk new file +21 -0
@@ -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))
Signature · 6 lines
2.43.0.rc1.1336.g36b5255a03ac _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Andy,
package/iotools/iotools.mk line 18
Quoted 3 lines · Andy Shevchenko
package/iotools/iotools.mk new file +3
-0+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
Quoted 3 lines
package/iotools/iotools.mk new file +3
-0+endef + +$(eval $(generic-package))
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot+Cc: Arnout (see below why)
Quoted 1 line · Baruch Siach via buildroot
On Wed, Sep 25 2024, Andy Shevchenko wrote:
...
Quoted 4 lines
package/iotools/iotools.mk line 18
Quoted 1 line
package/iotools/iotools.mk new file +1
-0+ $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotoolsBuildroot 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/[email protected]
Signature · 8 lines
With Best Regards, Andy Shevchenko _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Baruch Siach via buildroot
On Wed, Sep 25 2024, Andy Shevchenko wrote:
...
Quoted 6 lines
Quoted 4 lines
package/iotools/iotools.mk line 18
Quoted 1 line
package/iotools/iotools.mk new file +1
-0+ $(TARGET_STRIP) $(TARGET_DIR)/usr/bin/iotoolsBuildroot 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!
Signature · 8 lines
With Best Regards, Andy Shevchenko _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot