[OE-core] [PATCH 1/1] base.bbclass: Add OE_EXTRA_IMPORTS

Chris Laplante chris.laplante at agilent.com
Fri Jun 7 18:57:53 UTC 2019


OE_IMPORTS is not intended to be touched by users, but there are cases
in which layers might want to make additional Python modules available
to Python functions. For example, Python modules defined in the layer
themselves (under meta-layer/lib).

Signed-off-by: Chris Laplante <chris.laplante at agilent.com>
---
 meta/classes/base.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 25d5fff..90af8ba 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -10,7 +10,9 @@ inherit utility-tasks
 inherit metadata_scm
 inherit logging

-OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license"
+OE_EXTRA_IMPORTS ?= ""
+
+OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license ${OE_EXTRA_IMPORTS}"
 OE_IMPORTS[type] = "list"

 def oe_import(d):
--
2.7.4



More information about the Openembedded-core mailing list