diff options
| author | Tim Orling <tim.orling@konsulko.com> | 2026-04-07 13:42:15 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-04-12 13:53:29 +0000 |
| commit | 168afc8354c12bce93f4f916e87580e01ea83f4d (patch) | |
| tree | ab9f85eb4bceb585aaac0610dd541e64bb74a46d /scripts | |
| parent | b59fb87c0e991aa95f62627c3b2a606956ef6377 (diff) | |
| download | meta-virtualization-168afc8354c12bce93f4f916e87580e01ea83f4d.tar.gz | |
vcontainer-tarball: fix PACKAGE_ARCH for SPDX do_create_spdx
PACKAGE_ARCH must be "${SDK_ARCH}-${SDKPKGSUFFIX}" (e.g. x86_64-nativesdk)
to match the pattern explicitly listed in SSTATE_ARCHS in
meta/classes-global/sstate.bbclass.
do_create_recipe_spdx writes the static SPDX document under
DEPLOY_DIR_SPDX/${SSTATE_PKGARCH}/static/
where SSTATE_PKGARCH = PACKAGE_ARCH. do_create_spdx then calls
find_jsonld() which searches only the arch directories listed in
SPDX_MULTILIB_SSTATE_ARCHS (derived from SSTATE_ARCHS via
all_multilib_tune_values).
The previous value "${SDK_ARCH}_${SDK_OS}" evaluates to "x86_64_linux"
which is NOT listed in SSTATE_ARCHS, so the static document was written
to a directory never searched, causing the fatal:
ERROR: Could not find a static SPDX document named static-vcontainer-tarball
The correct value "${SDK_ARCH}-${SDKPKGSUFFIX}" evaluates to
"x86_64-nativesdk" which IS listed in SSTATE_ARCHS as the literal
"${SDK_ARCH}-${SDKPKGSUFFIX}" entry, and matches the pattern used by
buildtools-tarball.bb (the reference for host-only SDK tarballs with
TARGET_ARCH = "none" / TARGET_OS = "none").
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
