diff options
| author | Ross Burton <ross.burton@intel.com> | 2019-11-28 10:33:07 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-04 12:30:59 +0000 |
| commit | dbcd6b6e7a5d9ed703324ae7f2888d7685097e06 (patch) | |
| tree | cbed44ac3405aa4d70ff822775405cbebfebe069 /meta/classes/python3native.bbclass | |
| parent | a345ef986a302a7746744e0cc26d79919c0b48f7 (diff) | |
| download | poky-dbcd6b6e7a5d9ed703324ae7f2888d7685097e06.tar.gz | |
python3native: set PYTHON_EXECUTABLE for CMake
This ensures cmake uses the correct python binary rather than
potentially, the host system one.
(From OE-Core rev: afb8d456360d86254ab00f05866c34d947d02749)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/python3native.bbclass')
| -rw-r--r-- | meta/classes/python3native.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass index d98fb4c758..182c11aa2e 100644 --- a/meta/classes/python3native.bbclass +++ b/meta/classes/python3native.bbclass | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | inherit python3-dir | 1 | inherit python3-dir |
| 2 | 2 | ||
| 3 | PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" | 3 | PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" |
| 4 | # PYTHON_EXECUTABLE is used by cmake | ||
| 5 | PYTHON_EXECUTABLE="${PYTHON}" | ||
| 4 | EXTRANATIVEPATH += "python3-native" | 6 | EXTRANATIVEPATH += "python3-native" |
| 5 | DEPENDS_append = " python3-native " | 7 | DEPENDS_append = " python3-native " |
| 6 | 8 | ||
