diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-02-18 15:49:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-20 14:28:04 +0000 |
commit | db9dd4b4ef9120baccbccae77d9c31f54a6eb9a1 (patch) | |
tree | 53749caf7da64b58e4706aa45cde178a22004d95 /meta/recipes-multimedia/speex | |
parent | 5e2796aa28e02ae3a076c6593c6533753720b13d (diff) | |
download | openembedded-core-db9dd4b4ef9120baccbccae77d9c31f54a6eb9a1.tar.gz openembedded-core-db9dd4b4ef9120baccbccae77d9c31f54a6eb9a1.tar.bz2 openembedded-core-db9dd4b4ef9120baccbccae77d9c31f54a6eb9a1.zip |
lib/oe/image.py: add image dependency mechanism
This commit adds a dependency mechanism to image creation, so that we can
split the images creation execution in groups, that can be executed in
parallel, having the dependencies satisfied in the same time. The old
code didn't need this since everything was serialized.
Technically, it adds a dependency graph topological sort class that the
main Image class can use to sort out the dependencies.
Images that have dependencies have to declare them using the NEW
IMAGE_TYPEDEP variable, like in the example below:
For:
IMAGE_FSTYPES = "i1 i2 i3 i4 i5"
IMAGE_TYPEDEP_i4 = "i2"
IMAGE_TYPEDEP_i5 = "i6 i4"
IMAGE_TYPEDEP_i6 = "i7"
IMAGE_TYPEDEP_i7 = "i2"
We'll get the following image groups, sorted out by their dependencies:
[['i1', 'i3', 'i2'], ['i4', 'i7'], ['i6'], ['i5']]
The algorithm can probably be optimized but, given the small size of the
graphs, it'll do.
[YOCTO #5830]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-multimedia/speex')
0 files changed, 0 insertions, 0 deletions