[1/1] base.bbclass: Add OE_EXTRA_IMPORTS

Submitted by Andrii Bordunov via Openembedded-core on June 7, 2019, 6:57 p.m. | Patch ID: 162059

Details

Message ID 1559933873-119485-2-git-send-email-chris.laplante@agilent.com
State New
Headers show

Commit Message

Andrii Bordunov via Openembedded-core June 7, 2019, 6:57 p.m.
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>
---
 meta/classes/base.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--
2.7.4

Patch hide | download patch | download mbox

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):