* [PATCH] sstate: Add a rule for target sysroot requirements from cross dependencies
@ 2012-11-22 21:38 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-11-22 21:38 UTC (permalink / raw)
To: openembedded-core
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>
---
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 470e0ee..b8a766b 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-22 21:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 21:38 [PATCH] sstate: Add a rule for target sysroot requirements from cross dependencies Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox