]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: use oe.data for OE_IMPORTS
authorChris Larson <chris_larson@mentor.com>
Wed, 18 May 2011 20:40:07 +0000 (13:40 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2011 16:34:01 +0000 (17:34 +0100)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
meta/classes/base.bbclass

index 391545c655854e4c2dfd09ed868d8853cec1278c..7950bc39754bfce6f29a3a3fa7277aaa7fd8e27f 100644 (file)
@@ -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)