summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-18 13:40:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-20 17:34:23 +0100
commitfc55b224caa3eeac4abda099ec9ed505db59fb28 (patch)
tree7ade946339adf4a152907aab826360a685344822 /meta/classes/base.bbclass
parentadceb2e27275c9349acb51ebfee40383b2a5e365 (diff)
downloadpoky-fc55b224caa3eeac4abda099ec9ed505db59fb28.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>
Diffstat (limited to 'meta/classes/base.bbclass')
-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 5363a1b37c..f357dceefd 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