summaryrefslogtreecommitdiff
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:01 +0100
commite02c0d809732bed3d170880c6faedafce8c60c21 (patch)
tree43cb5ef55444b409c79daa4eaeed0569c83b0c86 /meta/classes/base.bbclass
parentdc579ce4dcf9a3743ced9eae4fe510a079961faf (diff)
downloadopenembedded-core-e02c0d809732bed3d170880c6faedafce8c60c21.tar.gz
openembedded-core-e02c0d809732bed3d170880c6faedafce8c60c21.tar.bz2
openembedded-core-e02c0d809732bed3d170880c6faedafce8c60c21.tar.xz
openembedded-core-e02c0d809732bed3d170880c6faedafce8c60c21.zip
base.bbclass: use oe.data for OE_IMPORTS
Signed-off-by: Chris Larson <chris_larson@mentor.com>
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 391545c65..7950bc397 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -11,6 +11,7 @@ inherit buildstats
inherit logging
OE_IMPORTS += "os sys time oe.path oe.utils oe.data"
+OE_IMPORTS[type] = "list"
def oe_import(d):
import os, sys
@@ -25,7 +26,8 @@ def oe_import(d):
else:
__builtins__[name] = value
- for toimport in d.getVar("OE_IMPORTS", True).split():
+ import oe.data
+ for toimport in oe.data.typed_value("OE_IMPORTS", d):
imported = __import__(toimport)
inject(toimport.split(".", 1)[0], imported)