summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-18 20:40:07 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-20 16:34:23 (GMT)
commitfc55b224caa3eeac4abda099ec9ed505db59fb28 (patch)
tree7ade946339adf4a152907aab826360a685344822
parentadceb2e27275c9349acb51ebfee40383b2a5e365 (diff)
downloadpoky-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.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 5363a1b..f357dce 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -11,6 +11,7 @@ inherit buildstats
11inherit logging 11inherit logging
12 12
13OE_IMPORTS += "os sys time oe.path oe.utils oe.data" 13OE_IMPORTS += "os sys time oe.path oe.utils oe.data"
14OE_IMPORTS[type] = "list"
14 15
15def oe_import(d): 16def 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