]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/create-spdx-2.2: Use hashfn from BB_TASKDEPDATA instead of MACHINE
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 30 May 2023 15:11:48 +0000 (10:11 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Jun 2023 14:16:37 +0000 (15:16 +0100)
commit51049cde0cf477f7988b94c1041eb33b018a669f
tree6fcfd8cc01c265f1f51b070fc0fbc6f3c2978bbc
parent919079de918b6608fb9fa976eea0fe8b5b1359f6
classes/create-spdx-2.2: Use hashfn from BB_TASKDEPDATA instead of MACHINE

Enabling the SPDX class and running two builds, one with SDKMACHINE=i686
and then again with SDKMACHINE=x86_64 would lead to errors since the output
was stored per MACHINE and the overlapping files would cause manifest errors.

The hashfn data from bitbake has SSTATE_PKGARCH encoded into it which is how
sstate separates out it's targets and SDPX should be using the same structure.
Therefore switch to using this.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-2.2.bbclass
meta/lib/oe/sbom.py