mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user