Skip to contentSkip to conversation

mdio-tools: add recipes

PATCH Superseded Potin Lai 2 participants 4 messages Jun 8, 2022 – Aug 22, 2022

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Potin Lai

author
#0 lore raw

PATCH v3 1/1 mdio-tools: add recipes

From: Enguerrand de Ribaucourt <[email protected]>

Self-description from the README: mdio-tools is a low-level debug tool for communicating with devices attached to an MDIO bus.

---

change v2 --> v3:
* update version to 1.1.1

change v1 --> v2:
* moved in recipes-support
* removed version in mdio-tools_1.0.1.inc filename

---
 .../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
meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file +13 -0
new file mode 100644
index 000000000..b50d33f90
@@ -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"
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +9 -0
new file mode 100644
index 000000000..a37500d93
@@ -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 = "GPLv2"
+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"
meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb new file +9 -0
new file mode 100644
index 000000000..cd4df3da0
@@ -0,0 +1,9 @@
+require mdio-tools.inc
+
+DEPENDS += "libmnl"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+
+RDEPENDS:${PN} = "kernel-module-mdio-netlink"
Signature · 1 line
2.17.1
#1 lore raw

This fails to build on master with latest linux-yocto for kernel.

https://errors.yoctoproject.org/Errors/Details/659130/

Quoted 90 lines · Potin Lai

From: Enguerrand de Ribaucourt <[email protected]>

Self-description from the README: mdio-tools is a low-level debug tool for communicating with devices attached to an MDIO bus.

---

change v2 --> v3:
* update version to 1.1.1

change v1 --> v2:
* moved in recipes-support
* removed version in mdio-tools_1.0.1.inc filename

---
 .../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
meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file +13 -0
new file mode 100644
index 000000000..b50d33f90
@@ -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"
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +9 -0
new file mode 100644
index 000000000..a37500d93
@@ -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 = "GPLv2"
+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"
meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb new file +9 -1
new file mode 100644
index 000000000..cd4df3da0
@@ -0,0 +1,9 @@
+require mdio-tools.inc
+
+DEPENDS += "libmnl"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+
+RDEPENDS:${PN} = "kernel-module-mdio-netlink"
--

2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#97444): https://lists.openembedded.org/g/openembedded-devel/message/97444
Mute This Topic: https://lists.openembedded.org/mt/91627189/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 3 lines · Khem Raj

This fails to build on master with latest linux-yocto for kernel.

https://errors.yoctoproject.org/Errors/Details/659130/

Hi Maintainer,

The kernel config for enable MDIO feature has merged into yocto-kernel-cache.

This patch should compiled for qemuarm by now, and I have tested with local build.
Just wondering that how to trigger patch merging process for this patch again? should I resend this patch with new version?

Thanks,
Potin

Quoted 90 lines · Potin Lai
Quoted 89 lines

From: Enguerrand de Ribaucourt <[email protected]>

Self-description from the README: mdio-tools is a low-level debug tool for communicating with devices attached to an MDIO bus.

---

change v2 --> v3:
* update version to 1.1.1

change v1 --> v2:
* moved in recipes-support
* removed version in mdio-tools_1.0.1.inc filename

---
 .../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
meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file +13 -0
new file mode 100644
index 000000000..b50d33f90
@@ -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"
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +9 -0
new file mode 100644
index 000000000..a37500d93
@@ -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 = "GPLv2"
+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"
meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb new file +9 -1
new file mode 100644
index 000000000..cd4df3da0
@@ -0,0 +1,9 @@
+require mdio-tools.inc
+
+DEPENDS += "libmnl"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+
+RDEPENDS:${PN} = "kernel-module-mdio-netlink"
--

2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#97444): https://lists.openembedded.org/g/openembedded-devel/message/97444
Mute This Topic: https://lists.openembedded.org/mt/91627189/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 12 lines · Potin Lai
Quoted 3 lines · Khem Raj

This fails to build on master with latest linux-yocto for kernel.

https://errors.yoctoproject.org/Errors/Details/659130/

Hi Maintainer,

The kernel config for enable MDIO feature has merged into yocto-kernel-cache.
LINK:
https://git.yoctoproject.org/yocto-kernel-cache/commit/?h=yocto-5.15&id=0d58e2d6a7824df62129af91bbe9fadfdb5f9dce

Quoted 4 lines

This patch should compiled for qemuarm by now, and I have tested with local build.
Just wondering that how to trigger patch merging process for this patch again? should I resend this patch with new version?

Yes please send a version tested with latest master of core metadata

Quoted 112 lines

Thanks,
Potin

Quoted 1 line

On Wed, Jun 8, 2022 at 12:39 PM Potin Lai <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line

From: Enguerrand de Ribaucourt <

[email protected]>

Quoted 5 lines
Quoted 5 lines

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 <

[email protected]>

Quoted 4 lines
Quoted 4 lines

---

LINK [v2]

https://lore.kernel.org/all/20220201142608.186135-1-enguerrand.de-ribaucourt@savoirfairelinux.com/

Quoted 1 line
Quoted 1 line
LINK [v1]

https://lore.kernel.org/all/20220107150722.2221609-1-enguerrand.de-ribaucourt@savoirfairelinux.com/

Quoted 8 lines
Quoted 8 lines

change v2 --> v3:
* update version to 1.1.1

change v1 --> v2:
* moved in recipes-support
* removed version in mdio-tools_1.0.1.inc filename

Quoted 6 lines
Quoted 6 lines
---
 .../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

Quoted 1 line
Quoted 1 line
 create mode 100644

meta-networking/recipes-support/mdio-tools/mdio-tools.inc

Quoted 1 line
Quoted 1 line
 create mode 100644 meta-networking/recipes-support/mdio-tools/

mdio-tools_git.bb

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

mdio-netlink_git.bb b/meta-networking/recipes-support/mdio-tools/ mdio-netlink_git.bb

Quoted 11 lines
Quoted 11 lines

new file mode 100644
index 000000000..b50d33f90

meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file +6 -0
@@ -0,0 +1,13 @@
+require mdio-tools.inc
+
+DEPENDS += "virtual/kernel libmnl"
+# This module requires Linux 5.6 higher
+
+S = "${WORKDIR}/git/kernel"
Quoted 8 lines

Review

Quoted 8 lines
meta-networking/recipes-support/mdio-tools/mdio-netlink_git.bb new file +7 -0
+
+inherit module
+
+EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR}"
+MODULES_INSTALL_TARGET = "install"
+
+RPROVIDES:${PN} += "kernel-module-mdio-netlink"
(quoted diff) +0 -0

b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc

Quoted 6 lines

meta-networking/recipes-support/mdio-tools/mdio-tools.inc line 1

Quoted 6 lines

new file mode 100644
index 000000000..a37500d93

meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +1 -0
@@ -0,0 +1,9 @@
+DESCRIPTION = "A low-level debug tool for communicating with devices

attached to an MDIO bus"

Quoted 4 lines

meta-networking/recipes-support/mdio-tools/mdio-tools.inc

Quoted 4 lines
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +4 -0
+SECTION = "networking"
+HOMEPAGE = "https://github.com/wkz/mdio-tools"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 2 lines

meta-networking/recipes-support/mdio-tools/mdio-tools.inc line 7

Quoted 2 lines
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +2 -0
+
+SRC_URI = "git://

github.com/wkz/mdio-tools.git;protocol=https;branch=master"

Quoted 3 lines

Review

Quoted 3 lines
meta-networking/recipes-support/mdio-tools/mdio-tools.inc new file +2 -0
+SRCREV = "07cbff2d5e2de05037e5e7edd5044d678394c8d1"
+PV = "1.1.1"
(quoted diff) +0 -0

mdio-tools_git.bb b/meta-networking/recipes-support/mdio-tools/ mdio-tools_git.bb

Quoted 18 lines
Quoted 18 lines

new file mode 100644
index 000000000..cd4df3da0

meta-networking/recipes-support/mdio-tools/mdio-tools_git.bb new file +9 -1
@@ -0,0 +1,9 @@
+require mdio-tools.inc
+
+DEPENDS += "libmnl"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig autotools
+
+RDEPENDS:${PN} = "kernel-module-mdio-netlink"
--

2.17.1

Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#97444):

https://lists.openembedded.org/g/openembedded-devel/message/97444

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/91627189/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub

[[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-