diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 14:34:14 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-02 14:34:14 +0100 |
commit | 4e0ee648b4c18b770aba11921370258f3e2aaeef (patch) | |
tree | 2b9aa7875e37553ddc2f8b894d880b4a80346277 /meta/classes | |
parent | 968d00de157bcc614cc7c47a4a36db29d677ab89 (diff) | |
download | poky-4e0ee648b4c18b770aba11921370258f3e2aaeef.tar.gz |
image.bbclass: Don't perform mapping renaming until we're running the task itself.
Need to extend bitbake to provide this information rather than refer to a bitbake
internal variable.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/image.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index e4e8900f98..4a5b83e30b 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -34,8 +34,11 @@ python () { | |||
34 | deps += " %s:do_populate_sysroot" % dep | 34 | deps += " %s:do_populate_sysroot" % dep |
35 | bb.data.setVarFlag('do_rootfs', 'depends', deps, d) | 35 | bb.data.setVarFlag('do_rootfs', 'depends', deps, d) |
36 | 36 | ||
37 | runtime_mapping_rename("PACKAGE_INSTALL", d) | 37 | # If we don't do this we try and run the mapping hooks while parsing which is slow |
38 | runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", d) | 38 | # bitbake should really provide something to let us know this... |
39 | if bb.data.getVar('__RUNQUEUE_DO_NOT_USE_EXTERNALLY', d, True) is not None: | ||
40 | runtime_mapping_rename("PACKAGE_INSTALL", d) | ||
41 | runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", d) | ||
39 | } | 42 | } |
40 | 43 | ||
41 | # | 44 | # |