summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-09 13:29:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-11 12:27:22 +0100
commitbc19e915fbbb932f7ad7bb8a0b7fb3227f94562f (patch)
treea2618b4c0fb8e46bce86dc2eb84cc7642a625327 /meta/classes/sstate.bbclass
parentfe0219ccc8c2a9e61be9ac5231fcae7b9d29ce5e (diff)
downloadpoky-bc19e915fbbb932f7ad7bb8a0b7fb3227f94562f.tar.gz
classes/lib/oe: Fix cross/crosssdk references
With the renaming of the cross packages, its no longer possible to use endswith("-cross") and similar to detect cross packages. Replace these references with other techniques. This resolves certain build from sstate failures which were due to the system believing cross packages were target packages and therefore dependency handling was altered. (From OE-Core rev: 91edf4cac223298e50a4b8e59dd19f1b272e3418) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 46cc2677d6..796c1a9f60 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -715,7 +715,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
715 bb.debug(2, "Considering setscene task: %s" % (str(taskdependees[task]))) 715 bb.debug(2, "Considering setscene task: %s" % (str(taskdependees[task])))
716 716
717 def isNativeCross(x): 717 def isNativeCross(x):
718 return x.endswith("-native") or x.endswith("-cross") or x.endswith("-cross-initial") or x.endswith("-crosssdk") or x.endswith("-crosssdk-initial") 718 return x.endswith("-native") or "-cross-" in x or "-crosssdk" in x
719 719
720 def isPostInstDep(x): 720 def isPostInstDep(x):
721 if x in ["qemu-native", "gdk-pixbuf-native", "qemuwrapper-cross", "depmodwrapper-cross", "systemd-systemctl-native", "gtk-update-icon-cache-native"]: 721 if x in ["qemu-native", "gdk-pixbuf-native", "qemuwrapper-cross", "depmodwrapper-cross", "systemd-systemctl-native", "gtk-update-icon-cache-native"]:
@@ -750,7 +750,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
750 if taskdependees[dep][0].endswith(("base-passwd", "shadow-sysroot")): 750 if taskdependees[dep][0].endswith(("base-passwd", "shadow-sysroot")):
751 continue 751 continue
752 # Nothing need depend on libc-initial/gcc-cross-initial 752 # Nothing need depend on libc-initial/gcc-cross-initial
753 if taskdependees[task][0].endswith("-initial"): 753 if "-initial" in taskdependees[task][0]:
754 continue 754 continue
755 # Native/Cross populate_sysroot need their dependencies 755 # Native/Cross populate_sysroot need their dependencies
756 if isNativeCross(taskdependees[task][0]) and isNativeCross(taskdependees[dep][0]): 756 if isNativeCross(taskdependees[task][0]) and isNativeCross(taskdependees[dep][0]):