diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-02 10:26:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-07 15:47:15 +0100 |
commit | a211f058cc3a5673d8e686b9e6e8fcf1e7cd972b (patch) | |
tree | a4f9de9e79332521a477df5fc56e8cbc15a1a6b7 /meta/classes/spdx-common.bbclass | |
parent | 7355465f9ead0c4969adbfc167d7f29d0ca1fc11 (diff) | |
download | poky-a211f058cc3a5673d8e686b9e6e8fcf1e7cd972b.tar.gz |
sdpx: Avoid loading of SPDX_LICENSE_DATA into global config
Loading a load of json files into a memory structure and stashing in a bitbake
variable is relatively anti-social making bitbake -e output hard to read for
example as well as other potential performance issues.
Defer loading of that data until it is actually needed/used in a funciton
where it is now passed as a parameter.
(From OE-Core rev: 6f21cc9598178288784ff451ab3c40b174c0ef3e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/spdx-common.bbclass')
-rw-r--r-- | meta/classes/spdx-common.bbclass | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/meta/classes/spdx-common.bbclass b/meta/classes/spdx-common.bbclass index e1528b6d0b..cd9cc0db98 100644 --- a/meta/classes/spdx-common.bbclass +++ b/meta/classes/spdx-common.bbclass | |||
@@ -39,12 +39,6 @@ SPDX_CUSTOM_ANNOTATION_VARS ??= "" | |||
39 | 39 | ||
40 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" | 40 | SPDX_MULTILIB_SSTATE_ARCHS ??= "${SSTATE_ARCHS}" |
41 | 41 | ||
42 | python() { | ||
43 | import oe.spdx_common | ||
44 | oe.spdx_common.load_spdx_license_data(d) | ||
45 | } | ||
46 | |||
47 | |||
48 | python do_collect_spdx_deps() { | 42 | python do_collect_spdx_deps() { |
49 | # This task calculates the build time dependencies of the recipe, and is | 43 | # This task calculates the build time dependencies of the recipe, and is |
50 | # required because while a task can deptask on itself, those dependencies | 44 | # required because while a task can deptask on itself, those dependencies |