mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
base.bbclass: use oe.data for OE_IMPORTS
(From OE-Core rev: e02c0d809732bed3d170880c6faedafce8c60c21) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
adceb2e272
commit
fc55b224ca
@@ -11,6 +11,7 @@ inherit buildstats
|
|||||||
inherit logging
|
inherit logging
|
||||||
|
|
||||||
OE_IMPORTS += "os sys time oe.path oe.utils oe.data"
|
OE_IMPORTS += "os sys time oe.path oe.utils oe.data"
|
||||||
|
OE_IMPORTS[type] = "list"
|
||||||
|
|
||||||
def oe_import(d):
|
def oe_import(d):
|
||||||
import os, sys
|
import os, sys
|
||||||
@@ -25,7 +26,8 @@ def oe_import(d):
|
|||||||
else:
|
else:
|
||||||
__builtins__[name] = value
|
__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)
|
imported = __import__(toimport)
|
||||||
inject(toimport.split(".", 1)[0], imported)
|
inject(toimport.split(".", 1)[0], imported)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user