From: srinuvasan <
srinuv...@siemens.com>
Add a Built-Using field to the binary package stanza in the debian/control file,
since it is not provided by the upstream source
This ensures that the original source package reference
is captured in the generated SBOM file.
During the clearance process, we need to provide the original package URL for this custom package
By including the Built-Using field in debian/control,
debsbom can record the corresponding source package information in the SBOM file.
Signed-off-by: srinuvasan <
srinuv...@siemens.com>
---
meta-isar/recipes-installer/bmap-tools/
bmap-tools.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta-isar/recipes-installer/bmap-tools/
bmap-tools.bb b/meta-isar/recipes-installer/bmap-tools/
bmap-tools.bb
index 376ab433..537e40ce 100644
--- a/meta-isar/recipes-installer/bmap-tools/
bmap-tools.bb
+++ b/meta-isar/recipes-installer/bmap-tools/
bmap-tools.bb
@@ -13,9 +13,14 @@ SRC_URI += "file://0001-Fix-path-parameter-passing-error-of-set_psplash_pipe.pat
file://0002-Fix-_psplash_pipe-part-was-skipped-when-_progress_fi.patch;apply=no"
do_prepare_build:append() {
+ upstream_version=$(dpkg-parsechangelog -l ${S}/debian/changelog -S Version)
+
deb_add_changelog
cd ${S}
quilt import -f ${WORKDIR}/*.patch
quilt push -a
+ # Add Built-Using section
+ grep -q '^Built-Using: bmap-tools' debian/control || \
+ sed -i "/Package: bmap-tools$/a Built-Using: bmap-tools (= ${upstream_version})" debian/control
}
--
2.39.5