diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2024-07-03 07:59:22 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:31 +0100 |
| commit | f72d264226364a874835fa526ebf31c4a1e05911 (patch) | |
| tree | 4fc906c051dcef6175bcc78e7c8c5761b60287bd /meta | |
| parent | 26038959319c0b8b3098afdc5d39a4ddfb31a500 (diff) | |
| download | poky-f72d264226364a874835fa526ebf31c4a1e05911.tar.gz | |
classes-recipe: nospdx: Add class
Adds a class that allows recipes to opt out of generating SPDX
(From OE-Core rev: 170277da0dc34e3f797451473ebfbde82922f593)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/nospdx.bbclass | 13 | ||||
| -rw-r--r-- | meta/recipes-core/meta/build-sysroots.bb | 5 | ||||
| -rw-r--r-- | meta/recipes-core/meta/meta-world-pkgdata.bb | 3 |
3 files changed, 15 insertions, 6 deletions
diff --git a/meta/classes-recipe/nospdx.bbclass b/meta/classes-recipe/nospdx.bbclass new file mode 100644 index 0000000000..b20e28218b --- /dev/null +++ b/meta/classes-recipe/nospdx.bbclass | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | deltask do_collect_spdx_deps | ||
| 8 | deltask do_create_spdx | ||
| 9 | deltask do_create_spdx_runtime | ||
| 10 | deltask do_create_package_spdx | ||
| 11 | deltask do_create_rootfs_spdx | ||
| 12 | deltask do_create_image_spdx | ||
| 13 | deltask do_create_image_sbom | ||
diff --git a/meta/recipes-core/meta/build-sysroots.bb b/meta/recipes-core/meta/build-sysroots.bb index db05c111ab..b0b8fb3c79 100644 --- a/meta/recipes-core/meta/build-sysroots.bb +++ b/meta/recipes-core/meta/build-sysroots.bb | |||
| @@ -7,7 +7,7 @@ STANDALONE_SYSROOT_NATIVE = "${STAGING_DIR}/${BUILD_ARCH}" | |||
| 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 8 | EXCLUDE_FROM_WORLD = "1" | 8 | EXCLUDE_FROM_WORLD = "1" |
| 9 | 9 | ||
| 10 | inherit nopackages | 10 | inherit nopackages nospdx |
| 11 | deltask fetch | 11 | deltask fetch |
| 12 | deltask unpack | 12 | deltask unpack |
| 13 | deltask patch | 13 | deltask patch |
| @@ -17,9 +17,6 @@ deltask configure | |||
| 17 | deltask compile | 17 | deltask compile |
| 18 | deltask install | 18 | deltask install |
| 19 | deltask populate_sysroot | 19 | deltask populate_sysroot |
| 20 | deltask create_spdx | ||
| 21 | deltask collect_spdx_deps | ||
| 22 | deltask create_runtime_spdx | ||
| 23 | deltask recipe_qa | 20 | deltask recipe_qa |
| 24 | 21 | ||
| 25 | do_build_warn () { | 22 | do_build_warn () { |
diff --git a/meta/recipes-core/meta/meta-world-pkgdata.bb b/meta/recipes-core/meta/meta-world-pkgdata.bb index 0438bf6138..244175ddd4 100644 --- a/meta/recipes-core/meta/meta-world-pkgdata.bb +++ b/meta/recipes-core/meta/meta-world-pkgdata.bb | |||
| @@ -27,14 +27,13 @@ python do_collect_packagedata() { | |||
| 27 | oe.copy_buildsystem.generate_locked_sigs(sigfile, d) | 27 | oe.copy_buildsystem.generate_locked_sigs(sigfile, d) |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | inherit nospdx | ||
| 30 | deltask do_fetch | 31 | deltask do_fetch |
| 31 | deltask do_unpack | 32 | deltask do_unpack |
| 32 | deltask do_patch | 33 | deltask do_patch |
| 33 | deltask do_configure | 34 | deltask do_configure |
| 34 | deltask do_compile | 35 | deltask do_compile |
| 35 | deltask do_install | 36 | deltask do_install |
| 36 | deltask do_create_spdx | ||
| 37 | deltask do_create_spdx_runtime | ||
| 38 | 37 | ||
| 39 | do_prepare_recipe_sysroot[deptask] = "" | 38 | do_prepare_recipe_sysroot[deptask] = "" |
| 40 | 39 | ||
