diff options
author | Richard Purdie <richard@openedhand.com> | 2007-04-03 11:31:02 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-04-03 11:31:02 +0000 |
commit | 409335beaede58ed792030f9da0fcea39f32f1c7 (patch) | |
tree | 2d25f86c2c48caef8a9ef8f301b423ae7b0ee81e /meta/classes/image.bbclass | |
parent | bd0ca262c95d28dc45305efbc03e53607e9c9a0a (diff) | |
download | poky-409335beaede58ed792030f9da0fcea39f32f1c7.tar.gz |
classes: Rework core dependencies to work properly at the task level
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1427 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d8c6ccff21..edb04029b2 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -13,19 +13,21 @@ USE_DEVFS ?= "0" | |||
13 | 13 | ||
14 | PID = "${@os.getpid()}" | 14 | PID = "${@os.getpid()}" |
15 | 15 | ||
16 | DEPENDS += "makedevs-native" | ||
17 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
18 | 17 | ||
19 | def get_image_deps(d): | 18 | do_rootfs[depends] += "makedevs-native:do_populate_staging fakeroot-native:do_populate_staging" |
20 | import bb | ||
21 | str = "" | ||
22 | for type in (bb.data.getVar('IMAGE_FSTYPES', d, 1) or "").split(): | ||
23 | deps = bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or "" | ||
24 | if deps: | ||
25 | str += " %s" % deps | ||
26 | return str | ||
27 | 19 | ||
28 | DEPENDS += "${@get_image_deps(d)}" | 20 | python () { |
21 | import bb | ||
22 | |||
23 | deps = bb.data.getVarFlag('do_rootfs', 'depends', d) or "" | ||
24 | for type in (bb.data.getVar('IMAGE_FSTYPES', d, 1) or "").split(): | ||
25 | for dep in ((bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or "").split() or []): | ||
26 | deps += " %s:do_populate_staging" % dep | ||
27 | for dep in (bb.data.getVar('EXTRA_IMAGEDEPENDS', d, 1) or "").split(): | ||
28 | deps += " %s:do_populate_staging" % dep | ||
29 | bb.data.setVarFlag('do_rootfs', 'depends', deps, d) | ||
30 | } | ||
29 | 31 | ||
30 | IMAGE_DEVICE_TABLE ?= "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-minimal.txt')}" | 32 | IMAGE_DEVICE_TABLE ?= "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-minimal.txt')}" |
31 | IMAGE_POSTPROCESS_COMMAND ?= "" | 33 | IMAGE_POSTPROCESS_COMMAND ?= "" |