Signed-off-by: Jan Hrubes <[email protected]> --- 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 <[email protected]> +# +# 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 <[email protected]>") + @$(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
