phytool: Refactor recipe

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

Signed-off-by: Ricardo Simoes <ricardo.simoes@pt.bosch.com>
Signed-off-by: Mark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Ricardo Simoes 2026-03-19 18:09:02 +01:00 committed by Khem Raj
parent 1e8706e728
commit b820ffae7f
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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() {