Patchwork [5/5] base.bbclass: use oe.data for OE_IMPORTS

login
register
mail settings
Submitter Christopher Larson
Date May 18, 2011, 9:02 p.m.
Message ID <2370078806c22a1aa1e23a0e20e9fb5b17149deb.1305752502.git.chris_larson@mentor.com>
Download mbox | patch
Permalink /patch/4395/
State New, archived
Headers show

Comments

Christopher Larson - May 18, 2011, 9:02 p.m.
From: Chris Larson <chris_larson@mentor.com>

Signed-off-by: Chris Larson <chris_larson@mentor.com>
---
 meta/classes/base.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 391545c..7950bc3 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)