summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-22 21:38:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-24 15:12:04 +0000
commit43ce7a1d86bf82d976ad241057a4207b1a340b3b (patch)
tree3e40d3cbb80fc74a3e8246c13ec07a860c86fcfb /meta
parent53d3c3caf1894e088ebf10fdf233cdf109b04da6 (diff)
downloadopenembedded-core-43ce7a1d86bf82d976ad241057a4207b1a340b3b.tar.gz
openembedded-core-43ce7a1d86bf82d976ad241057a4207b1a340b3b.tar.bz2
openembedded-core-43ce7a1d86bf82d976ad241057a4207b1a340b3b.zip
sstate: Add a rule for target sysroot requirements from cross dependencies
For example gcc-cross depends on linux-libc-headers and needs it to be present to build/work correctly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 470e0eeca7..b8a766b7d3 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -663,6 +663,10 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
# Native/Cross populate_sysroot need their dependencies
if isNativeCross(taskdependees[task][0]) and isNativeCross(taskdependees[dep][0]) and taskdependees[task][1] == 'do_populate_sysroot' and taskdependees[dep][1] == 'do_populate_sysroot':
return False
+ # Target populate_sysroot depended on by cross tools need to be installed
+ if taskdependees[task][1] == 'do_populate_sysroot' and taskdependees[dep][1] == 'do_populate_sysroot' and isNativeCross(taskdependees[dep][0]):
+ return False
+
# Target populate_sysroot do not need their dependencies
if taskdependees[task][1] == 'do_populate_sysroot' and taskdependees[dep][1] == 'do_populate_sysroot':
continue