]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Add OE_EXTRA_IMPORTS
authorChris Laplante <chris.laplante@agilent.com>
Fri, 7 Jun 2019 18:57:53 +0000 (14:57 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jun 2019 15:01:36 +0000 (16:01 +0100)
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@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index 25d5fff72e94405e711b1d0a708c3bfcd4847385..90af8ba72b9ab0ebc74867075c75a9cf0e909584 100644 (file)
@@ -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):