From 821e2e0cdf582c5079170a90dff4358fa2cac103 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Mon, 22 Aug 2022 05:44:31 +0000 Subject: [PATCH] mdio-tools: add recipes Self-description from the README: mdio-tools is a low-level debug tool for communicating with devices attached to an MDIO bus. Signed-off-by: Enguerrand de Ribaucourt Signed-off-by: Potin Lai Signed-off-by: Khem Raj --- .../recipes-support/mdio-tools/mdio-netlink_git.bb | 13 +++++++++++++ .../recipes-support/mdio-tools/mdio-tools.inc | 9 +++++++++ .../recipes-support/mdio-tools/mdio-tools_git.bb | 9 +++++++++ 3 files changed, 31 insertions(+) create mode 100644 meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb create mode 100644 meta-networking/recipes-support/mdio-tools/mdio-tools.inc create mode 100644 meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb diff --git a/meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb b/meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file mode 100644 index 0000000000..b50d33f908 --- /dev/null +++ b/meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb @@ -0,0 +1,13 @@ +require mdio-tools.inc + +DEPENDS += "virtual/kernel libmnl" +# This module requires Linux 5.6 higher + +S = "${WORKDIR}/git/kernel" + +inherit module + +EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR}" +MODULES_INSTALL_TARGET = "install" + +RPROVIDES:${PN} += "kernel-module-mdio-netlink" diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools.inc b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file mode 100644 index 0000000000..a8a435fadd --- /dev/null +++ b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc @@ -0,0 +1,9 @@ +DESCRIPTION = "A low-level debug tool for communicating with devices attached to an MDIO bus" +SECTION = "networking" +HOMEPAGE = "https://github.com/wkz/mdio-tools" +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = "git://github.com/wkz/mdio-tools.git;protocol=https;branch=master" +SRCREV = "07cbff2d5e2de05037e5e7edd5044d678394c8d1" +PV = "1.1.1" diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb b/meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb new file mode 100644 index 0000000000..cd4df3da05 --- /dev/null +++ b/meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb @@ -0,0 +1,9 @@ +require mdio-tools.inc + +DEPENDS += "libmnl" + +S = "${WORKDIR}/git" + +inherit pkgconfig autotools + +RDEPENDS:${PN} = "kernel-module-mdio-netlink"