diff options
| author | Chris Larson <chris_larson@mentor.com> | 2011-05-18 13:40:07 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-20 17:34:23 +0100 |
| commit | fc55b224caa3eeac4abda099ec9ed505db59fb28 (patch) | |
| tree | 7ade946339adf4a152907aab826360a685344822 | |
| parent | adceb2e27275c9349acb51ebfee40383b2a5e365 (diff) | |
| download | poky-1.1_M1.rc1.tar.gz | |
base.bbclass: use oe.data for OE_IMPORTS1.1_M1.rc1
(From OE-Core rev: e02c0d809732bed3d170880c6faedafce8c60c21)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 5363a1b37c..f357dceefd 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -11,6 +11,7 @@ inherit buildstats | |||
| 11 | inherit logging | 11 | inherit logging |
| 12 | 12 | ||
| 13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.data" | 13 | OE_IMPORTS += "os sys time oe.path oe.utils oe.data" |
| 14 | OE_IMPORTS[type] = "list" | ||
| 14 | 15 | ||
| 15 | def oe_import(d): | 16 | def oe_import(d): |
| 16 | import os, sys | 17 | import os, sys |
| @@ -25,7 +26,8 @@ def oe_import(d): | |||
| 25 | else: | 26 | else: |
| 26 | __builtins__[name] = value | 27 | __builtins__[name] = value |
| 27 | 28 | ||
| 28 | for toimport in d.getVar("OE_IMPORTS", True).split(): | 29 | import oe.data |
| 30 | for toimport in oe.data.typed_value("OE_IMPORTS", d): | ||
| 29 | imported = __import__(toimport) | 31 | imported = __import__(toimport) |
| 30 | inject(toimport.split(".", 1)[0], imported) | 32 | inject(toimport.split(".", 1)[0], imported) |
| 31 | 33 | ||
