summaryrefslogtreecommitdiff
path: root/meta/lib/oe
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-10-13 12:29:37 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-14 18:08:22 +0300
commit10e5df3503632a6e1c54612055b19f7258c3ae2f (patch)
treed1e4533fe14bf96a5cf63d61578aaf210a8d246d /meta/lib/oe
parente42d8eff9eed7d1454b4f331d96dcee6dea232df (diff)
downloadopenembedded-core-10e5df3503632a6e1c54612055b19f7258c3ae2f.tar.gz
openembedded-core-10e5df3503632a6e1c54612055b19f7258c3ae2f.tar.bz2
openembedded-core-10e5df3503632a6e1c54612055b19f7258c3ae2f.zip
lib/oe/image.py: Fix dependency handling for compressed types
The dependency code needs to also include the dependency of base types. For example: - sdcard.gz image with ext4 The dependency chain needs to include: - sdcard - ext4 - gz Until this change, the ext4 dependency were not being taken into account when using the compressed one. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r--meta/lib/oe/image.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index b0d81a6b22..b9eb3de5aa 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -54,14 +54,16 @@ class ImageDepGraph(object):
base_type = self._image_base_type(node)
deps = (self.d.getVar('IMAGE_TYPEDEP_' + node, True) or "")
base_deps = (self.d.getVar('IMAGE_TYPEDEP_' + base_type, True) or "")
- if deps != "" or base_deps != "":
- graph[node] = deps
-
- for dep in deps.split() + base_deps.split():
- if not dep in graph:
- add_node(dep)
- else:
- graph[node] = ""
+
+ graph[node] = ""
+ for dep in deps.split() + base_deps.split():
+ if not dep in graph[node]:
+ if graph[node] != "":
+ graph[node] += " "
+ graph[node] += dep
+
+ if not dep in graph:
+ add_node(dep)
for fstype in image_fstypes:
add_node(fstype)