Skip to contentSkip to conversation

phytool: Update version and refactor

PATCH New [email protected] 1 participant 3 messages Mar 19

lore
Share & tools
lore
#0 lore raw

cover phytool: Update version and refactor

From: Mark Jonas <[email protected]>

This patchset refactors the phytool recipe to use the git version and updates it to the latest commit.

Ricardo Simoes (2):
phytool: Refactor recipe
phytool: Update to latest

 .../phytool/{phytool.bb => phytool_git.bb}                | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 rename meta-networking/recipes-support/phytool/{phytool.bb => phytool_git.bb} (63%)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 phytool: Refactor recipe

From: Ricardo Simoes <[email protected]>

This commit fixes a few issues with the phytool recipe:
- Missing "_git" suffix in the recipe name, as required by [1];
- Missing description, homepage, and bugtracker metadata [2]';
- Missing section metadata, which is improved package management [3];
- As defined by [4], the SRCREV should be defined after the SRC_URI.

[1] https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#recipe-naming-conventions
[2] https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#required-variables
[3] https://docs.yoctoproject.org/ref-manual/variables.html#term-SECTION
[4] https://docs.yoctoproject.org/contributor-guide/recipe-style-guide.html#recipe-ordering

---
 .../phytool/{phytool.bb => phytool_git.bb}                | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
 rename meta-networking/recipes-support/phytool/{phytool.bb => phytool_git.bb} (71%)
meta-networking/recipes-support/phytool/phytool_git.bb renamed from meta-networking/recipes-support/phytool/phytool.bb +6 -2
similarity index 71%
rename from meta-networking/recipes-support/phytool/phytool.bb
rename to meta-networking/recipes-support/phytool/phytool_git.bb
index 6471f46c28..8a141358e7 100644
@@ -1,11 +1,15 @@
 SUMMARY = "PHY interface tool for Linux"
+DESCRIPTION = "A tool to read and write PHY registers on Linux."
+HOMEPAGE = "https://github.com/wkz/phytool"
+BUGTRACKER = "https://github.com/wkz/phytool/issues"
+SECTION = "console/network"
+
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
 
 PV = "2+git"
-SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c"
 SRC_URI = "git://github.com/wkz/phytool.git;branch=master;protocol=https"
-
+SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c"
 
 # The Makefile has "$PREFIX/bin" hardcoded into it, hence not using $bindir here
 do_install() {
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 phytool: Update to latest

In reply to [email protected]

From: Ricardo Simoes <[email protected]>

Changelog:
- Add man pages and adjust Makefile for man pages
- Avoid %#x printf pattern

---
 meta-networking/recipes-support/phytool/phytool_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-support/phytool/phytool_git.bb +1 -1
index 8a141358e7..35d11f8516 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0"
 
 PV = "2+git"
 SRC_URI = "git://github.com/wkz/phytool.git;branch=master;protocol=https"
-SRCREV = "8882328c08ba2efb13c049812098f1d0cb8adf0c"
+SRCREV = "bcf23b0261aa9f352ee4b944e30e3482158640a4"
 
 # The Makefile has "$PREFIX/bin" hardcoded into it, hence not using $bindir here
 do_install() {
Signature · 1 line
2.34.1