Skip to contentSkip to conversation

phytool: Add recipe

PATCH Superseded Mike Looijmans 2 participants 5 messages Oct 6, 2016 – Oct 7, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 phytool: Add recipe

A nice tool to directly read, write and interpret ethernet PHY data. Very useful when debugging PHY or MDIO problems, which ethtool does not do.

---
v3: Add SRCPV to PV
Indent using spaces instead of tab
v2: Fix LICENSE filename and checksum
Honor LDFLAGS value (patch accepted upstream)

 meta-networking/recipes-support/phytool/phytool.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-networking/recipes-support/phytool/phytool.bb
meta-networking/recipes-support/phytool/phytool.bb new file +14 -0
new file mode 100644
index 0000000..e4391df
@@ -0,0 +1,14 @@
+SUMMARY = "PHY interface tool for Linux"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
+
+PV = "1.0.1+git${SRCPV}"
+SRCREV = "3149bfdb4f513e2f0da0a7d0bc5d0873578696f2"
+SRC_URI = "git://github.com/wkz/phytool.git"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${prefix}/bin
+    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
+}
Signature · 1 line
1.9.1
#1 lore raw

Op 06-10-16 om 07:59 schreef Mike Looijmans:

Quoted 22 lines

A nice tool to directly read, write and interpret ethernet PHY data. Very useful when debugging PHY or MDIO problems, which ethtool does not do.

---
v3: Add SRCPV to PV
Indent using spaces instead of tab
v2: Fix LICENSE filename and checksum
Honor LDFLAGS value (patch accepted upstream)

 meta-networking/recipes-support/phytool/phytool.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-networking/recipes-support/phytool/phytool.bb
meta-networking/recipes-support/phytool/phytool.bb new file +2 -0
new file mode 100644
index 0000000..e4391df
@@ -0,0 +1,14 @@
+SUMMARY = "PHY interface tool for Linux"
+LICENSE = "GPLv2"

meta-networking/recipes-support/phytool/phytool.bb line 12

Quoted 10 lines
meta-networking/recipes-support/phytool/phytool.bb new file +10 -0
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
+
+PV = "1.0.1+git${SRCPV}"
+SRCREV = "3149bfdb4f513e2f0da0a7d0bc5d0873578696f2"
+SRC_URI = "git://github.com/wkz/phytool.git"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${prefix}/bin

${D}${bindir}

Quoted 3 lines
meta-networking/recipes-support/phytool/phytool.bb new file +2 -0
+    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
+}
#2 lore raw
Quoted 27 lines · Koen Kooi

Op 06-10-16 om 07:59 schreef Mike Looijmans:

Quoted 26 lines

A nice tool to directly read, write and interpret ethernet PHY data. Very useful when debugging PHY or MDIO problems, which ethtool does not do.

---
v3: Add SRCPV to PV
Indent using spaces instead of tab
v2: Fix LICENSE filename and checksum
Honor LDFLAGS value (patch accepted upstream)

 meta-networking/recipes-support/phytool/phytool.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-networking/recipes-support/phytool/phytool.bb
meta-networking/recipes-support/phytool/phytool.bb new file +6 -0
new file mode 100644
index 0000000..e4391df
@@ -0,0 +1,14 @@
+SUMMARY = "PHY interface tool for Linux"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
+
+PV = "1.0.1+git${SRCPV}"
+SRCREV = "3149bfdb4f513e2f0da0a7d0bc5d0873578696f2"
Quoted 8 lines

meta-networking/recipes-support/phytool/phytool.bb line 12

Quoted 6 lines
meta-networking/recipes-support/phytool/phytool.bb new file +6 -0
+SRC_URI = "git://github.com/wkz/phytool.git"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${prefix}/bin

${D}${bindir}

The makefile installs to $PREFIX/bin so I deliberately put the same folder in the recipe (the makefile doesn't create the directory). If anyone changes $bindir the install will fail.

I see I need to add a comment to explain that.

Quoted 5 lines

meta-networking/recipes-support/phytool/phytool.bb line 14

Quoted 3 lines
meta-networking/recipes-support/phytool/phytool.bb new file +2 -0
+    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
+}

Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail

#3 lore raw

PATCH v4 1/1 phytool: Add recipe

In reply to Koen Kooi

A nice tool to directly read, write and interpret ethernet PHY data. Very useful when debugging PHY or MDIO problems, which ethtool does not do.

---
v4: Add comment on why $bindir is not being used
v3: Add SRCPV to PV
Indent using spaces instead of tab
v2: Fix LICENSE filename and checksum
Honor LDFLAGS value (patch accepted upstream)

 meta-networking/recipes-support/phytool/phytool.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-networking/recipes-support/phytool/phytool.bb
meta-networking/recipes-support/phytool/phytool.bb new file +14 -0
new file mode 100644
index 0000000..e4391df
@@ -0,0 +1,14 @@
+SUMMARY = "PHY interface tool for Linux"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
+
+PV = "1.0.1+git${SRCPV}"
+SRCREV = "3149bfdb4f513e2f0da0a7d0bc5d0873578696f2"
+SRC_URI = "git://github.com/wkz/phytool.git"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    install -d ${D}${prefix}/bin
+    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
+}
Signature · 1 line
1.9.1
#4 lore raw

PATCH v5 1/1 phytool: Add recipe

In reply to Koen Kooi

A nice tool to directly read, write and interpret ethernet PHY data. Very useful when debugging PHY or MDIO problems, which ethtool does not do.

---
v5: Correct revision, v4 got sent with the v3 patch contents
v4: Add comment on why $bindir is not being used
v3: Add SRCPV to PV
Indent using spaces instead of tab
v2: Fix LICENSE filename and checksum
Honor LDFLAGS value (patch accepted upstream)

 meta-networking/recipes-support/phytool/phytool.bb | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-networking/recipes-support/phytool/phytool.bb
meta-networking/recipes-support/phytool/phytool.bb new file +15 -0
new file mode 100644
index 0000000..4ed3ed1
@@ -0,0 +1,15 @@
+SUMMARY = "PHY interface tool for Linux"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
+
+PV = "1.0.1+git${SRCPV}"
+SRCREV = "3149bfdb4f513e2f0da0a7d0bc5d0873578696f2"
+SRC_URI = "git://github.com/wkz/phytool.git"
+
+S = "${WORKDIR}/git"
+
+# The Makefile has "$PREFIX/bin" hardcoded into it, hence not using $bindir here
+do_install() {
+    install -d ${D}${prefix}/bin
+    oe_runmake 'DESTDIR=${D}' 'PREFIX=${prefix}' install
+}
Signature · 1 line
1.9.1