]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
create-spdx-3.0/populate_sdk_base: Add SDK_CLASSES inherit mechanism to fix tarball...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Jul 2024 10:40:00 +0000 (11:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jul 2024 11:26:24 +0000 (12:26 +0100)
commit662396533177b72cc1d83e95841b27f7e42dcb20
treefb2003e33be0fcbb7e2d7f00338aa9b2faa3208d
parent92a9710ec88c8729fa3d83baa2e63dd74d95cdf8
create-spdx-3.0/populate_sdk_base: Add SDK_CLASSES inherit mechanism to fix tarball SPDX manifests

Currently, "tarball" sdk based recipes don't generate SPDX manifests as they
don't include the rootfs generation classes. Split the SPDX 3.0 image class into
two so the SDK components can be included where needed.

To do this, introduce an SDK_CLASSES variable similar to IMAGE_CLASSES which
the SDK code can use.

Migrate testsdk usage to this.

Also move the image/sdk spdx classes to classes-recipe rather than the general classes
directory since they'd never be included on a global level.

For buildtools-tarball, it has its own testsdk functions so disable the class there as
a deferred inherit would overwrite it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/create-spdx-image-3.0.bbclass [moved from meta/classes/create-spdx-image-3.0.bbclass with 53% similarity]
meta/classes-recipe/create-spdx-sdk-3.0.bbclass [new file with mode: 0644]
meta/classes-recipe/populate_sdk_base.bbclass
meta/classes-recipe/testimage.bbclass
meta/classes/create-spdx-3.0.bbclass
meta/recipes-core/meta/buildtools-tarball.bb