diff options
Diffstat (limited to 'meta/classes-global/base.bbclass')
-rw-r--r-- | meta/classes-global/base.bbclass | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass index c81aa51ef3..c4ac43c569 100644 --- a/meta/classes-global/base.bbclass +++ b/meta/classes-global/base.bbclass | |||
@@ -15,31 +15,8 @@ inherit utils | |||
15 | inherit utility-tasks | 15 | inherit utility-tasks |
16 | inherit logging | 16 | inherit logging |
17 | 17 | ||
18 | OE_EXTRA_IMPORTS ?= "" | ||
19 | |||
20 | OE_IMPORTS += "os sys time oe.path oe.utils oe.types oe.package oe.packagegroup oe.sstatesig oe.lsb oe.cachedpath oe.license oe.qa oe.reproducible oe.rust oe.buildcfg ${OE_EXTRA_IMPORTS}" | ||
21 | OE_IMPORTS[type] = "list" | ||
22 | |||
23 | PACKAGECONFIG_CONFARGS ??= "" | 18 | PACKAGECONFIG_CONFARGS ??= "" |
24 | 19 | ||
25 | def oe_import(d): | ||
26 | import sys | ||
27 | |||
28 | bbpath = [os.path.join(dir, "lib") for dir in d.getVar("BBPATH").split(":")] | ||
29 | sys.path[0:0] = [dir for dir in bbpath if dir not in sys.path] | ||
30 | |||
31 | import oe.data | ||
32 | for toimport in oe.data.typed_value("OE_IMPORTS", d): | ||
33 | try: | ||
34 | # Make a python object accessible from the metadata | ||
35 | bb.utils._context[toimport.split(".", 1)[0]] = __import__(toimport) | ||
36 | except AttributeError as e: | ||
37 | bb.error("Error importing OE modules: %s" % str(e)) | ||
38 | return "" | ||
39 | |||
40 | # We need the oe module name space early (before INHERITs get added) | ||
41 | OE_IMPORTED := "${@oe_import(d)}" | ||
42 | |||
43 | inherit metadata_scm | 20 | inherit metadata_scm |
44 | 21 | ||
45 | def lsb_distro_identifier(d): | 22 | def lsb_distro_identifier(d): |