mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] phytool: Add new package
@ 2025-11-19  9:29 Alexander Dahl via ptxdist
  2025-12-04 13:14 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Dahl via ptxdist @ 2025-11-19  9:29 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

While the user interface is not intuitive at all, the tool gets the job
done of poking in PHY registers through MDIO.

Link: https://github.com/wkz/phytool
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/phytool.in   |  9 +++++++
 rules/phytool.make | 63 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 rules/phytool.in
 create mode 100644 rules/phytool.make

diff --git a/rules/phytool.in b/rules/phytool.in
new file mode 100644
index 000000000..95a64afd5
--- /dev/null
+++ b/rules/phytool.in
@@ -0,0 +1,9 @@
+## SECTION=networking
+
+config PHYTOOL
+	tristate
+	prompt "phytool"
+	help
+	  Linux MDIO register access
+
+# vim: ft=kconfig tw=80
diff --git a/rules/phytool.make b/rules/phytool.make
new file mode 100644
index 000000000..c38a2f19c
--- /dev/null
+++ b/rules/phytool.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PHYTOOL) += phytool
+
+#
+# Paths and names
+#
+PHYTOOL_VERSION	:= 2
+PHYTOOL_MD5	:= 972982f8e5f7237cbccfc6d275da7348
+PHYTOOL		:= phytool-$(PHYTOOL_VERSION)
+PHYTOOL_SUFFIX	:= tar.xz
+PHYTOOL_URL	:= https://github.com/wkz/phytool/releases/download/v$(PHYTOOL_VERSION)/$(PHYTOOL).$(PHYTOOL_SUFFIX)
+PHYTOOL_SOURCE	:= $(SRCDIR)/$(PHYTOOL).$(PHYTOOL_SUFFIX)
+PHYTOOL_DIR	:= $(BUILDDIR)/$(PHYTOOL)
+PHYTOOL_LICENSE	:= GPL-2.0-or-later
+PHYTOOL_LICENSE_FILES := \
+	file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PHYTOOL_CONF_TOOL	:= NO
+
+PHYTOOL_MAKE_ENV	:= $(CROSS_ENV)
+PHYTOOL_MAKE_OPT	:= \
+	PREFIX=/usr \
+	all
+
+PHYTOOL_INSTALL_OPT	:= \
+	PREFIX=/usr \
+	DESTDIR=$(PHYTOOL_PKGDIR) \
+	install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/phytool.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, phytool)
+	@$(call install_fixup, phytool,PRIORITY,optional)
+	@$(call install_fixup, phytool,SECTION,base)
+	@$(call install_fixup, phytool,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+	@$(call install_fixup, phytool,DESCRIPTION,missing)
+
+	@$(call install_copy, phytool, 0, 0, 0755, -, /usr/bin/phytool)
+
+	@$(call install_finish, phytool)
+
+	@$(call touch)
+
+# vim: ft=make

base-commit: 385f5478624d37733e102ee30b7f9ec434fc7c33
-- 
2.39.5




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

* Re: [ptxdist] [APPLIED] phytool: Add new package
  2025-11-19  9:29 [ptxdist] [PATCH] phytool: Add new package Alexander Dahl via ptxdist
@ 2025-12-04 13:14 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-12-04 13:14 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Dahl

Thanks, applied as cf6b6de3ea0fd239e3e1397123927468d1e0b35b.

Michael

[sent from post-receive hook]

On Thu, 04 Dec 2025 14:14:50 +0100, Alexander Dahl <ada@thorsis.com> wrote:
> While the user interface is not intuitive at all, the tool gets the job
> done of poking in PHY registers through MDIO.
> 
> Link: https://github.com/wkz/phytool
> Signed-off-by: Alexander Dahl <ada@thorsis.com>
> Message-Id: <20251119092959.50582-1-ada@thorsis.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/phytool.in b/rules/phytool.in
> new file mode 100644
> index 000000000000..95a64afd5545
> --- /dev/null
> +++ b/rules/phytool.in
> @@ -0,0 +1,9 @@
> +## SECTION=networking
> +
> +config PHYTOOL
> +	tristate
> +	prompt "phytool"
> +	help
> +	  Linux MDIO register access
> +
> +# vim: ft=kconfig tw=80
> diff --git a/rules/phytool.make b/rules/phytool.make
> new file mode 100644
> index 000000000000..c38a2f19cc80
> --- /dev/null
> +++ b/rules/phytool.make
> @@ -0,0 +1,63 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2025 by Alexander Dahl <ada@thorsis.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_PHYTOOL) += phytool
> +
> +#
> +# Paths and names
> +#
> +PHYTOOL_VERSION	:= 2
> +PHYTOOL_MD5	:= 972982f8e5f7237cbccfc6d275da7348
> +PHYTOOL		:= phytool-$(PHYTOOL_VERSION)
> +PHYTOOL_SUFFIX	:= tar.xz
> +PHYTOOL_URL	:= https://github.com/wkz/phytool/releases/download/v$(PHYTOOL_VERSION)/$(PHYTOOL).$(PHYTOOL_SUFFIX)
> +PHYTOOL_SOURCE	:= $(SRCDIR)/$(PHYTOOL).$(PHYTOOL_SUFFIX)
> +PHYTOOL_DIR	:= $(BUILDDIR)/$(PHYTOOL)
> +PHYTOOL_LICENSE	:= GPL-2.0-or-later
> +PHYTOOL_LICENSE_FILES := \
> +	file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PHYTOOL_CONF_TOOL	:= NO
> +
> +PHYTOOL_MAKE_ENV	:= $(CROSS_ENV)
> +PHYTOOL_MAKE_OPT	:= \
> +	PREFIX=/usr \
> +	all
> +
> +PHYTOOL_INSTALL_OPT	:= \
> +	PREFIX=/usr \
> +	DESTDIR=$(PHYTOOL_PKGDIR) \
> +	install
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/phytool.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, phytool)
> +	@$(call install_fixup, phytool,PRIORITY,optional)
> +	@$(call install_fixup, phytool,SECTION,base)
> +	@$(call install_fixup, phytool,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
> +	@$(call install_fixup, phytool,DESCRIPTION,missing)
> +
> +	@$(call install_copy, phytool, 0, 0, 0755, -, /usr/bin/phytool)
> +
> +	@$(call install_finish, phytool)
> +
> +	@$(call touch)
> +
> +# vim: ft=make



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

end of thread, other threads:[~2025-12-04 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-19  9:29 [ptxdist] [PATCH] phytool: Add new package Alexander Dahl via ptxdist
2025-12-04 13:14 ` [ptxdist] [APPLIED] " Michael Olbrich

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