Skip to content

Commit

Permalink
genimage: enable upstream check
Browse files Browse the repository at this point in the history
This sets UPSTREAM_CHECK_REGEX properly.
Despite the 'github-releases' classes defaults dot not really meet the
requirements of genimage, use it to document it uses releases from
GitHub and potentially benefit from further extensions.

The default UPSTREAM_CHECK_REGEX does not work for us since it expects
at least a minor version delimited by a dot.

The regex used here is exactly the same as the default, with just the
'+' after '(\.\d+)' replaced by a '*' to make the minor version
optional.

Signed-off-by: Enrico Jörns <[email protected]>
  • Loading branch information
ejoerns committed Jul 16, 2024
1 parent fdcec94 commit b13b7a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes-devtools/genimage/genimage.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

DEPENDS = "confuse"

SRC_URI = "https://github.com/pengutronix/genimage/releases/download/v${PV}/genimage-${PV}.tar.xz"
SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/genimage-${PV}.tar.xz"

EXTRA_OECONF = "--enable-largefile"

inherit pkgconfig autotools gettext
inherit pkgconfig autotools gettext github-releases

GITHUB_BASE_URI = "https://github.com/pengutronix/genimage/releases"
UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)*)"

BBCLASSEXTEND = "native nativesdk"

0 comments on commit b13b7a4

Please sign in to comment.