From d5d35a27b4c46dbdb58ffc42dbdbbce21e433f81 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 12 Jun 2025 16:46:37 +0100 Subject: 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 --- meta/lib/oe/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'meta/lib/oe/utils.py') diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index d272dd2b8d..a11db5f3cd 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -9,6 +9,8 @@ import multiprocessing import traceback import errno +import bb.parse + def read_file(filename): try: f = open( filename, "r" ) @@ -265,6 +267,7 @@ def execute_pre_post_process(d, cmds): bb.note("Executing %s ..." % cmd) bb.build.exec_func(cmd, d) +@bb.parse.vardepsexclude("BB_NUMBER_THREADS") def get_bb_number_threads(d): return int(d.getVar("BB_NUMBER_THREADS") or os.cpu_count() or 1) @@ -467,7 +470,7 @@ def host_gcc_version(d, taskcontextonly=False): version = match.group(1) return "-%s" % version if version in ("4.8", "4.9") else "" - +@bb.parse.vardepsexclude("DEFAULTTUNE_MULTILIB_ORIGINAL", "OVERRIDES") def get_multilib_datastore(variant, d): localdata = bb.data.createCopy(d) if variant: -- cgit v1.2.3-54-g00ecf