From: Chris Laplante Date: Fri, 7 Jun 2019 18:57:53 +0000 (-0400) Subject: base.bbclass: Add OE_EXTRA_IMPORTS X-Git-Tag: uninative-2.6~123 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=00fa8391365863fa7805ad61b2d1a8425b9ea040;p=openembedded-core.git base.bbclass: Add OE_EXTRA_IMPORTS 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 25d5fff72e..90af8ba72b 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):