diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-12 16:46:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-16 17:57:29 +0100 |
commit | d5d35a27b4c46dbdb58ffc42dbdbbce21e433f81 (patch) | |
tree | c272fbec3aa7d3b051c81a5ab0e4b225f39f6d5f /meta/lib/oe/package.py | |
parent | c5d7c7a23056dc67c4f6c6851169662a9696c5d3 (diff) | |
download | poky-d5d35a27b4c46dbdb58ffc42dbdbbce21e433f81.tar.gz |
lib/oe: Move vardepexclude entries alongside functions
Now we have decorators that can do this, move the variable dependencies
exclusions alongside the code that needs them for maintainability.
(From OE-Core rev: e522169c5f95de6fc74b43672573700d8eb8e082)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package.py')
-rw-r--r-- | meta/lib/oe/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index 60392cbced..ce69151e5d 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py | |||
@@ -16,6 +16,7 @@ import mmap | |||
16 | import subprocess | 16 | import subprocess |
17 | import shutil | 17 | import shutil |
18 | 18 | ||
19 | import bb.parse | ||
19 | import oe.cachedpath | 20 | import oe.cachedpath |
20 | 21 | ||
21 | def runstrip(file, elftype, strip, extra_strip_sections=''): | 22 | def runstrip(file, elftype, strip, extra_strip_sections=''): |
@@ -1049,6 +1050,7 @@ def copydebugsources(debugsrcdir, sources, d): | |||
1049 | if os.path.exists(p) and not os.listdir(p): | 1050 | if os.path.exists(p) and not os.listdir(p): |
1050 | os.rmdir(p) | 1051 | os.rmdir(p) |
1051 | 1052 | ||
1053 | @bb.parse.vardepsexclude("BB_NUMBER_THREADS") | ||
1052 | def save_debugsources_info(debugsrcdir, sources_raw, d): | 1054 | def save_debugsources_info(debugsrcdir, sources_raw, d): |
1053 | import json | 1055 | import json |
1054 | import bb.compress.zstd | 1056 | import bb.compress.zstd |
@@ -1081,6 +1083,7 @@ def save_debugsources_info(debugsrcdir, sources_raw, d): | |||
1081 | with bb.compress.zstd.open(debugsources_file, "wt", encoding="utf-8", num_threads=num_threads) as f: | 1083 | with bb.compress.zstd.open(debugsources_file, "wt", encoding="utf-8", num_threads=num_threads) as f: |
1082 | json.dump(sources_dict, f, sort_keys=True) | 1084 | json.dump(sources_dict, f, sort_keys=True) |
1083 | 1085 | ||
1086 | @bb.parse.vardepsexclude("BB_NUMBER_THREADS") | ||
1084 | def read_debugsources_info(d): | 1087 | def read_debugsources_info(d): |
1085 | import json | 1088 | import json |
1086 | import bb.compress.zstd | 1089 | import bb.compress.zstd |