From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 19 Nov 2025 10:30:13 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLeVx-002c6W-0M for lore@lore.pengutronix.de; Wed, 19 Nov 2025 10:30:13 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vLeVw-0000lJ-UC; Wed, 19 Nov 2025 10:30:12 +0100 Received: from mail.thorsis.com ([2003:a:e28:26e4::10]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vLeVq-0000ke-86 for ptxdist@pengutronix.de; Wed, 19 Nov 2025 10:30:06 +0100 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EC7021480418 for ; Wed, 19 Nov 2025 10:30:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1763544605; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=AKRQzMjcj3NKaN0bs1Z8vBtv8HqJ4t7FT0mpOI2QSZA=; b=rcW+YjqdB6p8x7kiBMj1OPoyrWRYOUIvwyKF5djFnEGIuiBA85dK6Ps+JwWA6qwSwBPJ4M 6cg/tiLiduUiJFy5FUdaURJT0M1Oq/tJK56ZoY/Jkn3aYYYCFp41WPLwTqqwxFXNVwy5TT OomSP6GNiiB42QIs84o6VDv+XgNCBaoWFPc66t7lwmhwwLRnV9CEGSzP8LD4SE3k+vKzac UEGYCu+M2idftx/yKfsvlVLlrL2F22lFBMwemZjjQLJrqh6FLMBTRaWb2CMzt63Qu9WP// Vh8AF0bHfzdShT5zURQjrdm+4kIoZDQd5LQw3W9GhIIwvoKcMBJr4lpOaHYwWw== To: ptxdist@pengutronix.de Date: Wed, 19 Nov 2025 10:29:59 +0100 Message-Id: <20251119092959.50582-1-ada@thorsis.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] phytool: Add new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Alexander Dahl via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false 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 --- 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 +# +# 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 ") + @$(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