From c92409d3b4d199e897f5d28df5b7f3f3391007ac Mon Sep 17 00:00:00 2001 From: Joacim Zetterling Date: Wed, 21 Jun 2023 13:44:01 +0200 Subject: [PATCH] package: Add mdio tools package Signed-off-by: Joacim Zetterling --- package/Config.in | 1 + package/mdio-tools/Config.in | 12 ++++++++++++ package/mdio-tools/mdio-tools.mk | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 package/mdio-tools/Config.in create mode 100644 package/mdio-tools/mdio-tools.mk diff --git a/package/Config.in b/package/Config.in index 03107f3..548b623 100644 --- a/package/Config.in +++ b/package/Config.in @@ -4,6 +4,7 @@ source "$BR2_EXTERNAL_NETBOX_PATH/package/finit/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/libnsh/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/mcjoin/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/mdnsd/Config.in" +source "$BR2_EXTERNAL_NETBOX_PATH/package/mdio-tools/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/nemesis/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/querierd/Config.in" source "$BR2_EXTERNAL_NETBOX_PATH/package/skeleton-init-finit/Config.in" diff --git a/package/mdio-tools/Config.in b/package/mdio-tools/Config.in new file mode 100644 index 0000000..0e2482e --- /dev/null +++ b/package/mdio-tools/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_MDIO_TOOLS + bool "mdio-tools" + depends on BR2_PACKAGE_LIBMNL + help + Provides a low-level interface to MDIO buses on the + system. In contrast to similar tools, mdio-tools will + address the MDIO bus directly, without requiring a network + interface with a connection to that bus. It will also safely + perform operations that require executing multiple MDIO + accesses atomically. + + https://github.com/wkz/mdio-tools diff --git a/package/mdio-tools/mdio-tools.mk b/package/mdio-tools/mdio-tools.mk new file mode 100644 index 0000000..c73739e --- /dev/null +++ b/package/mdio-tools/mdio-tools.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# mdio-tools +# +################################################################################ + +MDIO_TOOLS_VERSION = 1.1.1 +MDIO_TOOLS_SOURCE = mdio-tools-$(MDIO_TOOLS_VERSION).tar.gz +MDIO_TOOLS_SITE = https://github.com/wkz/mdio-tools/releases/download/$(MDIO_TOOLS_VERSION) +MDIO_TOOLS_LICENSE = GPL-2.0 +MDIO_TOOLS_LICENSE_FILES = COPYING +MDIO_TOOLS_INSTALL_STAGING = YES + +MDIO_TOOLS_MODULE_SUBDIRS = kernel +MDIO_TOOLS_MODULE_MAKE_OPTS = KDIR=$(LINUX_DIR) + +$(eval $(kernel-module)) +$(eval $(autotools-package))