Commit Graph

7 Commits

Author SHA1 Message Date
Christopher Larson
e74531c5ec external-common.bbclass: define a default EXTERNAL_CC variable
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2020-07-02 02:45:11 +05:00
Christopher Larson
6421c94565 external-common.bbclass: fix long standing oe.external import issue
bitbake-layers and devtool both fail to run commands with
meta-external-toolchain included, as it fails to import oe.external. It
turns out that oe_import in base.bbclass is not entirely sufficient to
get the needed modules imported when namespace packages are involved,
and those packages have already been imported. Re-import such packages
after the sys.path change to ensure the new __init__.py files are
parsed, and the new __path__ changes picked up.

JIRA: SB-11904

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-10-30 06:01:57 +05:00
Christopher Larson
e5885f2319 Various: use external_run, not oe.external.run
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-15 01:54:06 +05:00
Christopher Larson
da9cfa7d38 external-common.bbclass: fix external_run when not enabled
This returns immediately with 'UNKNOWN' if the external toolchain isn't
enabled, and also immediately adjusts sys.path regardless of OE_IMPORTS
handling to avoid the over-reliance upon that mechanism.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-14 22:46:17 +05:00
Christopher Larson
0954fed02c external-common.bbclass: import oe.external right away
This aligns with what base.bbclass does.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2018-03-03 01:19:18 +05:00
Christopher Larson
55c946aeb0 ppp: obey the actual libc kernel version
Since the external toolchain is available at parse time, we can actually grab
the kernel version from the external toolchain sysroot and use that to
determine whether to apply the patch. Do so.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2016-10-19 10:14:44 -07:00
Christopher Larson
bfc86fd9c4 oe.external: move common functions here
Also provide external-common.bbclass to wrap its inclusion and setup
associated metadata. This will make easier to search sysroots for files
without pulling in the rest of the external toolchain class.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
2015-07-29 13:10:51 -07:00