Skip to content

Commit

Permalink
package: Add mdio tools package
Browse files Browse the repository at this point in the history
Signed-off-by: Joacim Zetterling <[email protected]>
  • Loading branch information
joazet committed Jun 21, 2023
1 parent 30ddedd commit c92409d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
12 changes: 12 additions & 0 deletions package/mdio-tools/Config.in
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions package/mdio-tools/mdio-tools.mk
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit c92409d

Please sign in to comment.