summaryrefslogtreecommitdiffstats
path: root/meta-selftest
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2023-05-31 14:24:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-02 15:16:37 +0100
commit55b3f160b13c6db778db09476cc4c73e70c5e930 (patch)
treec5658c676abfb8f65e32af5075973d491acbc999 /meta-selftest
parent871f48126180bf30c001c6b97268cee1853dbda2 (diff)
downloadopenembedded-core-contrib-55b3f160b13c6db778db09476cc4c73e70c5e930.tar.gz
classes/create-spdx-2.2: Fix build time dependency calculations
Build time dependencies were not being correctly calculated for SPDX documents because while a task can `deptask` itself (as do_create_spdx did), those dependencies do not appear in BB_TASKDEPDATA (to avoid circular dependencies). To fix this, an intermediate task called do_collect_sdpx_deps is created that does the 'deptask' on do_create_spdx and records the recipe dependencies. do_create_spdx then runs after this new task. This breaks the circular dependency and thus all of the do_create_spdx tasks correctly show up as dependencies of do_collect_spdx_deps. In addition, the dependency collection logic was improved to handle the case of transitive dependencies (that is, a dependency of a dependency) SPDX documents missing and causing an error. These transitive dependencies don't actually need to be included anyway since one can follow the relationship of the direct dependency to find them. As such, the code is reworked to find the current task in BB_TASKDEPDATA, and then only collect the immediate dependencies of the current task. Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
0 files changed, 0 insertions, 0 deletions