mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Jan Hrubes via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Jan Hrubes <jan.hrubes@racom.eu>
Subject: [ptxdist] [PATCH] spi-tools: new package
Date: Tue, 30 Jun 2026 09:31:55 +0200	[thread overview]
Message-ID: <20260630073155.3333561-1-jan.hrubes@racom.eu> (raw)

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




             reply	other threads:[~2026-06-30  7:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30  7:31 Jan Hrubes via ptxdist [this message]
2026-06-30 16:11 ` Christian Melki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260630073155.3333561-1-jan.hrubes@racom.eu \
    --to=ptxdist@pengutronix.de \
    --cc=jan.hrubes@racom.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox