diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2024-07-03 07:59:19 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-13 23:28:31 +0100 |
| commit | 69d7d74ac91f841db9ed4285b09c79fbcf1c133c (patch) | |
| tree | 4e244674d186cfc5e1fffa41735ec3828009f581 /meta/classes-global | |
| parent | 8ec959bb88ef909fb90f9e984f2916c214b5761c (diff) | |
| download | poky-69d7d74ac91f841db9ed4285b09c79fbcf1c133c.tar.gz | |
classes-global/staging: Exclude do_create_spdx from automatic sysroot extension
do_create_spdx is a outlier in that it doesn't need the RSS to be
extended just because it depends on do_populate_sysroot. In fact, it
only depends on do_populate_sysroot so it can see the actual recipes
sysroot, and attempting to extend the sysroot can cause problems for
some recipes (e.g. if a recipe does do_populate_sysroot[noexec] = "1")
As such, explicitly exclude do_create_spdx from extending the sysroot
just because it depends on do_populate_sysroot.
(From OE-Core rev: 8b506f327838b885bfeb2cf144f43c8be68b8591)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
| -rw-r--r-- | meta/classes-global/staging.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes-global/staging.bbclass b/meta/classes-global/staging.bbclass index 3678a1b441..c2213ffa2b 100644 --- a/meta/classes-global/staging.bbclass +++ b/meta/classes-global/staging.bbclass | |||
| @@ -652,10 +652,17 @@ python do_prepare_recipe_sysroot () { | |||
| 652 | addtask do_prepare_recipe_sysroot before do_configure after do_fetch | 652 | addtask do_prepare_recipe_sysroot before do_configure after do_fetch |
| 653 | 653 | ||
| 654 | python staging_taskhandler() { | 654 | python staging_taskhandler() { |
| 655 | EXCLUDED_TASKS = ( | ||
| 656 | "do_prepare_recipe_sysroot", | ||
| 657 | "do_create_spdx", | ||
| 658 | ) | ||
| 655 | bbtasks = e.tasklist | 659 | bbtasks = e.tasklist |
| 656 | for task in bbtasks: | 660 | for task in bbtasks: |
| 661 | if task in EXCLUDED_TASKS: | ||
| 662 | continue | ||
| 663 | |||
| 657 | deps = d.getVarFlag(task, "depends") | 664 | deps = d.getVarFlag(task, "depends") |
| 658 | if task != 'do_prepare_recipe_sysroot' and (task == "do_configure" or (deps and "populate_sysroot" in deps)): | 665 | if task == "do_configure" or (deps and "populate_sysroot" in deps): |
| 659 | d.prependVarFlag(task, "prefuncs", "extend_recipe_sysroot ") | 666 | d.prependVarFlag(task, "prefuncs", "extend_recipe_sysroot ") |
| 660 | } | 667 | } |
| 661 | staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess" | 668 | staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess" |
