build: fix version info in cyclonedx sbom
authorAkshay Bhat <nodeax@gmail.com>
Fri, 19 Apr 2024 18:26:45 +0000 (11:26 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 25 May 2024 17:27:06 +0000 (19:27 +0200)
commitd8939ff2d5daac4eb3ff932f38ea9d63e091697a
treef3ed35e44d819152d76174e52c7dc930f87dd133
parent85f6f882232367b64c7933fb4856fdf4999c6aae
build: fix version info in cyclonedx sbom

Prior e8725a932e16eaf6ec51add8c084d959cbe32ff2, version used to be
VERSION:=$(PKG_VERSION)-$(PKG_RELEASE)
After e8725a932e16eaf6ec51add8c084d959cbe32ff2, the version is:
VERSION:=$(PKG_VERSION)-r$(PKG_RELEASE)

Hence the gen_*_cyclonedxsbom functions need to be updated to remove
the trailing -r prefix in the version in order to generate correct
version info in the SBOM.

Signed-off-by: Akshay Bhat <nodeax@gmail.com>
scripts/package-metadata.pl