mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
sstate: Add optimizing logic for crosssdk setscene dependencies
This patch mainly aims to add optimisation for crosssdk setscene dependency validating which we haven't handled in current logic, and which I think we could have as we've already implemented to native/cross, although there are albeit not many crossdk tasks, we could still get some performance enhancement. (From OE-Core rev: 1094983ff87a8b745a5bc7bfe9514433ee3c4ad2) Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -676,12 +676,10 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
|
||||
|
||||
bb.debug(2, "Considering setscene task: %s" % (str(taskdependees[task])))
|
||||
|
||||
def isNative(x):
|
||||
return x.endswith("-native")
|
||||
def isNativeCross(x):
|
||||
return x.endswith("-native") or x.endswith("-cross") or x.endswith("-cross-initial")
|
||||
return x.endswith("-native") or x.endswith("-cross") or x.endswith("-cross-initial") or x.endswith("-crosssdk") or x.endswith("-crosssdk-initial")
|
||||
def isSafeDep(x):
|
||||
if x in ["quilt-native", "autoconf-native", "automake-native", "gnu-config-native", "libtool-native", "pkgconfig-native", "gcc-cross", "binutils-cross", "gcc-cross-initial"]:
|
||||
if x in ["quilt-native", "autoconf-native", "automake-native", "gnu-config-native", "libtool-native", "pkgconfig-native", "gcc-cross", "binutils-cross", "gcc-cross-initial", "gcc-crosssdk", "binutils-crosssdk", "gcc-crosssdk-initial"]:
|
||||
return True
|
||||
return False
|
||||
def isPostInstDep(x):
|
||||
|
||||
Reference in New Issue
Block a user