diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-27 17:08:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-08 11:15:47 +0000 |
commit | 4901c9d471cab99d52876842980222ce271b66e4 (patch) | |
tree | f50450c9081ed060b95c77d04370bd2391f2adb1 /meta/conf/layer.conf | |
parent | d0ea143156f2808ab684b3d73fec039d2a62f229 (diff) | |
download | poky-4901c9d471cab99d52876842980222ce271b66e4.tar.gz |
base: Switch to use addpylib directive and BB_GLOBAL_PYMODULES
Since bitbake now supports an official method to inject python modules,
switch to it.
Anyone using OE_EXTRA_IMPORTS will need to adjust their code accordingly,
probably switching to their own module namespace.
Also switch to using BB_GLOBAL_PYMODULES to list the global modules
to import.
(From OE-Core rev: 1f56155e91da2030ee0a5e93037c62e1349ba89f)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/layer.conf')
-rw-r--r-- | meta/conf/layer.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index 0ce90355ba..e41ada5d35 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf | |||
@@ -125,3 +125,8 @@ SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native" | |||
125 | # Avoid empty path entries | 125 | # Avoid empty path entries |
126 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" | 126 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" |
127 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" | 127 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" |
128 | |||
129 | # Only OE-Core should set/change this | ||
130 | BB_GLOBAL_PYMODULES = "os sys time" | ||
131 | |||
132 | addpylib ${LAYERDIR}/lib oe | ||