mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] spi-tools: new package
@ 2026-06-30  7:31 Jan Hrubes via ptxdist
  2026-06-30 16:11 ` Christian Melki
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Hrubes via ptxdist @ 2026-06-30  7:31 UTC (permalink / raw)
  To: ptxdist; +Cc: Jan Hrubes

Signed-off-by: Jan Hrubes <jan.hrubes@racom.eu>
---
 rules/spi-tools.in   |  7 ++++++
 rules/spi-tools.make | 54 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 rules/spi-tools.in
 create mode 100644 rules/spi-tools.make

diff --git a/rules/spi-tools.in b/rules/spi-tools.in
new file mode 100644
index 000000000..1b1bee2e8
--- /dev/null
+++ b/rules/spi-tools.in
@@ -0,0 +1,7 @@
+## SECTION=shell_and_console
+config SPI_TOOLS
+	tristate
+	select HOST_CMAKE
+	prompt "spi-tools"
+	help
+	  Simple command line tools to help using Linux spidev devices.
diff --git a/rules/spi-tools.make b/rules/spi-tools.make
new file mode 100644
index 000000000..7790d39e2
--- /dev/null
+++ b/rules/spi-tools.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Jan Hrubes <jan.hrubes@racom.eu>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SPI_TOOLS) += spi-tools
+
+#
+# Paths and names
+#
+SPI_TOOLS_VERSION	:= 1.1.0
+SPI_TOOLS_SHA256	:= ef6def46ef1438640001ea3c4c80f1c7adca303f30236a380ba57becda438b0b
+SPI_TOOLS		:= spi-tools-$(SPI_TOOLS_VERSION)
+SPI_TOOLS_SUFFIX	:= tar.gz
+SPI_TOOLS_URL	:= https://github.com/cpb-/spi-tools/archive/refs/tags/$(SPI_TOOLS_VERSION).$(SPI_TOOLS_SUFFIX)
+SPI_TOOLS_SOURCE	:= $(SRCDIR)/$(SPI_TOOLS).$(SPI_TOOLS_SUFFIX)
+SPI_TOOLS_DIR	:= $(BUILDDIR)/$(SPI_TOOLS)
+SPI_TOOLS_LICENSE	:= GPL-2.0-only
+SPI_TOOLS_LICENSE_FILES := \
+	file://LICENSE;md5=8c16666ae6c159876a0ba63099614381
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SPI_TOOLS_CONF_TOOL	:= cmake
+SPI_TOOLS_CONF_OPT	:= $(CROSS_CMAKE_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/spi-tools.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, spi-tools)
+	@$(call install_fixup, spi-tools,PRIORITY,optional)
+	@$(call install_fixup, spi-tools,SECTION,base)
+	@$(call install_fixup, spi-tools,AUTHOR,"Jan Hrubes <jan.hrubes@racom.eu>")
+	@$(call install_fixup, spi-tools,DESCRIPTION,spidev tools)
+
+	@$(call install_copy, spi-tools, 0, 0, 0755, -, /usr/bin/spi-config)
+	@$(call install_copy, spi-tools, 0, 0, 0755, -, /usr/bin/spi-pipe)
+
+	@$(call install_finish, spi-tools)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.43.0




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] spi-tools: new package
  2026-06-30  7:31 [ptxdist] [PATCH] spi-tools: new package Jan Hrubes via ptxdist
@ 2026-06-30 16:11 ` Christian Melki
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Melki @ 2026-06-30 16:11 UTC (permalink / raw)
  To: ptxdist

Hi Jan.

I looked at the code.
Doesn't seem like it's worth a package tbh.
It also contains some strange ideas about what a spidev is.

Idk. I'll let someone else decide.

Regards,
Christian

On 6/30/26 9:31 AM, Jan Hrubes via ptxdist wrote:
> Signed-off-by: Jan Hrubes <jan.hrubes@racom.eu>
> ---
>  rules/spi-tools.in   |  7 ++++++
>  rules/spi-tools.make | 54 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 61 insertions(+)
>  create mode 100644 rules/spi-tools.in
>  create mode 100644 rules/spi-tools.make
> 
> diff --git a/rules/spi-tools.in b/rules/spi-tools.in
> new file mode 100644
> index 000000000..1b1bee2e8
> --- /dev/null
> +++ b/rules/spi-tools.in
> @@ -0,0 +1,7 @@
> +## SECTION=shell_and_console
> +config SPI_TOOLS
> +	tristate
> +	select HOST_CMAKE
> +	prompt "spi-tools"
> +	help
> +	  Simple command line tools to help using Linux spidev devices.
> diff --git a/rules/spi-tools.make b/rules/spi-tools.make
> new file mode 100644
> index 000000000..7790d39e2
> --- /dev/null
> +++ b/rules/spi-tools.make
> @@ -0,0 +1,54 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2026 by Jan Hrubes <jan.hrubes@racom.eu>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SPI_TOOLS) += spi-tools
> +
> +#
> +# Paths and names
> +#
> +SPI_TOOLS_VERSION	:= 1.1.0
> +SPI_TOOLS_SHA256	:= ef6def46ef1438640001ea3c4c80f1c7adca303f30236a380ba57becda438b0b
> +SPI_TOOLS		:= spi-tools-$(SPI_TOOLS_VERSION)
> +SPI_TOOLS_SUFFIX	:= tar.gz
> +SPI_TOOLS_URL	:= https://github.com/cpb-/spi-tools/archive/refs/tags/$(SPI_TOOLS_VERSION).$(SPI_TOOLS_SUFFIX)
> +SPI_TOOLS_SOURCE	:= $(SRCDIR)/$(SPI_TOOLS).$(SPI_TOOLS_SUFFIX)
> +SPI_TOOLS_DIR	:= $(BUILDDIR)/$(SPI_TOOLS)
> +SPI_TOOLS_LICENSE	:= GPL-2.0-only
> +SPI_TOOLS_LICENSE_FILES := \
> +	file://LICENSE;md5=8c16666ae6c159876a0ba63099614381
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +SPI_TOOLS_CONF_TOOL	:= cmake
> +SPI_TOOLS_CONF_OPT	:= $(CROSS_CMAKE_USR)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/spi-tools.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, spi-tools)
> +	@$(call install_fixup, spi-tools,PRIORITY,optional)
> +	@$(call install_fixup, spi-tools,SECTION,base)
> +	@$(call install_fixup, spi-tools,AUTHOR,"Jan Hrubes <jan.hrubes@racom.eu>")
> +	@$(call install_fixup, spi-tools,DESCRIPTION,spidev tools)
> +
> +	@$(call install_copy, spi-tools, 0, 0, 0755, -, /usr/bin/spi-config)
> +	@$(call install_copy, spi-tools, 0, 0, 0755, -, /usr/bin/spi-pipe)
> +
> +	@$(call install_finish, spi-tools)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-30 16:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-30  7:31 [ptxdist] [PATCH] spi-tools: new package Jan Hrubes via ptxdist
2026-06-30 16:11 ` Christian Melki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox