summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-18 13:40:07 -0700
committerChris Larson <chris_larson@mentor.com>2011-05-18 13:59:15 -0700
commit2370078806c22a1aa1e23a0e20e9fb5b17149deb (patch)
treead9405c4ba0d77c21525f91b2f1ed21f569c7b17
parentde72fa6b7cdb0b808b0f12a62822efc5782a1748 (diff)
downloadopenembedded-core-contrib-kergoth/oe-sync-base.tar.gz
openembedded-core-contrib-kergoth/oe-sync-base.tar.bz2
openembedded-core-contrib-kergoth/oe-sync-base.zip
base.bbclass: use oe.data for OE_IMPORTSkergoth/oe-sync-base
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-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 391545c655..7950bc3975 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)